Class 11 Computer Science Chapter 6 File Handling Quiz 59 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the purpose of debugging?
2. The command file.closed returns:
3. What happens if you try to read past the end of a file?
4. A class which is used for reading information from data files is called
5. Python deals with ..... different types of a file.
6. What is the purpose of the 'shelve' module?
7. What does the program that checks for end of file do?
8. The best mode to store a structure is:
9. When a program reads a file, it enters every character into memory as a tuple
10. What is the first step in writing to a file?
11. What is the purpose of the 'fgetc()' function in C?
12. Explain the process of writing data to a binary file.
13. Which statement is TRUE about the 'EOF' function?
14. A programmer want to read, write or append file to do some specific operation .while doing this, a programmer must ..... file.
15. Which of the following is an example of pseudocode for reading a line from a file?
16. Which Python module is commonly used for handling CSV files?
17. Matilda and Alexander are working on a coding project. Can you help them figure out the correct way to close a file object named file?
18. Apa nama method yang membaca semua baris dalam file dan menyimpannya dalam list?
19. What is the purpose of using Fileinputstream in Java?
20. What is the use of seek() method in files?
21. What does the 'close()' method do for a file object?
22. "w" mode deletes everything first, and then writes the content.
23. What could happen if you forget to close a file after writing to it?
24. Select a function which is used as a formatted output file function
25. How do you check if a file exists in Python?