Python Arrays

Python Arrays

9th - 10th Grade

11 Qs

quiz-placeholder

Similar activities

Python Lists

Python Lists

7th - 11th Grade

9 Qs

[AP CSP] Programming: LISTS/ARRAYS (Python)

[AP CSP] Programming: LISTS/ARRAYS (Python)

9th - 12th Grade

16 Qs

Lists IN PYTHON!!!!!!!!

Lists IN PYTHON!!!!!!!!

KG - 12th Grade

12 Qs

Lists In Python_1

Lists In Python_1

9th Grade - University

15 Qs

Arrays in Python

Arrays in Python

8th - 10th Grade

10 Qs

Python List Operations

Python List Operations

10th Grade

10 Qs

Python Data Structures

Python Data Structures

10th Grade

10 Qs

list in python

list in python

10th - 12th Grade

15 Qs

Python Arrays

Python Arrays

Assessment

Quiz

Computers

9th - 10th Grade

Medium

Created by

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

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?
players.add("Bob")
player.append("Bob")
players.append("Bob")
players.addend("Bob")

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?