Search Header Logo

Python [Make a list]

Authored by Manik Kusuma

Computers

8th Grade

Used 5+ times

Python [Make a list]
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Check the command below:

trees = ["oak", "beech"', "willow"]

How many elements are in this list?

1

2

3

4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the command to append the value of the trees

"sycamore" to the list.

trees.append("sycamore")

append("sycamore")

trees.append("sycamore");

trees.append('Sycamore')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

is it for loop or while loop?

you want to add element to the list, but you are not sure how many elements there will be?

for loop (counter loop)

while loop (conditional loop)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Question about index number

check the command list below:

trees = ["oak", "beech", "willow"]
what is the value of the element [0]?

oak

beech

willow

error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Question about index number

check the command list below:

trees = ["oak", "beech", "willow"]
what is the value of the element [2]?

oak

beech

willow

error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Question about index number

check the command list below:

trees = ["oak", "beech", "willow"]
what is the command to delete element [2]?

del trees [2]

delete trees [2]

del Trees [2]

Del trees [2]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Question about index number

check the command list below:

trees = ["oak", "beech", "willow"]
what is the value of the element [6]?

oak

beech

willow

error (out bond 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?

Discover more resources for Computers