
Python quiz 1

Quiz
•
Computers
•
Professional Development
•
Hard
Saritha B
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1.What happens if you open an existing file in 'x' mode?
Opens the file normally
Deletes the file
Raises FileExistsError
Overwrites the file
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.Which file operation mode allows both reading and writing without overwriting?
'r+'
'w+'
'a+'
'x+'
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.What is the result of file.seek(0)?
Moves pointer to end
Moves pointer to start
Closes file
Deletes content
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.What is the output of len(file.read())?
Number of words
Number of characters
Number of lines
File size in MB
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.What does the expression file.read().split() do?
Splits file into multiple files
Splits file content into list of words
Splits into lines
Creates new lines
Similar Resources on Wayground
10 questions
DBMS

Quiz
•
Professional Development
10 questions
Materi Sistem Operasi

Quiz
•
Professional Development
10 questions
Power BI day2 FN

Quiz
•
Professional Development
10 questions
DP-100 day 3

Quiz
•
University - Professi...
10 questions
Comm-Cen-Final-Quiz

Quiz
•
Professional Development
10 questions
Digital Office Technologies

Quiz
•
Professional Development
10 questions
Mid2 Lab Internal PPS

Quiz
•
Professional Development
10 questions
GO4! Quiz Zeriuz Fundamental GO

Quiz
•
Professional Development
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