Python List Operations

Quiz
•
Computers
•
10th Grade
•
Hard
Thomas Martinez
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Introduction to Microsoft Word

Quiz
•
10th - 12th Grade
11 questions
HTML Basics Quiz

Quiz
•
9th Grade - University
10 questions
MOAC Excel 2016 Lesson 03

Quiz
•
8th - 12th Grade
10 questions
Implementing Mass Storage Application

Quiz
•
10th Grade - University
15 questions
Python Lists

Quiz
•
10th - 12th Grade
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
14 questions
List Review Quiz

Quiz
•
9th - 12th Grade
15 questions
Google Docs

Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade