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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the function used to get the current working directory in Python?
2. What is the first step to read a file in Python?
3. In Text file, each line of text is terminated with special character known as .....
4. The difference between 'r+' and 'w+' modes is that 'r+' empties the file first, while 'w+' does not.
5. What is the full form of CSV?
6. What function is used to open a file in Python?
7. How can you read a text file in Python?
8. To read the next line of the file from a file object called F ..... H, we use
9. To unpickle the data coming from the file ..... function of the pickle module is used.
10. The suspicious code is put inside the
11. How do you get information from a form that is submitted using the "get" method?
12. File handle is another term for file name
13. Explain the process of reading a CSV file using the Reader function.
14. Since Random Access Memory (RAM) is volatile which loses its data when computer is turned off, we use files for future use of the data.
15. When you open a file for appending and if the file exist, the existing file is?
16. Which of the following value is returned by read() method when end of file (EOF) is encountered?
17. What does a single period (dot) represent in a path?
18. Discuss the importance of closing a file after performing operations on it.
19. When does the finally block excecute?
20. What is the difference between read(10) and read()?
21. The files length can be found using the ..... function.
22. Which mode is used to open CSV file for writing?
23. What happens when a file is opened in write mode which is in fact not existing?
24. What is the function of fwrite()?
25. Which operator used to compares equality?