
Python file handling

Quiz
•
Computers
•
8th - 11th Grade
•
Medium
Kevin Johnson
Used 203+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
R087 LO1 - Uses & properties of interactive multimedia products

Quiz
•
9th Grade
10 questions
PowerPoint 16 Module 1 Vocabulary - Cengage

Quiz
•
5th - 12th Grade
12 questions
Photoshop

Quiz
•
8th Grade
12 questions
Weebly L3

Quiz
•
6th - 8th Grade
15 questions
Adobe Photoshop

Quiz
•
1st - 10th Grade
15 questions
Soal Informatika Kelas V

Quiz
•
5th Grade - University
10 questions
Templates

Quiz
•
10th Grade
10 questions
HTML Tags

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade