Program Development - Python: Lists

Program Development - Python: Lists

8th - 10th Grade

22 Qs

quiz-placeholder

Similar activities

CS 26_01_24

CS 26_01_24

9th - 12th Grade

20 Qs

String Manipulation 2

String Manipulation 2

10th Grade

17 Qs

Python Lists

Python Lists

9th - 12th Grade

17 Qs

Python basics

Python basics

7th - 10th Grade

18 Qs

Python List

Python List

8th - 9th Grade

20 Qs

List in Python

List in Python

8th - 9th Grade

20 Qs

Python List String as Collections

Python List String as Collections

8th - 9th Grade

20 Qs

Review String

Review String

9th - 12th Grade

21 Qs

Program Development - Python: Lists

Program Development - Python: Lists

Assessment

Quiz

Computers

8th - 10th Grade

Medium

Used 66+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What letter will be printed on the screen after running this code:
e
x
t
Nothing prints

2.

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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

4.

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?
0
1
a
A

5.

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

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

7.

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")

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?