
Python Quiz
Authored by Lovely Bajaj
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the method used to open and close files in Python?
load/save()
start/stop()
read/write()
open/close()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used for writing multiple strings to a file in Python?
print()
writelines()
append()
write()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the readlines() method in Python return?
specified number of lines
random lines
entire file content
single line
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you read and write Binary files in Python using the pickle module?
Encryption/Decryption
Encoding/Decoding
Compression/Decompression
Serialization/Deserialization
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the dump() method in Python's pickle module?
Serialize data
Deserialize data
Save data to a file
Load data from a file
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to move the file pointer to a specific location in Python?
point()
move()
seek()
locate()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the readline() method in Python do?
Read the entire file
Read a random line
Read specified number of lines
Read a single line
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
20 questions
TIK 9 - Penggunaan Browser Untuk Akses Internet
Quiz
•
11th - 12th Grade
15 questions
หน่วยที่ 1 ความรู้พื้นฐานการจัดการ ข้อมูลขนาดใหญ่ (Big Data)
Quiz
•
9th - 12th Grade
17 questions
Quiz 01 Keamanan Jaringan
Quiz
•
12th Grade
15 questions
ONLINE Quiz - Computer Hardware Basics (COMSYS 1)
Quiz
•
12th Grade
20 questions
Quiz
•
7th - 12th Grade
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
20 questions
Format File Gambar
Quiz
•
12th Grade
20 questions
Quiz ASJ
Quiz
•
12th Grade
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