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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Apa arti ios::in saat membuka file?
2. In what scenarios would you use the Dump function in Python?
3. What is the best way to read an entire file into a list of strings?
4. How do you CALL the function name in Python?
5. What does the "t" mode specify when opening a file in Python?
6. How does the OCR Exam Reference Language handle file opening compared to Python?
7. Which method is used to write a string to a file in Python?
8. In file handling, what does the term means 'r, a'?
9. What does rewind() do?
10. What is the purpose of the getc() function in C?
11. What does the 'glob()' method do in the pathlib module?
12. Explain the concept of thrashing in virtual memory.
13. To read the remaining line of the file from a file object called F ..... H, we use
14. Explain the concept of appending to a file in Python.
15. Which of these will raise an error if file already exists?
16. File can be added to. File is created if it doesn't already exist.
17. What is the significance of the 'encoding' parameter in file handling?
18. In seek()-mode 2 will indicate.
19. In the pseudocode provided, what is the function used to open a file?
20. This method returns the number of characters written to the file.
21. The content of a file "sample.txt" are shown below:1, 2, 3, 4'a', 'b', 'c'5, 23, 'me', 'peace" to', 'be', 'or' 'not'
22. How can you handle errors while working with files in Python?
23. What is the code to open a file named as Old ..... Data for writing data to it?
24. Which method checks if a file is closed?
25. What does seek(5) do in a file?