Which of the following statement is correct in the case of text files: (a) To open a file in text format, add ‘b’ to the mode parameter. (b) The ‘wb’ mode opens the file in text format for writing (c) In text files,each line of text is terminated with a EOL which is the new line character (‘\n’) in python by default. (d) When text files are opened using any text editor, the data is unrecognizable.
Answers
Answered by
1
Answer:
option (d)is correct
hope it helps
Answered by
0
All the above statements:
To open a file in text format, add ‘b’ to the mode parameter, it opens the file in binary form.
The ‘wb’ mode opens the file in text format for writing
In text files,each line of text is terminated with a EOL which is the new line character (‘\n’) by default.
When text files are opened using any text editor, the data is unrecognizable.
Explanation:
When text files are opened using any text editor, the data is unrecognizable.
This is because the text files of the program or any other language is directly opened in editor like notepad, the text is unrecognizable.
Similarly for the png or different forms of image. The binary data of the image cannot be understood in the editor.
Similar questions