Python Lists
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Hard
Ajay Tech
Used 81+ times
FREE Resource
Enhance your content in a minute
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create an empty list in python
[ ]
{ }
( )
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
How to create a new empty list in python
[ ]
list ( )
list.init( )
create.list ( )
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
grades = [2.0, 3.0, 4.0]
Which of the following code can be used to iterate over the grades list ?
for grade in grades :
# todo
i = 0
while i < len(grades) :
#todo
i = i + 1
[print ( i ) for i in grades]
for i, grade in enumerate(grades) :
# todo
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
grades = [2.0, 3.0, 4.0]
How do you get the length of the list above
len(grades)
length(grades)
list.length(grades)
list.len(grades)
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
a = [ 1, 3, 5 ]
b = [ 7, 9, 11 ]
How do you merge these two lists ?
a + b
a.extend(b)
a.merge(b)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
numbers [-3]
What is numbers [-3]
8
9
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers = [1,2,3,4,5,6,7,8,9,10]
print ( numbers[-3] == numbers[7])
The output of the program above is
True
False
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
50 questions
KUIZ SUKAN DAN PERMAINAN
Quiz
•
KG - Professional Dev...
50 questions
BL M-02 FIRE CODE FLASHCARDS 01
Quiz
•
University - Professi...
51 questions
BT - Ch-3 (BPP) Culture
Quiz
•
Professional Development
50 questions
HUT RSSM CIKARANG
Quiz
•
Professional Development
50 questions
BASIC FIRE BRIGADE
Quiz
•
Professional Development
49 questions
Latihan Soal Kejuruan
Quiz
•
Professional Development
50 questions
UQ/L-3/BK-3/Assessment/English
Quiz
•
Professional Development
50 questions
Science
Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
