Python - List
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Ming Lai
Used 14+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
thisnut = ["almond", "walnut", "pecan", "peanut", "hazelnut", "pistachios", "butternut"]
print(thisnut[1:4])
['walnut', 'pecan', 'peanut']
['almond', 'walnut', 'pecan']
['walnut', 'pecan', 'peanut', 'hazelnut']
['almond', 'walnut', 'pecan', 'peanut']
2.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Thislist = [“Python”, “Arduino”, “Javascript”]
Print(thislist[2])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Thislist = [“Arduino”, “Python”, “Javascript”]
Print(thislist[-2])
Arduino
Python
Javascript
4.
MULTIPLE CHOICE QUESTION
30 sec • 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
30 sec • 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
30 sec • 1 pt
What does this code do?
thiscolor = ["red", "green", "blue"]
thiscolor[1] = "black"
print(thiscolor)
Replace 'red' with 'black'
Replace 'green' with 'black'
Replace 'blue' with 'black'
Answer explanation
Change the second item
7.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Lists are used to store multiple items in a single variable.
List items are ......
Which of the following are true about list (more than one answer is correct)
ordered
changeable
Allow duplicate numbers
indexed
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
Already have an account?
Similar Resources on Wayground
15 questions
MVC-PHP
Quiz
•
12th Grade
10 questions
aplikasi pengolah angka
Quiz
•
10th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
15 questions
CSS quiz No. 4 (4th qtr)
Quiz
•
10th Grade
13 questions
PowerPoint Quiz 2
Quiz
•
9th Grade
12 questions
Microsoft Office Word
Quiz
•
4th Grade - University
10 questions
Soal Ujian Komputer
Quiz
•
10th - 12th Grade
15 questions
PrePost Mail Merge
Quiz
•
10th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
85 questions
Word Processing Review
Quiz
•
8th - 9th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
31 questions
Python Conditionals Review
Quiz
•
9th - 12th Grade
