
Python-Quiz1

Quiz
•
Computers
•
12th Grade
•
Medium
Shalini Sharma
Used 6+ times
FREE Resource
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()
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
2.6 Data Representation Compression

Quiz
•
8th - 12th Grade
35 questions
Systems Admin

Quiz
•
9th - 12th Grade
35 questions
Techno GIMP

Quiz
•
9th - 12th Grade
44 questions
Computer Science Revision 1

Quiz
•
12th Grade
40 questions
ADMINISTRASI SISTEM JARINGAN KELAS XII

Quiz
•
12th Grade
35 questions
Perbaikan Nilai - Python

Quiz
•
12th Grade
40 questions
YEAR 11 DATA PROCESSING SECOND TERM UNIFIED TEST

Quiz
•
9th - 12th Grade
45 questions
Microsoft Excel - Basics

Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade