
Python lists

Quiz
•
Computers
•
7th - 9th Grade
•
Medium
Used 34+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a list?
["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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Introduction to HTML and CSS

Quiz
•
8th - 9th Grade
16 questions
Searching Algorithms

Quiz
•
9th - 11th Grade
16 questions
Unit 2 - Web Development in Computer Science

Quiz
•
8th Grade
15 questions
Hyperlink Tags (HTML)

Quiz
•
6th - 12th Grade
15 questions
Number Base Systems

Quiz
•
9th Grade
18 questions
Big Data

Quiz
•
9th - 12th Grade
20 questions
ICT1 MS Word Beg

Quiz
•
6th - 8th Grade
18 questions
Banana Tales Part 1 - For loop & Range

Quiz
•
9th - 10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade