Explore topic-wise MCQs in Basic C.

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

1.

What will be in Msg after the following code is evaluated?

A. Hi
B. Bye
C. True
D. FalseView Answer
Answer» B. Bye
2.

Which logical operator does not allow us to combine two or more conditions?

A. AND
B. OR
C. NOT
D. NAND
Answer» D. NAND
3.

In the below statement when true is returned?

A. When both the sub-conditions are true
B. When only one sub-condition is true
C. When both the sub-conditions are false
D. It never returns trueView Answer
Answer» C. When both the sub-conditions are false
4.

And operator checks both the sub-conditions whereas OrElse operator does __________

A. Short-circuit evaluation
B. Short-hand evaluation
C. Short evaluation
D. Circuit evaluation
Answer» B. Short-hand evaluation
5.

And operator checks both the sub-conditions whereas AndAlso operator does __________

A. Short-circuit evaluation
B. Short-hand evaluation
C. Short evaluation
D. Circuit evaluation
Answer» B. Short-hand evaluation
6.

__________ operator returns true, if any of the sub-condition is true.

A. AND
B. OR
C. NOT
D. NAND
Answer» C. NOT
7.

__________ operator returns true, if all the sub-conditions are true.

A. AND
B. OR
C. NOT
D. NAND
Answer» B. OR
8.

__________ operator reverses the truth value of the operation.

A. AND
B. OR
C. NOT
D. NAND
Answer» D. NAND