
Python file handling

Quiz
•
Kevin Johnson
•
Computers
•
8th - 11th Grade
•
203 plays
•
Medium
Student preview

10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the data type of data read to and from a file?
String
Integer
Real
Boolean
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Reading from a file often involves using...
A loop
A condition
Comments
A print() statement
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code do?
opens a text file, reads the contents and prints to the screen
opens a text file and writes the variable 'record' to the file
opens a text file and prints 'record' to the screen
opens a text file and prints it out
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What escape character is used to make a new line?
\t
\r
\n
\newline
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct Python code to get the number of items in a list named 'scores'
len(scores)
length(scores)
scores.len()
10
Explore all questions with a free account
Similar Resources on Quizizz
15 questions
Microsoft Word Vocabulary Quiz

Quiz
•
9th - 12th Grade
10 questions
Microsoft Word Review

Quiz
•
9th Grade
15 questions
Preparing Computer Graphics 18-1

Quiz
•
7th - 8th Grade
10 questions
HTML Tags

Quiz
•
9th Grade
15 questions
App Lab

Quiz
•
6th - 9th Grade
10 questions
Templates

Quiz
•
10th Grade
15 questions
Adobe Photoshop

Quiz
•
1st - 10th Grade
15 questions
Python - Chapter 6: Review Questions

Quiz
•
8th Grade - University
Popular Resources on Quizizz
19 questions
Naming Polygons

Quiz
•
3rd Grade
14 questions
Prime Factorization

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
35 questions
4th Grade Math SOL Review

Quiz
•
4th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
Discover more resources for Computers
45 questions
AP CSP Exam Review

Quiz
•
9th - 12th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
40 questions
AP Computer Science Principles Practice

Quiz
•
10th Grade
20 questions
Logos

Quiz
•
2nd - 8th Grade
36 questions
CF2 EOY

Quiz
•
8th Grade
84 questions
PLTW IED EOC Review

Quiz
•
9th - 12th Grade
25 questions
Logos

Quiz
•
7th - 8th Grade
65 questions
AP CSP Practice Exam

Quiz
•
9th - 12th Grade