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 two operations.

A. 1 will work, 2 will not
B. 1 and 2, both will work
C. 1 won’t work, 2 will work
D. Neither of them will workView Answer
Answer» D. Neither of them will workView Answer
2.

Which of the following operation is possible using a pointer char? (Assuming the declaration is char *a;)

A. Input via %s
B. Generation of the multidimensional array
C. Changing address to point at another location
D. All of the mentioned
Answer» D. All of the mentioned
3.

What is the advantage of a multidimensional array over pointer array?

A. Predefined size
B. Input can be taken from user
C. Faster Access
D. All of the mentioned
Answer» E.
4.

What will be the output of the following C code (considering sizeof char is 1 and pointer is 4)?

A. 9
B. 4
C. 8
D. 10View Answer
Answer» D. 10View Answer