Computer File Handling in “C” Test Online

Important Computer File Handling in “C” Question and Answer

Total Questions: 50
Time Allowed: 25 Minutes
Total Marks: 50
How to Attempt Test: Please choose the right Option in MCQ-type question.
Test Helpful For: ECAT Entry Test
Computer Online Test
Interview Questions about Computer
All Universities Entrance Test
Recruitments Tests

File Handling in “C” Practice Test Online With Explanation

 0%

Page 1 of 2

Uncategorized

1. In which file mode will the data be written at the end of the file?

2. What is the maximum number of files that can be open simultaneously in C?

3. Which function returns the next character from a file?

4. Which function is used to close a file in C?

5. Can a file be opened for both reading and writing?

6. What happens when fclose() is not called?

7. Which header file is required for file operations in C?

8. What will fopen() return if it fails to open a file?

9. Which function returns the current position of the file pointer?

10. Which of the following is a correct way to create and write to a binary file?

11. Which function checks for file existence?

12. Which of the following modes allows both reading and writing?

13. What does the mode "r" in fopen() stand for?

14. Which of the following statements is true about file handling in C?

15. Which of the following functions is used to flush the output buffer?

16. Which of the following is used to write formatted output to a file?

17. What is the return value of fclose() on success?

18. Which function is used to detect file errors?

19. Which function is used to write a string to a file?

20. Which function moves the file pointer back to the beginning of a file?

21. What does "a+" mode do?

22. Which of the following can be used to store structured data in files?

23. Which function is used to write a character to a file?

24. Which of the following is used to read a string from a file?

25. Which of the following functions is used to write a string with a newline?


 

Mustansar Khan

Hey Exam Warriors! I'm Mustansar Khan, your ally in conquering tests. Uncover strategies, real-time experiences, and expert advice to turn your study sessions into victories. Let's gear up for success!

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
error: