Python lists & file operations
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Enes isik
Used 16+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a list created?
a = 3, 5
a = [3, 5]
a = {3, 5}
a = list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which python code means; assign 25 to the variable x2?
25 = x2
x2 = 25
x2, 25
25, x2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a = [2, 5, 8, 1]
print("a[2]")
What is the output above?
5
8
a[2]
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list1 = ["hello", "hey", "hi"]
print(list1)
How many items will be printed?
1
2
3
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
filename="example.txt"
with open(filename, "w") as myfile:
myfile.write("Pershendetje")
What happens here?
a file called 'example' is being read
a file called 'example' is created and some text is saved in it.
The text in the 'example' file is assigned to a variable
a variable called filename is created and it's value is printed on a file
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write the code how to print the number of items of a list called 'mylist'?
7.
MULTIPLE CHOICE QUESTION
30 sec • Ungraded
What do you think about the difficulty level of Python?
Very difficult
A little difficult
Average
Not difficult
Easy
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
15 questions
Chapter 3: Storage devices and media (Part 2):
Quiz
•
10th - 11th Grade
15 questions
UH
Quiz
•
10th Grade
10 questions
Spoljna memorija - HDD
Quiz
•
9th - 11th Grade
10 questions
Espacio Opcional 3er Año Pío XII
Quiz
•
10th Grade
10 questions
Working with tables
Quiz
•
5th - 12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
15 questions
Начала программирования на языке Паскаль
Quiz
•
8th - 11th Grade
13 questions
RAM&HDD/SSD
Quiz
•
10th - 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
