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

Quiz Instructions

Select an option to see the correct answer instantly.

1. To remove the spaces present at start and end of the string, you can use
2. What is the purpose of using 'rb' mode when opening a binary file in Python?
3. How can programs ensure that data is not lost when they are closed?
4. Which file contains information in the same format as it is stored in memory?
5. Delimiters, such as (, :; \t | ) are present in
6. Which method would you use to read a file line by line in Python?
7. In seek()-mode 1 will indicate.
8. What is the purpose of the 'close()' method?
9. It describe how to access a given file or directory, starting from the root of the file system.
10. What does the 'WRITE' mode do when a file is opened in this mode?
11. What are some common exceptions that can occur during file operations in Python?
12. Abhishek and Adivya are working on a project that involves reading data from a CSV file. They need to skip the header row to process the data correctly. How can they achieve this?
13. How can you check if a file exists at a specified path in Python?
14. Which module in Python is used to process csv file
15. What is the primary purpose of file handling in Python?
16. What modules can be used for binary and CSV file operations in Python?
17. How can you handle errors in file operations in Python?
18. Internal translations takes place in ..... files
19. The ..... device able to read an error message.
20. Which function is used to open a file in C?
21. Which module is required to use function dump()?
22. When Reading from text files, which of the following should appear in the loop?
23. Which of the following is not a valid mode to open a text file?
24. What mode should be used to write to a binary file?
25. The ..... function removes the given character from trailing left ends.