
Python-Quiz1
Authored by Shalini Sharma
Computers
12th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How many file objects would you need to manage to process four files sequentially ?
Three objects are needed
Four objects are needed
Two objects are needed
One object is needed
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How many file objects would you need to manage to merge two sorted files into third file ?
Three objects are needed
Four objects are needed
Two objects are needed
One object is needed
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The readlines( ) method returns :
string
A list of integers
A list of single characters
A list of lines
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which command is used to read the remaining lines of the file from a file object fobj?
fobj.read(2)
fobj.read()
fobj.readline()
fobj.readlines()
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which command is used to read two characteters from a file object fobj?
fobj.read(2)
fobj.read()
fobj.readline()
fobj.readlines()
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In python _____ are interpreted as a sequence or stream of bytes stored on some storage media.
Data
Files
Stream
Binary
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which method is used to remove/ delete a file?
data()
remove()
kll()
close()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
45 questions
Tin - 12 - ck1
Quiz
•
12th Grade
40 questions
ANIMATION / Principles of Animation
Quiz
•
6th - 12th Grade
35 questions
Photoshop ACA
Quiz
•
9th - 12th Grade
35 questions
98-367 PT3
Quiz
•
9th - 12th Grade
45 questions
TryOut Ujian Sekolah Pengetahuan - TIK SMP N 1 JEPARA
Quiz
•
12th Grade
37 questions
Excel Gmetrix Quiz
Quiz
•
10th - 12th Grade
36 questions
EarSketch/Python Programming
Quiz
•
9th - 12th Grade
44 questions
Movies
Quiz
•
2nd Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade