1.

A text file student.txt is stored in the storage device. Identify the correct option out of the following options to open the file in read mode. i. myfile = open('student.txt','rb') ii. myfile = open('student.txt','w') iii. myfile = open('student.txt','r') iv. myfile = open('student.txt') a. only i b. both i and iv c. both iii and iv d. both i and iii

Answer»

Answer is c. both iii and iv



Discussion

No Comment Found

Related InterviewSolutions