Python Lists

Python Lists

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

Networks, Internet Communication and Protocols

Networks, Internet Communication and Protocols

9th Grade

25 Qs

Programming in Python

Programming in Python

9th Grade

25 Qs

GAD Review - Game Industry

GAD Review - Game Industry

9th - 12th Grade

22 Qs

HTML Quiz

HTML Quiz

9th Grade

22 Qs

Fun Computing KS2

Fun Computing KS2

3rd - 12th Grade

22 Qs

UH 1-MYOB Manufaktur

UH 1-MYOB Manufaktur

12th Grade

25 Qs

SERIES1 VKL

SERIES1 VKL

12th Grade

23 Qs

Middles Computer Science Summer Assessment Revision

Middles Computer Science Summer Assessment Revision

9th Grade

23 Qs

Python Lists

Python Lists

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Jakobi Gorham

Used 48+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

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

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

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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"

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The list needs one more name added to the end - "Felipe". Which piece of code below would do this?

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

nameList.append(Felipe)

append(nameList,"Felipe")

nameList.append["Felipe",7]

nameList.append("Felipe")

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What output will this code produce?

blue
green
red
error

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Consider this list, what will be the highest index the list can have:

li=[1,2,3,4,5]

2

3

4

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

The count() method returns the number of times the specified element appears in the list.

What is the output of this code?

3

2

1

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is the output of this code?

X

Y

Error

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?