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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the role of next() when Rashil is working with CSV files in Python?
2. Dump function is used to .....
3. What is the file object's attribute to get file name?
4. An absolute path name begins at the
5. Which of these method of FileReader class is used to read characters from a file?
6. 'w+' mode will .....
7. What module provides access to some variables used or maintained by the interpreter?
8. Which mode is used to open a text file for reading?
9. What is the significance of using 'with' when opening a file?
10. Which of the following is a valid way to read a file line by line?
11. What is an array?
12. Which of the following is not a proper file access mode
13. What does the 'write()' method do when called on a file object?
14. Which mode in binary files is used to keep the previous data of an existing file along with add the new data at the end of it .
15. Which of the following class is not related to input and output stream in terms of functioning?
16. What might happen if you fail to close a file after operations in a program?
17. Which function is used to find the length of the list?
18. It opens the file for the output then moves the read and write control to the file's end.
19. The Binary file mode 'wb' represent?
20. Structure variables are accessed using:
21. What are the three steps of file handling in Python?
22. What is the first step to write data to a CSV file?
23. What will be the output-x=""if(!x):print("hello")else:print("bye")
24. Which command reads data from an open file into a variable?
25. The syntax of seek() is:file ..... object.seek(offset [, reference ..... point]) What does reference ..... point indicate?