--:--









Quiz for Random file access fseek

Course: C Language | Subject: Unit 8 | Topic: File Handling



Logo

Q1: What is the purpose of the fseek() function?

Logo

Q2: Which header file declares the fseek() function?

Logo

Q3: What are the parameters of fseek()?

Logo

Q4: What are the valid values for the origin parameter in fseek()?

Logo

Q5: What does SEEK_SET mean?

Logo

Q6: What does SEEK_CUR mean?

Logo

Q7: What does SEEK_END mean?

Logo

Q8: What does fseek() return on success?

Logo

Q9: What is the return value of fseek() on failure?

Logo

Q10: Which function can be used to reset the file pointer to the beginning?

Logo

Q11: Which function can get the current position of the file pointer?

Logo

Q12: To move the file pointer 10 bytes forward from current position, use:

Logo

Q13: Can fseek() be used with text files?

Logo

Q14: What is the type of the offset parameter in fseek()?

Logo

Q15: Can fseek() be used to move before the beginning of the file?

Logo

Q16: How to move file pointer to 5 bytes before the end?

Logo

Q17: Which of the following is TRUE about fseek()?

Logo

Q18: What happens if you pass an invalid file pointer to fseek()?

Are you ready to start test? Set your time limit