Python Lists

Quiz
•
Computers
•
7th - 11th Grade
•
Medium

M Duce
Used 161+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a list?
fruit = ["apples", "oranges", "bananas"]
fruit = "apples", "oranges", "bananas"
fruit = {"apples", "oranges", "bananas"}
fruit = ("apples", "oranges", "bananas")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to create an empty list called colours, which of the following pieces of code is correct?
colours = { }
colours = ( )
colours = [ ]
colors = [ ]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each item in a list has an "address" or index. The first index in a Python list is what?
1
0
a
A
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
names = ["Paul","Phillip","Paula","Phillipa"]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the position of the name "Robert" in the following list:
0
1
2
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output will this code produce?
['France', 'Wales', 'England']
France
France Wales England
France
France, Wales, England
Wales
['France', 'Wales', 'England']
Wales
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the APPEND procedure do in the following code:
Adds Liverpool to the beginning of the list
Replaces Bristol with Liverpool
Replaces Manchester with Liverpool
Adds Liverpool to the end of the list
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In programming, lists are often known as...
Arrays
Elements
Indexes
Data
Similar Resources on Wayground
10 questions
Design Principles

Quiz
•
9th - 11th Grade
10 questions
Image Representation Lesson 2

Quiz
•
9th Grade
12 questions
Python list starter

Quiz
•
10th Grade - University
14 questions
Python: списки, кортеж, словник, множина

Quiz
•
9th - 12th Grade
10 questions
Basic Coding Terminology

Quiz
•
6th - 8th Grade
12 questions
iGCSE Computer Science: Digital Image Representation

Quiz
•
9th - 12th Grade
10 questions
Python Arrays 1D

Quiz
•
9th - 11th Grade
10 questions
Logo's

Quiz
•
7th - 9th 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