Which of these is a list?

Python lists

Quiz
•

undefined undefined
•
Computers
•
7th - 9th Grade
•
34 plays
•
Medium
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
["apples", "oranges", "bananas"]
"apples", "oranges", "bananas"
{"apples", "oranges", "bananas"}
("apples", "oranges", "bananas")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these assigns a list to a variable?
fruit = input(["apples", "oranges", "bananas"])
fruit = ["apples", "oranges", "bananas"]
fruit == ["apples", "oranges", "bananas"]
fruit["apples", "oranges", "bananas"]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To add an item to the end of a list we use
fruit.add("strawberries")
fruit.append("strawberries")
append(fruit("strawberries")
("strawberries").append[fruit]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To insert an item in the first position of a list we use
fruit.append("strawberries, 1")
fruit.insert("strawberries",0)
fruit.insert(1, "strawberries")
fruit.insert(0, "strawberries")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the code output?
"apples", "oranges"
"apples"
"there are apples"
"there are no apples"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An empty list can be declared as
fruitList = ""
fruitList = ["empty"]
fruitList == []
fruitList = []
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of this code will be
"orange"
3
True
0
Explore all questions with a free account
Similar Resources on Quizizz
14 questions
9.1.2 - Starter Quiz

Quiz
•
7th - 11th Grade
15 questions
Unit 8 Javascript Quiz

Quiz
•
9th - 12th Grade
23 questions
Web Design Part 2

Quiz
•
9th - 12th Grade
18 questions
Banana Tales Part 1 - For loop & Range

Quiz
•
9th - 10th Grade
15 questions
Computer Science - Python

Quiz
•
9th - 12th Grade
14 questions
Zip Class Coding Adventure in Minecraft Education - Python

Quiz
•
6th - 8th Grade
15 questions
Python Data Types

Quiz
•
9th - 10th Grade
20 questions
HTML Review

Quiz
•
7th Grade
Popular Resources on Quizizz
19 questions
Naming Polygons

Quiz
•
3rd Grade
14 questions
Prime Factorization

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
35 questions
4th Grade Math SOL Review

Quiz
•
4th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
Discover more resources for Computers
45 questions
AP CSP Exam Review

Quiz
•
9th - 12th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
20 questions
Logos

Quiz
•
2nd - 8th Grade
36 questions
CF2 EOY

Quiz
•
8th Grade
84 questions
PLTW IED EOC Review

Quiz
•
9th - 12th Grade
25 questions
Logos

Quiz
•
7th - 8th Grade
65 questions
AP CSP Practice Exam

Quiz
•
9th - 12th Grade