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

Quiz Instructions

Select an option to see the correct answer instantly.

1. In binary file data is used in
2. What will be the output of the following code?f=open('abc.txt', 'w')print(f.close)
3. What is the purpose of the first argument in the 'fopen()' function?
4. Which Python module is used to interact with the operating system for file operations?
5. Name the two function used to read and write in binary files
6. What is the purpose of the 'close' operation in file handling?
7. Which of the following is NOT a valid method of handling file operations?
8. Which function is used to pickle data to a binary file?
9. Files can be opened in multiple modes at the same time
10. I want an array that stores 10 values, which of the following is correct?
11. What is the use of "w" in file handling?
12. Which keyword is used to use(add) a module in Python Programming?
13. What is the return type of fopen()?
14. Which function serializes objects to binary file?
15. Which of the following statements are true regarding the opening modes of a file?
16. Which statement is used to change the file position to an offset value from the start?
17. Which command properly closes a file in Python?
18. Which class is used to read the contents of a text file in Java?
19. What is the best way to read the first line of a file?
20. The correct syntax of with statement is .....
21. The tab separated value file extension are .....
22. What does ferror() check for?
23. What should you do after finishing reading from a file?
24. This file does not have EOL character to mark the end of line
25. In file handling, what does this term means"r, a" ?