B04A-2015 – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-CBSE12A-2015-B04A #PYTHON#6378    siteicon   siteicon  

Problem Statement - B04A-2015

Differentiate between the following:
(i) f = open (‘diary. txt’, ‘a’)
(ii) f = open (‘diary. txt’, ‘w’)

Solution

TC++ #6378

(i) diary.txt is opened for writing data at the end of file
(ii) diary.txt is opened for writing data from the beginning of file
in create mode


Share

CSKC| Created: 11-Jan-2019 | Updated: 11-Jan-2019|CBSE12A-2015









Back