Data File Handling in Python Class 12 - Mcqs
Data File Handling in Python Class 12 - Mcqs
CSV Files
12 – MCQs d. None of these
1 Every file has its own identity
7. Which of the following is nor a
associated with it. Which is known as
proper file access mode?
–
a. close
a. icon b. read
c. write
b. extension
d. append
c. format
8. To read 4th line from text file, which
d. file type of the following statement is true?
2 Which of the following is not a a. dt = f.readlines();print(dt[3])
known file type? b. dt=f.read(4) ;print(dt[3])
a. .pdf c. dt=f.readline(4);print(dt[3])
b. jpg d. All of these
c. mp3 9 Which of the following function
d. txp flushes the files implicitly?
3. In f=open(“data.txt”, “r”), r refers to a. flush()
__________. b. close()
a. File handle c. open()