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

Quiz Instructions

Select an option to see the correct answer instantly.

1. When using the read method to read characters from a file, what does the parameter "X" specify?
2. What is a CSV file used for?
3. What type of data does the 'write' function handle in binary file operations?
4. Which function open file in python?
5. Which function is used to explicitly close an opened file in C?
6. Defined a statement with default value calculate(principle, rate, interest) which is the correct statement
7. How do you handle exceptions when working with file operations?
8. Which line would write a score to a file
9. What command can you use to separate parts of a line?
10. What does 'rb' mean in open()?
11. What happens when a file is opened in read mode which is in fact not existing?
12. In Python, which file the user cannot able to read .....
13. What is CPU scheduling and why is it necessary?
14. Which function read single line at a time?
15. How can data be retrieved into a program after it has been previously saved and closed?
16. What is exception handling?
17. Which of the following class is used for input and output operation when working with bytes?
18. What is always one of the aims for a developer creating a program?
19. Which of the following function is used to write data in the text file.
20. How is the 'fstream' class different from 'ifstream' and 'ofstream'?
21. What is the code to open a file named as Sample and append output to the end of this file?
22. How to open a file safely for reading?
23. Files have two modes of operation-read from and write to.
24. How can you read binary data from a file in Python?
25. How do you close a file after reading or writing in Python?
26. What is the method used to read the entire content of a file in Python?
27. What is the function used to get the current working directory in Python?
28. What is the first step to read a file in Python?
29. In Text file, each line of text is terminated with special character known as .....
30. The difference between 'r+' and 'w+' modes is that 'r+' empties the file first, while 'w+' does not.
31. What is the full form of CSV?
32. What function is used to open a file in Python?
33. How can you read a text file in Python?
34. To read the next line of the file from a file object called F ..... H, we use
35. To unpickle the data coming from the file ..... function of the pickle module is used.
36. The suspicious code is put inside the
37. How do you get information from a form that is submitted using the "get" method?
38. File handle is another term for file name
39. Explain the process of reading a CSV file using the Reader function.
40. Since Random Access Memory (RAM) is volatile which loses its data when computer is turned off, we use files for future use of the data.
41. When you open a file for appending and if the file exist, the existing file is?
42. Which of the following value is returned by read() method when end of file (EOF) is encountered?
43. What does a single period (dot) represent in a path?
44. Discuss the importance of closing a file after performing operations on it.
45. When does the finally block excecute?
46. What is the difference between read(10) and read()?
47. The files length can be found using the ..... function.
48. Which mode is used to open CSV file for writing?
49. What happens when a file is opened in write mode which is in fact not existing?
50. What is the function of fwrite()?
51. Which of the following functions do you use to write data in the binary format using PICKLE module?
52. Write the method to read from a csv file
53. What is the purpose of CSV File Handling in Python?
54. Which of the following functions changes the position of file pointer and returns its new position?
55. ..... is the other name for the file object?
56. Which logical operator is used to checks for each and every condition is true?
57. Files that can be read bye text editors are called
58. Why is it important to close a file after operations in Python?
59. How can you read a specific number of characters from a file?
60. What function is used to open a file in Python for writing?