--:--









Quiz for Random file access ftell

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



Logo

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

Logo

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

Logo

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

Logo

Q4: What does ftell() return on failure?

Logo

Q5: Which of the following correctly calls ftell()?

Logo

Q6: If ftell() returns 0, where is the file pointer?

Logo

Q7: Is ftell() useful for random access in files?

Logo

Q8: Can ftell() be used with text files?

Logo

Q9: Which function can be used with ftell() to move file pointer?

Logo

Q10: What is the value returned by ftell() if the file pointer is at byte 100?

Logo

Q11: Which of the following is TRUE about ftell()?

Logo

Q12: What happens if ftell() is called with an invalid FILE pointer?

Logo

Q13: Can ftell() be used to determine file size?

Logo

Q14: Which function returns the current file position after reading data?

Logo

Q15: If ftell() returns a negative value, what does it mean?

Logo

Q16: Can ftell() be used on a file opened in write-only mode?

Logo

Q17: What value does ftell() return after opening a file in read mode, before any reading?

Logo

Q18: Is ftell() a standard C library function?

Logo

Q19: Which data type should you store the value returned by ftell() in?

Are you ready to start test? Set your time limit