--:--









Quiz for Random file access rewind

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



Logo

Q1: What does the rewind() function do?

Logo

Q2: Which header file is required to use rewind()?

Logo

Q3: What is the return type of rewind()?

Logo

Q4: Can rewind() fail and return an error?

Logo

Q5: Which function can be considered equivalent to rewind(fp)?

Logo

Q6: What happens if you call rewind() on a file opened in write-only mode?

Logo

Q7: Which of these statements is TRUE about rewind()?

Logo

Q8: After calling rewind(fp), ftell(fp) will return:

Logo

Q9: Which function moves the file pointer without resetting error indicators?

Logo

Q10: Can rewind() be used on binary files?

Logo

Q11: What is the main difference between rewind() and fseek()?

Logo

Q12: Which function is more portable across platforms for setting file pointer to start?

Logo

Q13: Is it necessary to call rewind() before reading a file after writing to it?

Logo

Q14: What will happen if rewind() is called on a closed file pointer?

Logo

Q15: Which of the following is NOT true about rewind()?

Logo

Q16: Can rewind() be used in place of fseek() for setting arbitrary positions?

Logo

Q17: If a file is opened in read mode, what does rewind() do?

Logo

Q18: Is rewind() a blocking or non-blocking function?

Logo

Q19: Which standard C library defines rewind()?

Are you ready to start test? Set your time limit