Python Lists

Python Lists

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

Java Review

Java Review

9th Grade - University

25 Qs

Introduction to Multimedia and Photography

Introduction to Multimedia and Photography

12th Grade

23 Qs

CS-9 Chapter-4 Computer Hardware Part 1: Rabin Ghimire

CS-9 Chapter-4 Computer Hardware Part 1: Rabin Ghimire

8th - 9th Grade

24 Qs

Q1-Quiz No. 1 PECs, Environment & Market

Q1-Quiz No. 1 PECs, Environment & Market

9th Grade

22 Qs

CIW Vocab 6

CIW Vocab 6

9th - 12th Grade

22 Qs

Computer Science IT quiz WIP - IT Level 3 by MZH

Computer Science IT quiz WIP - IT Level 3 by MZH

9th - 12th Grade

23 Qs

Icon challenge

Icon challenge

4th - 9th Grade

26 Qs

Text and Image representation

Text and Image representation

11th Grade

22 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

Access all questions and much more by creating a free account

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?