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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the correct syntax to open a file for reading?
2. Which method is used to write a sequence of strings to a file in Python?
3. Apa yang akan terjadi jika fopen gagal membuka file?
4. The common separated value file extension are .....
5. What does appending to a file do?
6. Describe how to write data to a text file in Python.
7. Which method is used to get the current position of the file handle?
8. What will feof() return when the end of file is reached in C?
9. What does the function fopen() do?
10. ..... Open the file for reading and writing. For existing file, data is truncated and over-written.
11. What is the significance of the Reader function in CSV file handling?
12. How can you create a new directory using pathlib?
13. What is the first step in handling a file in Python?
14. Which of these class is not related to input and output stream in terms of functioning?
15. The other names of pickling and unpickling is?
16. Formal and actual parameters are matched up by
17. What method would you use to close a file in Python?
18. What is the default mode in which a file is opened using 'ifstream'?
19. Pickle. dump() takes two arguments namely ..... and .....
20. ..... function changes the position of the file pointer replacing the file pointer at the specified position in the open file.
21. Which is the correct statement for binary file reading?
22. Most commonly used delimiter in a CSV file is
23. Which of the following is a valid way to append data to a file?
24. What happens when you open a file in 'write' mode?
25. If we want to do the same thing regardless of the error type that occurs in the try block, which should we use?