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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the significance of file closing in C++?
2. ..... file is efficient and best way to store information.
3. How can you open a file in read and write mode simultaneously in Python?
4. In a binary file 'a+' mode is equal to .....
5. What is the purpose of the .strip() method in Python file handling?
6. Appending data to a file places it at the start of the file.
7. Which function is equivalent to getchar() but requires a file pointer as an argument?
8. Fread() returns:
9. A file is opened in "r+" mode. Which is TRUE?
10. Which function is used to change the file position in Python?
11. What does the 'R' parameter signify when opening a file in Python?
12. These files are organized by time.
13. How many types of files are there?
14. To read the next line of the file from a file object fobj, we use:
15. In f=open( "data.txt" , "r" ), r refers to .....
16. The ..... character is used to separate the values in CSV files.
17. Which class is used for output file stream operations in C++?
18. What does the "w" mode do when opening a file in Python?
19. Which Tkinter widget is used to create a graphical slider for selecting a value?
20. What does the 'readline()' function do when reading a file in Python?
21. What is the result of using 'a' mode when opening a file?
22. Which of the following mode will refer to binary data?
23. How do you handle errors when working with files in Python?
24. What is the purpose of the 'write' function in Python file handling?
25. Fstream library provides C++ programmers with ..... classes for working with files