C/C MCQ Quiz Hub

C Programming - MCQ Questions Set 5

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

1. stdout, stdin and stderr are ___




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




3. Within main, return expr statement is equivalent to _______




4. stderr is similar to?




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




6.  Which of the following causes an error?




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




8. stderr is similar to?




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




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




11. Which of the following causes an error?




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