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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What method would you use to write a list of strings to a file?
2. In seek () you can move the file pointer in forward direction with the help of ..... values
3. What are the different modes of opening a file using Fileoutputstream in Java?
4. ..... helps in storing information.
5. Fungsi apa yang digunakan untuk menulis data terformat ke file?
6. What function is used to write a list of dictionaries to a csv file in Python?
7. What does the '.write' method do?
8. Which memory is volatile memory?
9. A 1D array declaration can be written as:
10. What is the function "r" in file handling
11. The following is an example of what type of error?prnt("Hello World")
12. The default delimiter of the CSV file is .....
13. Which of the following option is the correct Python statement to read and display the first 10 characters of a text file "Notes.txt" ?
14. What is the result of calling add ..... two(10, -5)?
15. What will happen if you try to open a non-existent file in "r" mode?
16. Differentiate between binary, CSV, and text files in Python.
17. What does setting a Boolean variable to false indicate in file handling?
18. Which of the following packages contain classes and interfaces used for input & output operations of file?
19. What does calloc() do in C programming?
20. Which method is used to close the Stream?
21. Ravi opened the file myfile.txt in append mode. In this file the file object/file handle will be at the .....
22. What is the purpose of the 'data dependency' in the context of file handling?
23. Which of the following operator is used for negation?
24. How can you read only part of a file?
25. What does the exists() method check for a Path object?