Search Header Logo

List Manipulation Quiz 9

Authored by Reshma Kamthe

Computers

11th Grade

Used 14+ times

List Manipulation Quiz 9
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following list assignment

aList = [4, 8, 12, 16]

aList[1:4] = [20, 24, 28]

print(aList)

[4, 20, 24, 28, 8, 12, 16]

[4, 20, 24, 28]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of below Python code?

list1=[8,0,9,5]


print(list1[::-1])

[5,9,0,8]

[8,0,9]

[8,0,9,5]

[0,9,5]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sort () function in list by default sort the values in __________

Ascending order

Decending order

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [1, 3, 2], What is list1 * 2 ?

[2, 6, 4].

[1, 3, 2, 1, 3]

[1, 3, 2, 1, 3, 2]

[1, 3, 2, 3, 2, 1]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

___________ method adds one list at the end of another list.

extend( )

append( )

insert( )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

____________function can be used to insert an element/object at a specified index.

extend( )

insert ( )

append( )

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the value of the 'found' variable be after this code is run?
found = "No" in "No toast!"

True
False
92.5
Would you like a waffle?

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?