Search Header Logo

Module 08 - Lists

Authored by Casey Devet

Computers

10th Grade

Module 08 - Lists
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following correctly creates a list?

names = "John", "Paul", "George", "Ringo"

names = {"John", "Paul", "George", "Ringo"}

names = ["John", "Paul", "George", "Ringo"]

names = ["John" "Paul" "George" "Ringo"]

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

True or False:


A list can only store numbers or strings.

True

False

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

True or False:


The first element in a list has index 1.

True

False

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which command will print "Davey"?

print(students)

print(students[3])

print(students[4])

print(students[5])

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the index of the last element of this list?

0

4

5

6

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which command will replace "Betty" with "Bobby" in the list?

students["Betty"] = "Bobby"

students[3] = "Betty"

students[2] = "Bobby"

students[1] = "Bobby"

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be printed if name has the value "Joe"?

ABC

XYZ

ABC

XYZ

Nothing

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?