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

Quiz Instructions

Select an option to see the correct answer instantly.

1. ..... is a processing of converting Python object hierarchy into a byte stream so that the contents can be written onto a file.
2. Which of these is correct to read one line of text file?
3. How to write a list of lines to a file?
4. Which is CORRECT way to read all records from a binary file?
5. The CSV files are popular because of .....
6. X = 5print(not(x > 3 and x < 10))
7. What does fseek() do?
8. Raise and assertion is a .....
9. A pointer variable contains as its value of another value.
10. What is the difference between 'w' and 'a' file modes in Python?
11. A pointer is
12. Which line of code is correct for opening a file in write mode
13. How can you check if a file exists before attempting to open it?
14. Which particular header file is necessary to perform file handling in C++
15. ..... is the process Of converting Python object hierarchy into a byte stream.
16. In our computer all software and files are store in
17. Public char[] readPassword() blongs to whcih class
18. Information stored on a storage device with a specific name is called as
19. Which class is used for reading data from a file in C++?
20. The first and second arguments of fopen() are
21. A text file has the file extension of:
22. Select the correct order for processing a file.
23. Why is a good idea to store data in text files?
24. Why is it important to always close files after handling them in PHP?
25. What does the 'r' mode signify when opening a file using fopen()?