C/C MCQ Quiz Hub

C Programming - MCQ Questions Set 5

Choose a topic to test your knowledge and improve your C/C skills

stdout, stdin and stderr are ___





✅ Correct Answer: 2

Which of the following statements about stdout and stderr are true?





✅ Correct Answer: 3

Within main, return expr statement is equivalent to _______





✅ Correct Answer: 2

stderr is similar to?





✅ Correct Answer: 1

Which of the following function can be used to terminate the main function from another function safely?





✅ Correct Answer: 2

 Which of the following causes an error?





✅ Correct Answer: 4

What is the purpose of the C function? int ferror(FILE *fp)





✅ Correct Answer: 2

stderr is similar to?





✅ Correct Answer: 2

What will be the output of the following C statement? fprintf(stderr, "error: could not open filen");





✅ Correct Answer: 1

Which of the following function can be used to terminate the main() function from another function safely?





✅ Correct Answer: 2

Which of the following causes an error?





✅ Correct Answer: 4

What is the purpose of the C function? int ferror(FILE *fp)





✅ Correct Answer: 2