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

Quiz Instructions

Select an option to see the correct answer instantly.

1. How do you create an array in PHP?
2. Di poster "Hierarki Stream File C++", mana stream untuk terminal?
3. How can you handle exceptions when working with file operations?
4. Consider:f=open("data.txt", "r")print(f.readline(4))If file contains "Python", output will be:
5. The ..... function returns the current position of file pointer in the file.
6. Which of these keywords must be used to monitor for exceptions?
7. The type of operation possible in an opened file is governed by
8. Which of the following statements correctly explain the function of tell() method?
9. What is the significance of the 'b' mode in file handling?
10. A file object is also known as?
11. Which Python module helps with file path manipulations?
12. What is the output of:b=2c=2print(b is c)c +=2print(b is c)
13. What does the 'EOF()' function return when the end of a file has NOT been reached?
14. In Which file the data get stored in tabular format?
15. Which Tkinter widget is used for multi-line text input?
16. The ..... function forces the writing of data on disc stil pending in output buffer.
17. In which format Binary file contains information
18. What precautions should be taken while working with Binary File Handling in Python?
19. Which option is True, in reference to the the 'a' and 'w' mode in open()?
20. The sys.stdin is always opened in ..... mode.
21. Default file opening mode is .....
22. Which method is used to read the entire content of a text file in a single string?
23. In Python, which keyword is used to read data from a file?
24. What does remove() do?
25. In seek () you can move the file pointer in backward direction with the help of ..... values