Python Arrays

Quiz
•
Computers
•
9th - 10th Grade
•
Medium
O Hawkridge
Used 12+ times
FREE Resource
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
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()
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python list starter

Quiz
•
10th Grade - University
10 questions
Python lists & file operations

Quiz
•
10th Grade
10 questions
Python Lists

Quiz
•
8th - 9th Grade
15 questions
list in python

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

Quiz
•
9th - 11th Grade
9 questions
Unit 5 -- Lists, Loops, Traversals

Quiz
•
9th - 12th Grade
10 questions
Списки Python + Pygame

Quiz
•
KG - University
12 questions
Lists IN PYTHON!!!!!!!!

Quiz
•
KG - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

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

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade