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.

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Can you please explain in what is the answer 'e' correct ??

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post