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
Cell References Puzzle

Quiz
•
7th - 8th Grade
10 questions
HTML Basics (Year 8)

Quiz
•
8th Grade
11 questions
Sorting Algorithms

Quiz
•
9th - 10th Grade
7 questions
For Loops

Quiz
•
8th Grade
10 questions
BGE Festive Quiz

Quiz
•
6th - 8th Grade
10 questions
GCSE Computer Science 9-1: Sorting Algorithms

Quiz
•
10th Grade - University
10 questions
HTML Basics

Quiz
•
8th - 10th Grade
10 questions
Search Algorithms

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade