Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What should be the value of x for the below code to print OMAN? if(x>10 && x%5==0) printf(OMAN); else printf(INDIA); a. 12 b. 15 c.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

What should be the value of x for the below code to print "OMAN"? if(x>10 && x%5==0) printf(OMAN); else printf(INDIA"); a. 12 b. 15 c. 10 d. 5 Question 14 Not yet answered Marked out of 1.00 P Flag question What is the output of the below code snippet? int a = 20, b =40, c = 15; if(a>b || b>c) printf("%d ", a+b); else printf("%d",c); a. 40 b. 20 C. 60 What happens when you run the code below for m=10 and n=12? if(m==n); printf("Equal "); else printf(" Unequal); a. prints "Equal b. Prints " Unequal" c. Prints "Equal Unequal d. Error Question 16 Not yet answered Marked out of 1.00 P Flag question What is the output of the below code snippet for x=4 and y=5? int z=x + y *x/x-y; if(z>5) printf(Good day"); else printf("Good Luck"); a. Good Luck b. No output f What is the output of the below code snippet? char country[5] = {'O'M";A;N','\0'}; printf("%c",country[1]); a. M. b. A C. O d. c Question 18 Not yet answered Marked out of 1.00 Flag question What is the value in string st2l of the below code snippet? char st1 I ="John"; char st2 ) ="Bob"; strcpy(st1,st2); a. Bob b. Bob John C. JohnBob d. John What is the value in G as per the following given statements ? char fn[1="GRAPHICS"; G=strlen(fn); a. 2 b. 6 c. O d. 8 Question 20 Not yet answered Marked out of 1.00 Flag question What is the value in string st1 [] of the below code snippet? char st1 l ="Jacob"; char st2 ] ="Jones; strcat(st1,st2); a. Jacob b. Jones c. JacobJones K K d. Jones Jacob

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

1. Explain how technology has changed the learning environment.

Answered: 1 week ago