Python Lists

Python Lists

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

1.02 Setting a PC System Vocabulary : Zack DeBenedictis

1.02 Setting a PC System Vocabulary : Zack DeBenedictis

9th - 12th Grade

22 Qs

TIN 10 BÀI F6.1

TIN 10 BÀI F6.1

10th Grade

22 Qs

Sistem Komputer

Sistem Komputer

10th Grade

23 Qs

IAW_2AS3_PHP_1

IAW_2AS3_PHP_1

1st Grade - University

23 Qs

ADMINISTRASI SISTEM JARINGAN - Penilaian Tengah Semester (Remidi dan Susulan)

ADMINISTRASI SISTEM JARINGAN - Penilaian Tengah Semester (Remidi dan Susulan)

11th Grade

25 Qs

Module 5 RAM

Module 5 RAM

9th Grade

22 Qs

UJIAN MID SEMESTER 1 X ALL MAPEL SIMULASI DAN KOMUNIKASI DIGITAL

UJIAN MID SEMESTER 1 X ALL MAPEL SIMULASI DAN KOMUNIKASI DIGITAL

10th Grade - University

25 Qs

PROGRAMACIÓN-2 INFORMÁTICA

PROGRAMACIÓN-2 INFORMÁTICA

12th Grade - University

22 Qs

Python Lists

Python Lists

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Jakobi Gorham

Used 49+ 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?