
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
Latihan Soal ASJ Kelas XII

Quiz
•
12th Grade
45 questions
ASJ_XI_PAS_24-25

Quiz
•
11th Grade - University
39 questions
Pemrograman Python

Quiz
•
12th Grade
45 questions
Quizes-Syntax-Master

Quiz
•
12th Grade
42 questions
Quis US kelas IX

Quiz
•
9th Grade - University
36 questions
Installing, Configuring, and Maintaining Operating Systems

Quiz
•
12th Grade
35 questions
Python - 2.தரவு அருவமாக்கம்

Quiz
•
12th Grade
44 questions
Multidimensional list and tuples 2025

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade