Search Header Logo

Lists in Python

Authored by Fatmah Alkhzaimi

Information Technology (IT)

6th - 8th Grade

Used 7+ times

Lists in Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a list in Python?

  • list = {1, 2, 3}

list = [1, 2, 3]

list = (1, 2, 3)

list = "1, 2, 3"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code print?

apple

banana

cherry

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

10

20

30

40

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can change the value of an item in a list after creating it.

True

False

5.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

What do we use to separate items in a list

(a)  

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

names = ["Nouf", "Hamda", "Mariam", "Latifa"]

What index is the list value "Mariam" located?

0

1

2

3

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?