Worksheet Data File Handling
Worksheet Data File Handling
COMPUTER SCIENCE
WORKSHEET – DATA FILE HANDLING
QN. NO QUESTION
1 Which of the following is the correct usage for tell() of a file object………………….?
a) It places the file pointer at the desired offset in a file.
b) It returns the byte position of the file pointer as an integer.
c) It returns the entire content of the file.
d) It tells the details about the file.
2 Which of the following option is the correct python statement to read and display the first 10
characters of a text file “Notes.txt”?
(a) F=open(‘Notes.txt’) (b) F=open(‘Notes.txt’)
print(F.load(10)) print(F.dump(10))
************************************************