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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Apa tipe data yang akan dikembalikan oleh fungsi pandas.read ..... csv()?
2. The ..... mode adds the data to the end of file.
3. Tell( ) function use to see the current position of the file pointer.
4. Which mode specifier will open a file but will not let you change the file or write to it?
5. What are the basic file operations in Python?
6. To perform File I/O operations, Which of the following header files is used?
7. What does this code do?file.write ( song )
8. Exception generated by try block is caught in ..... block?
9. File handling commands vary from language to language
10. Which method reads only a single line from the file?
11. When we want to read from or write to a file, we need to open it first. When we are done, it needs to be closed, so that resources that are tied with the file are freed.
12. What will happen if we forget to close a file?
13. Making some changes in the data of the existing file or adding more data is called
14. Which method is used to break the link of file object and the file on the disk.
15. What does the 'read' method do when used on a file?
16. Which of the following is correct for reading the entire contents of a file as a string?
17. What method would you use to write data to a file?
18. What does the fwrite() function do in PHP?
19. Select a function which is used to write a string to a file
20. Java uses the concept of
21. How does the Pickle Module help in storing Python objects?
22. What is the purpose of the 'close' function in file handling?
23. M=open("rt.dat", "wb+")Here, the above coed, b will indicate .....
24. What method would you use to write data to a text file?
25. When the pointer variable is declared, the variable name must be preceded by which symbol?
26. How can you write a string to a file in Python?
27. The void pointer can point to which type of objects?
28. What is missing form this code?file = open ( "test1.txt" , " ..... " )
29. Explain the concept of data serialization.
30. Which of the following key word is optional in Exception handling program
31. Explain the difference between 'rb' and 'wb' modes.
32. What about today's Class?
33. Sarah wants to add her journal entry at the bottom of journal.txt without losing previous entries. Which mode should she use?
34. What is the advantage of Exception Handling
35. What is the purpose of the 'dot strip' method in Python file handling?
36. Text file student.txt is stored in the storage device. Identify the correct option out of the following options to open the file in read mode.
37. We cannot use text files to store images as the images do not contain characters.
38. Rewind takes a file pointer and resets position to the
39. Why is it important to close a file after performing operations on it?
40. To perform file processing in C++, header files and must be included in your C++ source file.
41. Which function opens a file in C?
42. Which function is used to read the entire content of a file?
43. In PHP you can use both single quotes ( ' ' ) and double quotes ( '' '' ) for strings:
44. !feof stands for
45. What is the mode 'r' used for when opening a file?
46. Which of the following modes is used to open a file in binary mode?
47. Where can the 'continue' statement be used in C++?
48. Which of these is a list?
49. Which statement is used to retrieve the current position within the file?
50. What is the syntax to write to a file in Python?
51. Value erroe occur due to wrong indentation in a program
52. What does the anchor attribute of a Path object represent?
53. What is the name of the file used in the example?
54. If we want to customize our response to the error type that occurs, which could we use?
55. Which method is used to test if a file is readable?
56. To read 18 characters from the file object fobj, the correct syntax is .....
57. Which function is used to read all the characters in a text file?
58. How do you read the entire content of a text file in Python?
59. Which of the follwing methods is used to write() into a file?
60. What will be the output of the following snippet?