--:--









Quiz for Error handling strerror

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



Logo

Q1: What does the strerror function do?

Logo

Q2: Which header file must be included to use strerror?

Logo

Q3: What argument does strerror take?

Logo

Q4: If strerror is called with an invalid error number, what happens?

Logo

Q5: Is the string returned by strerror modifiable?

Logo

Q6: What is the return type of strerror?

Logo

Q7: Which of the following is a correct usage of strerror?

Logo

Q8: Is strerror thread-safe?

Logo

Q9: Which function is a thread-safe alternative to strerror?

Logo

Q10: What happens if strerror is called repeatedly with the same errno?

Logo

Q11: Can the pointer returned by strerror be used after a subsequent call to strerror?

Logo

Q12: Which errno value corresponds to "No such file or directory"?

Logo

Q13: What should you do before calling strerror?

Logo

Q14: Can strerror be used to print error messages directly?

Logo

Q15: Which of these is NOT a valid errno value?

Logo

Q16: What is the purpose of errno in C?

Logo

Q17: Which function sets errno?

Logo

Q18: Can strerror be used on Windows?

Logo

Q19: How to get the error string for error number 2?

Logo

Q20: Is the string returned by strerror localized?

Are you ready to start test? Set your time limit