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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which file execute faster?
2. Apa yang dilakukan ios::app?
3. Which of the following is not a valid mode for opening a binary file?
4. What utility allows you to manage packages from the command line?
5. Which of the following commands can be used to read the next line in a file using the file object ?
6. Describe how to read a specific column from a CSV file.
7. Which of the following codes will open a file named as Sample for reading and writing purposes?
8. What is the purpose of the seek() function in file handling?
9. What does the 'read()' method do when used on a file object?
10. ..... returns a writer object which writes data into CSV file.
11. A class which is capable of creating files and writing information to files is called
12. Mode in the following program to open file for writing in a mode where new data will be added at the end of old datafile =open("poem.txt", " ..... ")
13. Which function deletes a file?
14. What will be the output of the followingfrom import factorialprint(math.factorial(5))
15. What are the advantages of using Fileinputstream and Fileoutputstream in Java?
16. What does this do? .split()
17. Which is not a text file?
18. Evaluate the following expressions:6 * 3 + 8**4 // 5-8
19. Which of the following is not a valid attribute of a file object (fp)?
20. Which method is used to rename a file in Python?
21. What is the function of putc() in C programming?
22. What is the purpose of the glob() method in pathlib?
23. What keyword is used to define a function?
24. Which of the following is modes of both writing and reading in binary format in file?
25. What is the extension of binary file?