Question: 21. Comment on the output of this C code? nt a 1; f (a) printf All is Well ); printfI am Welln else printf(l am

 21. Comment on the output of this C code? nt a

21. Comment on the output of this C code? nt a 1; f (a) printf All is Well "); printf"I am Welln" else printf("l am not a Riverln" a) Output will be All is Well I am Well b) Output will be I am Well I am not a River d) Compile time errors during compilation c) Output will be I am Well 22. What is the output of this C code? int a 4, n, i, result-0; scanf("%d", &n); for (i 0;i n;i+) result + a; a) Addition of a and n. b) Subtraction of a and n. c) Multiplication of a and n. d) Division of a and n. 23. The following code 'forl:l represents an infinite loop. It can be terminated by. a)break b) exit(0) c) continue d) All of the mentioned 24. What is the output of this C code? int k printf"Hello"); a) Hello b) Infinite hello c) Run time error d) Nothing 25. Which loop is most suitable to first perform the operation and then test the condition? a) for loop b) while loop c) do-while loop d) None of the mentioned 26. Which keyword is used to come out of a loop only for that iteration? a) break b) continue c) return d) None of the mentioned 27. The value obtained in the function is given back to main by using keyword? a) return b) static c) break d) printf 28. What is the output of this C code? void main) void fool) void fool: printfl"1 " fool: printf"2 "); a) 12 b) Compile time error c) 1212 d)Depends on the compiler

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!