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

Quiz Instructions

Select an option to see the correct answer instantly.

1. How can you handle exceptions when working with binary files?
2. What is the purpose of using a list for records in Python?
3. Which function is used to write a list of Strings in a file?
4. Explain the difference between read() and readline() in Python file handling.
5. Why is it important to close a file after operations are completed?
6. In binary file, there is no delimiter for a line.
7. In pseudocode, how do you append data to a file?
8. Reading from a file often involves using .....
9. Which of the following is used to open a file in read mode?
10. To read 2 characters from a file object fobj, the command should be:
11. Discuss the different modes used for opening a file in Python.
12. Which mode should be specified in the 'open()' function when you need to write to a file?
13. Which class in Java is used for file handling?
14. Fflush(NULL) flushes all .....
15. In file handling, what do the terms "r" and "a" stand for?
16. What is the purpose of a module in Python?
17. Which mode is used to open a file for appending in Python?
18. ..... class provides the capability to read primitive data types from an input stream.
19. Best way to calculate total from numeric column in CSV?
20. What are the different types of function arguments in Python?
21. Which method writes multiple lines to a file?
22. What is the purpose of the 'open' function in Python?
23. Which function is used to close a file in C++ after performing file operations?
24. This mode will open file with read write purpose
25. Which of the following is NOT a basic operation on files?