Search Header Logo

Python Lists

Authored by Irene Feng

Computers

10th Grade

Used 4+ times

Python Lists
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which line of code is correct for creating a list of numbers?

num = ('10','29','37','109')

num = [10,29,37,109]

num = (10,29,37,109)

num = ['10 29 37 109']

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the index of the element with value 'Spain'?

['England','Brazil','Spain','France']

0

1

2

3

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which functions can I use to add an item(s) to a list?

variable.add()

variable.append()

variable.insert()

variable.extend()

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How do i remove something from a list?

variable.pop()

del variable[index]

variable.remove()

variable.del()

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following is valid python code for the list p?

p = [99, 9, 2, 33, 11]

p[5]

p[1:3]

p[2:]

p[2:0]

p[1:5]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is lis after this code is run?

Error

None

[2,3,4,23]

[2,3,4,2,3]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

[1, 2, 3]

[1, 2, 3, 4]

[4, 1, 2, 3]

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?