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

Quiz Instructions

Select an option to see the correct answer instantly.

1. The correct syntax of the len function for string x:
2. The correct syntax to close the file (name of file handle F)
3. In order to work with a pickle mode you must first import
4. Delimeter for CSV file is
5. Choose the correct syntax of the replace function:
6. What does the 'r' mode do when opening a file?
7. What is the purpose of the rewind() function?
8. Inorder to avoid conflicts what concept is used in files
9. To create a csv file sales.csv, the correct syntax is .....
10. How do you ensure that a file is properly closed after operations?
11. Which logical operator used to check for any one condition to be true?
12. Fwrite() is used to write:
13. How do you write data to a binary file in Python?
14. Which of the following options is the correct Python statement to read and displaythe first 10 characters of a text file "poem.txt" ?
15. Files being used by programs are copied into main memory
16. Which function is used to write all the charecters
17. What is the use of "a" in file handling?
18. Which Python library is commonly used for GUI programming involving widgets like Label and Button?
19. How do you read the entire content of a file in Python?
20. Why is it important to close a file in Python?
21. CSV stands for .....
22. Which of the following is NOT a basic file handling operation?
23. Which stream operator is used for reading data from a file?
24. The ..... function changes the position of the file pointer by placing the file pointer at the specified position in an open file
25. What is the difference between text and binary files?