1) Which function open file in python? a) open() b) new() c) Open() 2) Which statement will return one line from a file (file object is 'f')? a) f.readline() b) f.readlines() c) f.read() d) f.line() 3) readlines() method return ___________ a) String b) List c) Dictionary d) Tuple 4) Which symbol is used for append mode? a) ap b) a c) w d) app 5) Which of the following options can be used to read the first line of a text file data.txt? a) f=open('data.txt');f.read() b) f=open('data.txt','r');f.read(n) c) myfile=open('data.txt');f.readline() d) f=open('data.txt');f.readlines()

Leaderboard

Visual style

Mga Option

I-switch ang template

I-restore ang gi-autosave: ?