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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is serialization in the context of binary files?
2. Apa yang dilakukan fscanf?
3. Which of the following file types allows to store large data files in the computer memory?
4. What is used to remove the newline character when reading from a file?
5. What is the function of 'seek()' in file handling?
6. If you will have to store marks of 10 students then which python datatype will you use?
7. What is the purpose of 'fileP.write(str(i) + '' ")' in the loop?
8. Which class is used to write text to a file in Java?
9. Which header file must be included to use file I/O operations in C++?
10. Which of the following file types is typically a text file?
11. Which superglobal variable holds information about headers, paths, and script locations?
12. Which function is used to read the data from a binary file?
13. How can you read binary data from a file?
14. What is the parent class of All Exceptions in JAVA
15. If a file exists, then it deletes the file content prior to its opening.
16. How can you move the file pointer to the beginning of a file?
17. What is the purpose of the 'flush()' method when working with files?
18. SequenceInputStream class is used to read data from .....
19. Which is an advantage of CSV over text file?
20. What will this line of code do?myFile = open("test ..... scores.txt", "w")
21. Which of these class is not a member class of java.io package?
22. Why should you avoid closing a file according to the document?
23. Which option is correct about this program? f=open( "ss.txt" , "wb" ) print( "Name of the file:" , f.name) f.flush() f.close()
24. Text file store information in ..... character
25. Which of the following modes is used for both writing and reading from a binary file?