--:--









Quiz for Error handling errno

Course: C Language | Subject: Unit 10 | Topic: Advanced Topics



Logo

Q1: What is errno in C?

Logo

Q2: Which header file defines errno?

Logo

Q3: What is the value of errno when there is no error?

Logo

Q4: Is errno reset automatically after a successful function call?

Logo

Q5: Which function can be used to print human-readable error messages?

Logo

Q6: How to reset errno?

Logo

Q7: Which of the following is NOT a valid use of errno?

Logo

Q8: errno is typically defined as:

Logo

Q9: Which function sets errno on failure?

Logo

Q10: Can errno be used in multithreaded programs safely?

Logo

Q11: What does the perror function output?

Logo

Q12: What is a common cause of errno being set?

Logo

Q13: Which errno value represents "file not found"?

Logo

Q14: Which function can clear the error indicator on a FILE stream?

Logo

Q15: errno should be checked:

Logo

Q16: What happens if you use errno without including errno.h?

Logo

Q17: Which errno value means "Permission denied"?

Logo

Q18: How can you handle errors portably using errno?

Logo

Q19: Which function can map errno values to error strings?

Are you ready to start test? Set your time limit