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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What method would you use to append data to an existing file?
2. Which mode would you use to append data to a text file?
3. How can you use the tell() and seek() methods in Python file handling?
4. In file handling, what does EOF stand for, and why is it significant?
5. How can you append data to an existing file in Python?
6. A binary file has 5 records stored using pickle.dump(). Which error occurs if you try pickle.load() after last record?
7. LOCK ..... EX stands for
8. Pada akhir presentasi, kata apa yang muncul di layar?
9. In a binary file 'wb' mode is equal to .....
10. Expand EOL
11. What does the 'R' parameter signify in the 'open' command when opening a file in Python?
12. Taran is working on a project that involves reading and writing CSV files. He comes across the newline=" argument in the open() function. What does this argument do when working with CSV files?
13. What does with open( ..... ) as f:ensure?
14. Which one of the following is correct syntax for opening a file.
15. Which of the following mode is applied while writing into the file?
16. Which library is used for CSV handling in Python?
17. In the below statement myfile is called ..... myfile=open("school.txt")
18. What is the purpose of the APPEND mode in file handling?
19. Apa yang digunakan untuk membaca baris demi baris dari file?
20. What will be the output of the following Python codeprint(4 + '3')
21. Which method rolls back the present transaction?
22. What will happen if an exception is raised in a 'try' block but no 'except' block is provided?
23. How can you read a specific number of bytes from a file?
24. What does the createNewFile() method return if the file is successfully created?
25. What is the purpose of the 'for loop' in Python file handling?