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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which file type is more secure?
2. Which function returns the current position of file pointer?
3. Which PHP function is used to open a file for reading or writing?
4. What is involved in the process of writing to a file?
5. Files are kept in secondary storage
6. Expand CSV
7. A function can return
8. What will be the output of following codevoid main \{ ofstream out ..... obj; out ..... obj.open ("abc.txt"); out ..... obj << "MOOCS" << endl;cout << "Data written to file" << endl;out ..... obj.close(); \}
9. Which of these packages contain classes and interfaces used for input & output operations of a program?
10. What is the actual use of ofstream?
11. Which method is used to open a file in Python?
12. A logical group of related objects are known as
13. What method is used to open a file in Python?
14. ..... In this type of file, there is no terminator for a line and the data is stored after converting it into machine understandable binary language.
15. What is the last thing you should do to a file?
16. Which attribute provides information about a file object in Python?
17. What does the program that reads from a file do?
18. What is the default mode for opening a file in Python?
19. Apa yang dilakukan fungsi fclose?
20. Can you read a CSV file using the same method as reading a text file in Python?
21. How do you read a single line from a file using Python?
22. Apa yang dilakukan mode "a" saat membuka file?
23. When we open file in reading mode the initial position of the cursor is-
24. What is the purpose of the 'with' statement when opening files?
25. Which of the following is NOT a valid file mode in Python?