Explore topic-wise MCQs in Technical MCQs.

This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

c = (n) ? a : b; can be rewritten asexp1 ? exp2 : exp3;

A. if(n){c = a;}else{c = b;}
B. if(!n){c = a;}else{c = b;}
C. if(n){c = b;}else{c = a;}
D. None of the above
E.
Answer» B. if(!n){c = a;}else{c = b;}
2.

do-while loop terminates when conditional expression returns?

A. One
B. Zero
C. Non - zero
D. None of the above
Answer» C. Non - zero
3.

A labeled statement consist of an identifier followed by

A. ;
B. :
C. ,
D. =
Answer» C. ,
4.

Which loop is guaranteed to execute at least one time.

A. for
B. while
C. do while
D. None of the above
Answer» D. None of the above
5.

goto can be used to jump from main to within a function?

A. TRUE
B. FALSE
C. May Be
D. Can't Say
Answer» C. May Be
6.

The continue statment cannot be used with

A. for
B. while
C. do while
D. switch
Answer» E.
7.

In the following loop construct, which one is executed only once always.ÂÂÂÂfor(exp1; exp2; exp3)

A. exp1
B. exp3
C. exp1 and exp3
D. exp1, exp2 and exp3
Answer» B. exp3