Python Lists

Python Lists

8th Grade

8 Qs

quiz-placeholder

Similar activities

Python Lists Substrings

Python Lists Substrings

8th - 9th Grade

10 Qs

Quiz

Quiz

8th Grade

10 Qs

Yr9 Coding Starter L4

Yr9 Coding Starter L4

8th Grade

8 Qs

Bee Swarm Simulator Quiz

Bee Swarm Simulator Quiz

5th Grade - University

9 Qs

Python

Python

7th - 9th Grade

13 Qs

G8 LIST 12

G8 LIST 12

8th Grade

10 Qs

List in Python

List in Python

8th - 9th Grade

10 Qs

Python List Methods

Python List Methods

8th - 9th Grade

10 Qs

Python Lists

Python Lists

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Paul Meehan

Used 30+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List items have an index number. In the following list, which item has the index number of 3?

["John", "Harry", "Jesse", "John", "Harry", "Harry"]

"John"

"Harry"

"Jesse"

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these pieces of code would return the name "Harry" from the following list?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList()

nameList[1]

NameList(4)

nameList["4"]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a list?

["apples", "oranges", "bananas"]

"apples", "oranges", "bananas"

{"apples", "oranges", "bananas"}

("apples", "oranges", "bananas")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An empty list can be declared as

fruitList = ""

fruitList = ["empty"]

fruitList == []

fruitList = []

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What is the position of the name "Robert" in the following list:
0
1
2
3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What output will this code produce?
['France', 'Wales', 'England']
France
['France', 'Wales', 'England']
Wales
France, Wales, England
Wales
France  Wales  England
France

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Is this the correct code for a list?

register = {"Sam", "Pheobe", Georgia", Richard"}

Yes

No

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
In the following code, "city" is an example of a what?
List
Loop
Variable
Array