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

Quiz Instructions

Select an option to see the correct answer instantly.

1. You can use loops to write large amounts of text to a file
2. ASCII stands for
3. Which module is used to work with text files?
4. Which mode is used to add data to an existing file?
5. What does "non-volatile data storage" mean?
6. In which of the following package, Exception class exist?
7. Which is correct way to write rows in CSV file?
8. Which method is used to read all lines from a file into a list in Python?
9. EOF is an integer type defined in stdio. h and has a value .....
10. What is the purpose of the function fclose?
11. Select the most appropriate format of tell ()
12. What is the correct way to read a file in Python?
13. Why is it best to open a file with "with" in Python?
14. What is the difference in path styles between Windows and macOS/Linux?
15. What is the process of converting a Python object structure into a byte stream to store in a binary file called?
16. How do you close a file in C using fclose()?
17. When fwrite is used on already existing file the what will happen
18. What is the purpose of fprintf() and fscanf() functions in C?
19. What method do we use as a clean up function, to reallocate the resources used when keeping the file object open?
20. What does the 'APPEND' mode do when a file is opened in this mode?
21. Which function is used to force transfer of data from buffer to file?
22. What does the 'A' parameter signify in the 'open' command when opening a file in Python?
23. Function used to write data in binary format
24. Which statement is true to open a binary file "Record.txt" for writing and reading?
25. Which function is used to read all the characters?