Program Development - Python: Lists

Program Development - Python: Lists

8th - 10th Grade

22 Qs

quiz-placeholder

Similar activities

Combined Python Turtle 1&2

Combined Python Turtle 1&2

8th Grade

20 Qs

Algorithms - python (GCSE)

Algorithms - python (GCSE)

10th - 12th Grade

25 Qs

Python List Practice

Python List Practice

8th - 9th Grade

20 Qs

Project Stem Python Fundamentals

Project Stem Python Fundamentals

10th - 12th Grade

19 Qs

String Manipulation 2

String Manipulation 2

10th Grade

17 Qs

Assessment #2

Assessment #2

5th Grade - Professional Development

20 Qs

APCSP Semester Review

APCSP Semester Review

8th - 9th Grade

20 Qs

List & String - Gtrade 9 Recap - Jan 22

List & String - Gtrade 9 Recap - Jan 22

9th - 11th Grade

20 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?