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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the purpose of the 'write lines' method in Python file handling?
2. .... function is used to write data in a binary file
3. File object is reference to a file. It is used to read and write data to a file.
4. Which one of the following databases has PHP supported almost since the beginning?
5. What method is used to write data to a CSV file?
6. What does the "b" mode specify when opening a file in Python?
7. What mode would you use to append data to an existing file?
8. What must a program do before reading or writing to a file?
9. Why is it important to close the file when file handling?
10. Which is data type of file pointer?
11. ..... & ..... statements together can handle runtime exceptions.
12. Choice3
13. What does feof(fp) check?
14. Closing files is important because it frees up RAM for other files and programs
15. Which of these is associated with a specific file and provides a way for the program to work with that file?
16. Apa nama method yang digunakan untuk menutup sebuah file yang terbuka di Python?
17. What method should be called to close a FileWriter after writing?
18. Which of the following will read entire content of file(file object 'f')?
19. What happens if you open a file in 'w' mode that already exists?
20. What is a CSV file?
21. When we read from a file, what type of value do we get returned to us, by default?
22. Which of the following is the correct way of declaring a float pointer?
23. In the data hierarchy, which of the choices is described as 'single values of letter or numbers'?
24. Which mode create new file if the file does not exist?
25. Is there a delimiter for binary files