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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the purpose of using Fileoutputstream in Java?
2. What is the purpose of the 'csv.writer' object?
3. If there is any error while opening a file, fopen will return?
4. What happens when you try to open a file that does not exist using the code?with open("test.txt", 'w') as f:
5. Choose the correct statement to close a file stream named myfile:
6. Apa yang dimaksud dengan operasi "menambahkan data" ke file?
7. You must write pickle.load() enclosed in ..... and ..... statements.
8. What is the correct syntax to close a file in the pseudocode provided?
9. Which function is used to convert a string to an integer in Python?
10. How do you open a CSV file in Python?
11. Which mode opens a file for reading and writing in Python?
12. F = open("test.txt", "a") f.write("Hello World!")
13. The ..... files are not in human readable form.
14. How do you read data from a file using Fileinputstream in Java?
15. Each line in a CSV file is called a .....
16. How do you open a file for both reading and writing in C++?
17. Which of the following modes should be used when opening a file for writing?
18. The ..... text files which store the text in the same form as typed.
19. Which statement is CORRECT about the 'READ' mode?
20. Apa nilai default dari parameter delimiter yang digunakan pada fungsi pandas.read ..... csv() dan numpy.loadtxt()?
21. Which of the following is a valid way to define a pointer to a structure?
22. What happens if a program does not properly close a file after writing to it?
23. How can you pass a variable number of arguments to a function?
24. What is the difference between text files and binary files?
25. Apa yang akan ditampilkan jika fgets berhasil membaca baris dari file?