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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which module is used to write and read binary files with objects?
2. Which function renames a file?
3. Which function is used to read data from Text File?
4. Is the following Python code valid?try:# Do somethingexcept:# Do somethingelse:# Do something
5. .... is the extension of binary files
6. What does the 'seek()' function do?
7. File opening modes for CSV files are:
8. The command that terminates the resources in use and frees the system of this program.
9. Which function is used to append data to a file in Python?
10. Dynamic allocation of struct uses:
11. Exp(), floor()belongs which module?
12. Which method is used to write data to a file in Python?
13. Using append adds data to an existing file
14. If there is no error, then what will the error() method return?
15. Try block may or may not contains catch blocks
16. Which of these keywords is not a part of exception handling?
17. What is the default mode when opening a file in Python?
18. Taran and Tanisha are discussing different file formats in Python for their data science project. They wonder what is a similarity between text files and CSV files.
19. A pointer variable can be
20. Which function of text file will read the content of the complete file?
21. Which of the following functions do you use to write data in the binary format?
22. What is the significance of file modes like 'r', 'w', and 'a'?
23. What happens each time you call the 'writeline' function?
24. What is the output of print(add ..... two(2, 's'))?
25. How do you read a CSV file using the csv module?