
List in Python

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Kelzang Phuntsho
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
nut = ["almond", "walnut", "pecan", "peanut", "hazelnut", "pistachios", "butternut"]
print(nut[1:4])
['walnut', 'pecan', 'peanut']
['almond', 'walnut', 'pecan']
['walnut', 'pecan', 'peanut', 'hazelnut']
['almond', 'walnut', 'pecan', 'peanut']
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
my_list = [“Python”, “Arduino”, “Javascript”]
print(my_list[2])
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
my_list = [“Arduino”, “Python”, “Javascript”, “Java”]
print(my_list[-3])
Arduino
Python
Javascript
Java
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
thisnut = ["almond", "walnut", "pecan", "peanut", "hazelnut", "pistachios", "butternut"]
print(thisnut[:3])
['almond', 'walnut', 'pecan']
['walnut', 'pecan', 'peanut']
['almond', 'peanut', 'hazelnut']
['hazelnut', 'pistachios', 'butternut']
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
thisAnimal = ["Cow", "Horse", "Rabbit", "Elephant", "Lion", "Tiger", "Zebra"]
print(thisAnimal[-3:-1])
['Elephant', 'Lion']
['Lion', 'Tiger']
['Lion', 'Tiger', 'Zebra']
['Rabbit', 'Horse', 'Cow']
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does this code do?
thiscolor = ["red", "green", "blue"]
thiscolor[1] = "black"
print(thiscolor)
Replace 'red' with 'black'
Replace 'blue' with 'black'
Replace 'green' with 'black'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lists are used to store multiple items in a single variable.
List items are ......
Which of the following is not true about list.
ordered
changeable
not allow duplicate members
indexed
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
MS Word Fillable Forms

Quiz
•
10th Grade
11 questions
UIL Computer Science

Quiz
•
12th Grade
10 questions
Mail merge

Quiz
•
9th Grade
11 questions
TIN HỌC B23_10

Quiz
•
10th Grade
12 questions
Unit 5 Lists, Loops, & Traversals

Quiz
•
10th - 12th Grade
15 questions
HTML Quiz

Quiz
•
7th - 12th Grade
10 questions
Teknologi Informasi dan Komunikasi

Quiz
•
10th - 12th Grade
10 questions
Ms Word: Formatting Text & Image

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

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

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade