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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following statements is/are true?
2. The default file open mode is ..... mode
3. A structure can contain:
4. How does the 'continue' statement affect the flow of a loop in C++?
5. What is the use of the 'open()' function in file handling?
6. Apa yang dilakukan fungsi fwrite?
7. When is the finally block executed?
8. What is the purpose of the 'ofstream' class in C++?
9. The correct syntax for converting the string x to uppercase is:
10. Which of these class is highest in hierarchy in java
11. How do you open a binary file in Python?
12. Which of the following mode argument is used to truncate?
13. Can one except block handle multiple exceptions?
14. During a school project, Reyansh, Taran, and Tanisha need to save their data into a CSV file. Which method should they use to write multiple rows in one call?
15. Differentiate between a text file and a binary file in C++.
16. Why we use file handling?
17. How do you read specific columns from a CSV file using pandas?
18. Which keyword creates a structure?
19. File in python is treated as sequence of ..... ?
20. A variable defined between two functions
21. What will be the position of File pointer after executing the following command?F.seek(-10, 2)
22. What is the Output of following program#include int fun(int n)\{ static int s = 0; s = s + n; return (s); \}int main()\{ int i = 10, x; while (i > 0) \{ x = fun(i); i ..... ; \} printf ("%d ", x); return 0; \}
23. What is the purpose of the fopen() function in PHP?
24. What type of file contains only ASCII code?
25. What is the purpose of the 'F' variable in the Python file handling examples?