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); O a. 15 O b.

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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"); O a. 15 O b. 10 O c. 5 O d. 12 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" O c. Prints "Equal Unequal" O d. Error 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" O b. Prints " Unequal" O c. Prints "Equal Unequal" O d. Error 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"); O a. Good Luck O b. No output c. Good day O d. 4 A What is the output of the below code snippet? char course[] = {'M','A','T','H','S','\0'}; printf("%c",course[2]); O a. H O b. T . O d. M What is the value in string st1[] of the below code snippet? char st1 [] ="Allen"; char st2 [] ="Smith"; strcpy(st1, st2); a. Allen b. SmithAllen O c. AllenSmith O d. Smith What is the value in sz as per the following given statements ? char nm []="MICHAEL"; sz=strlen(nm); O a. 4 O b. O O c. 6 O d. 7. What is the value in string st1[] of the below code snippet? char st1 [] ="BAYOF"; char st2 [] ="BENGAL"; strcat(st1, st2); O a. BAYOFBENGAL b. BENGAL O c. BENGALOFBAY O d. BAYOF

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

4 What is the recruitment phase?

Answered: 1 week ago

Question

Has the priority order been provided by someone else?

Answered: 1 week ago

Question

Compare the current team to the ideal team.

Answered: 1 week ago

Question

Are the rules readily available?

Answered: 1 week ago