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.

ungetc() may be used with ________

A. scanf
B. getc
C. getchar
D. all of the mentioned
Answer» C. getchar
2.

Only _____character of pushback is guaranteed per file when ungetc is used.

A. Two
B. One
C. Many
D. Zero
Answer» E.
3.

Either c or EOF for an error

A. Nothing
B. fp
C. None of the mentioned
Answer» C. None of the mentioned
4.

Which of the following cannot be used with ungetc()?

A. scanf
B. getc
C. getchar
D. printf
Answer» D. printf