Explore topic-wise MCQs in General Principles .

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

1.

Which three are valid declarations of a float?

A. 1, 2, 4
B. 2, 3, 5
C. 1, 3, 6
D. 2, 4, 6
Answer» D. 2, 4, 6
2.

Which three are valid declarations of a char?

A. 1, 2, 4
B. 1, 3, 6
C. 3, 5
D. 5 only
Answer» C. 3, 5
3.

Which three are legal array declarations?

A. 1, 2, 4
B. 2, 4, 5
C. 2, 3, 4
D. All are correct.
Answer» B. 2, 4, 5
4.

Which four options describe the correct default values for array elements of the types indicated?

A. 1, 2, 3, 4
B. 1, 3, 4, 5
C. 2, 4, 5, 6
D. 3, 4, 5, 6
Answer» C. 2, 4, 5, 6