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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What about today's Class?
2. Sarah wants to add her journal entry at the bottom of journal.txt without losing previous entries. Which mode should she use?
3. What is the advantage of Exception Handling
4. What is the purpose of the 'dot strip' method in Python file handling?
5. Text file student.txt is stored in the storage device. Identify the correct option out of the following options to open the file in read mode.
6. We cannot use text files to store images as the images do not contain characters.
7. Rewind takes a file pointer and resets position to the
8. Why is it important to close a file after performing operations on it?
9. To perform file processing in C++, header files and must be included in your C++ source file.
10. Which function opens a file in C?
11. Which function is used to read the entire content of a file?
12. In PHP you can use both single quotes ( ' ' ) and double quotes ( '' '' ) for strings:
13. !feof stands for
14. What is the mode 'r' used for when opening a file?
15. 4 Which of the following functions do you use to write data in the binary format?
16. Which of the following modes is used to open a file in binary mode?
17. Where can the 'continue' statement be used in C++?
18. Which of these is a list?
19. Which statement is used to retrieve the current position within the file?
20. What is the syntax to write to a file in Python?
21. Value erroe occur due to wrong indentation in a program
22. What does the anchor attribute of a Path object represent?
23. What is the name of the file used in the example?
24. If we want to customize our response to the error type that occurs, which could we use?
25. Which method is used to test if a file is readable?