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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which function is used to open a file for reading in Python?
2. What does this code do?file.write ( "Jumanji" )
3. Those values are called as Default values:
4. What does the "r" mode do when opening a file in Python?
5. Which statement will read 5 characters from a file(file object 'f')?
6. EOF stands for?
7. How many parameters used to pass while opening a file?
8. What is a 'file handle' in the context of opening a file?
9. How do you write a list of strings to a file in Python?
10. What happens to the cursor after 'readline()' is called?
11. How do you write to a file in append mode?
12. What does strip() function do?
13. Given "myFile" is a file handle-what best describes what the following Python code does:for aLine in myFile:print(aLine)
14. What is a library in python?
15. What are the main differences between paging and segmentation?
16. What is data dependency?
17. Which of the statement is not true regarding the opening mode of a file?
18. What role does a cursor play in file handling?
19. What is pickling?
20. If a text file pointer is at the end after reading, which function resets it to the beginning?
21. What is the main focus of the practical implementation section?
22. Overwrites existing data, starting from the beginning of the file. File is created if it doesn't already exist.
23. Which of the statements is used to import all names from a module into the current calling module
24. Which of the following keyword not only belong to exception handling (It's under common keyword)
25. Apa yang dilakukan perror dalam program C?