Q. In which of the following file modes will the existing data of the file not be lost?
(a) 'rb'
(b) ab
(c) w
(d) w + b
(e) 'a+b'
(f) wb
(g) wb+
(h) w+
(i) r+
Answer =
In (a), (b), (e), (i) file modes, the existing data of the file do not lost.
(a) 'rb'
(b) ab
(c) w
(d) w + b
(e) 'a+b'
(f) wb
(g) wb+
(h) w+
(i) r+
Answer =
In (a), (b), (e), (i) file modes, the existing data of the file do not lost.
Can you please explain in what is the answer 'e' correct ??
ReplyDelete"a+b" mean append in binary file.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )