
Python Arrays
Authored by O Hawkridge
Computers
9th - 10th Grade
Used 22+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct way to declare a list (array) in Python?
Hint: look carefully at the type of brackets used.
fruit = ["apples", "oranges", "bananas"]
fruit = "apples", "oranges", "bananas"
fruit = {"apples", "oranges", "bananas"}
fruit = ("apples", "oranges", "bananas")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each item in a list has an "address" or index. What is the first index in a Python list?
1
0
a
A
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the position of the name 'Paula' in the following list:
names = ["Paul","Phillip","Paula","Phillipa"]
0
1
2
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a list called "players", if you wanted to add a player called "Bob" to the list, which of the following examples of code would be correct?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In programming, lists are often known as...
Arrays
Elements
Indexes
Data
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List items have an index number. In the following list, which item has the index number 3?
["John", "Harry", "Jesse", "John", "Harry", "Harry"]
"John"
"Harry"
"Jesse"
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which code would I use to add an item to a list?
variable.add()
variable.append()
append.variable()
add.variable()
Access all questions and much more by creating a free account
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
10 questions
KS4 Programming Techniques (1)
Quiz
•
8th - 10th Grade
15 questions
Word Lesson 6
Quiz
•
9th - 12th Grade
16 questions
Subroutines
Quiz
•
9th - 11th Grade
10 questions
BTEC DIT C1 LAB - Project Requirements
Quiz
•
10th - 11th Grade
10 questions
Intro to Comp Sci U1: L 1
Quiz
•
9th - 12th Grade
15 questions
Access Basics
Quiz
•
9th - 12th Grade
10 questions
LOGOS AND SLOGANS
Quiz
•
KG - Professional Dev...
10 questions
Word basics
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade