Explore topic-wise MCQs in C Programming.

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

1.

Comment on the following C statement.

A. A pointer num to an array
B. A ragged array
C. An array num of pointers
D. All of above
E. None of these
Answer» B. A ragged array
2.

What is the correct syntax to send a 3-dimensional array as a parameter? (Assuming declaration int number[4][3][2];)

A. func(**number);
B. func(*number);
C. func(&number);
D. func(number);
E. None of these
Answer» E. None of these
3.

Comment on the following 2 arrays with respect to I and II.

A. num1 is II, num2 is I
B. num1 is I, num2 is II
C. num1 is II, num2 is II
D. num1 is I, num2 is I
E. None of these
Answer» E. None of these
4.

Which of the following statements are correct about 4 used in the following C expressions?

A. In the first statement 4 specifies a particular element, whereas in the second statement it specifies a type.
B. In the first statement 4 specifies the array size, whereas in the second statement it specifies a particular element of the array.
C. In the first statement 4 specifies a particular element, whereas in the second statement it specifies the array size.
D. In both the statement 4 specifies array size.
E. In the first statement 4 specifies array size, whereas in the second statement it specifies that the array size be increased from 4 to 23.
Answer» C. In the first statement 4 specifies a particular element, whereas in the second statement it specifies the array size.