Which of the following statements correctly explain the function of tell() method?
File Handling in Python

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
ARPITA DAS
Used 14+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
tells the current position within the file.
tell the name of file.
move the current file position to a different location.
it changes the file position only if allowed to do so else returns an error.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements
correctly explain the function of seek() method?
tell the current position within the file.
indicate that the next read or write occurs from that position in a file.
determine if you can move the file position or not.
move the current file position to a different location at a defined offset.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following command is
used to open a file “c:\temp.txt” in read-mode only.
infile = open(“c:\temp.txt”, “r”)
infile = open(“c:\\temp.txt”, “r”)
infile = open(file = “c:\temp.txt”, “r+”)
infile = open(file = “c:\\temp.txt”, “r+”)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following command is used
to open a file “c:\temp.txt” in append-mode?
outfile = open(“c:\\temp.txt”, “a+”)
outfile = open(“c:\temp.txt”, “w+”)
outfile = open(“c:\\temp.txt”, “r+”)
outfile = open(“c:\\temp.txt”, “a”)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands can
be used to read “n” number of characters from a file using the file object <file>?
file.read(n)
n = file.read()
file.readline(n)
file.readlines()
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following statements are
false regarding the opening modes of a file?
When you open a file for reading, if the file does not exist, an error occurs.
When you open a file for writing, if the file does not exist, an error occurs.
When you open a file for reading, if the file does not exist, the program will open an empty file.
When you open a file for writing, if the file does not exist, a new file is created.
When you open a file for writing, if the file exists, the existing file is overwritten with the new file.
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Consider the given code and complete the missing statement.
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
BTEC National ICT - U1 LAA Software File Types 3

Quiz
•
12th Grade
10 questions
Windows 10 System Management Tools

Quiz
•
9th Grade - University
10 questions
LUA Test

Quiz
•
9th Grade - University
15 questions
KOMPUTER AKUNTANSI MYOB KELAS XII

Quiz
•
12th Grade
10 questions
File Type Extensions

Quiz
•
8th Grade - University
15 questions
Linux-2 Quiz 2 -- LAMP

Quiz
•
1st - 12th Grade
14 questions
T-Level DPDD: File Handling Quiz

Quiz
•
11th Grade
13 questions
Writing files in python

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University