File Handling || Type A || Sumita Arora || Class 12 || Computer science || Information practices || Solution ||
Q1 = What is the difference between "w" and "a" modes?
Q2 = What is the significance of file-object?
Q3 = How is file open() function different from close() function ?
Q4 = Write statements to open a binary file C:\Myfiles\Text1.txt in read and write mode by specifying the file path in two different formats.
Q5 = When a file is opened for output, what happens when
(i) The mentioned file does not exist
(ii) The mentioned file does exist
Q6 = What role is played by file modes in file operations? Describe the various file mode constants and their meanings.
Q7 = What are the advantages of saving data in:
(i) Binary form
(ii) Text form
Q8 = When do you think text files should be preferred over binary files?
Q9 = Write a statement in Python to perform the following operations:
(a) To open a text file "BOOK.TXT" in read mode.
(b) To open a text file "BOOK.TXT" in write mode.
Q2 = What is the significance of file-object?
Q3 = How is file open() function different from close() function ?
Q4 = Write statements to open a binary file C:\Myfiles\Text1.txt in read and write mode by specifying the file path in two different formats.
Q5 = When a file is opened for output, what happens when
(i) The mentioned file does not exist
(ii) The mentioned file does exist
Q6 = What role is played by file modes in file operations? Describe the various file mode constants and their meanings.
Q7 = What are the advantages of saving data in:
(i) Binary form
(ii) Text form
Q8 = When do you think text files should be preferred over binary files?
Q9 = Write a statement in Python to perform the following operations:
(a) To open a text file "BOOK.TXT" in read mode.
(b) To open a text file "BOOK.TXT" in write mode.
Q11. What role is played by file modes in file operations? Describe the various file mode constants
and their meanings
Q12. How many file objects would you need to create to manage the following situations? Explain.
(i) To process three files sequentially.
(ii) To merge two sorted files into a third file.
Q13. Is csv file different from a text file? Why/why not?
Q14. Is csv file different from a binary file? Why/why not?
Q15. Why are csv files popular for data storage?
Q16. How do you change the delimiter of a csv file while writing into it?
Q17. When and why should you suppress the EOL translation in csv file handling?
Q18. If you rename a text file's extension as .csv, will it become a csv file? Why/why not?
shukriyaaa
ReplyDeleteWelcome : )
Deleteshukriyaaa
ReplyDeleteWelcome : )
DeleteThanks man have an exam tomorrow you're a life saver
ReplyDeleteAlways Welcome : ). All the best....
Deletehyhyhyhy
ReplyDeletewhat
Deletehii
Deletesome questions are missing, what about them?
ReplyDeletePlease tell me questions.
DeleteThankyou my exam is tomorrow only❤️😭
ReplyDeleteWelcome and All the best 👍
DeleteThanks for your support. 😁
ReplyDeleteWelcome : )
Deletehii
ReplyDeletehello
ReplyDeletevadakkam
ReplyDeleteThis is really helpful....tomorrow is my exam and this help me to cover up whole chapter in less time.
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )