List Manipulation Quiz 9

List Manipulation Quiz 9

11th Grade

15 Qs

quiz-placeholder

Similar activities

Python Fundamentals and Programming

Python Fundamentals and Programming

11th - 12th Grade

13 Qs

Strings, Lists & Tuples

Strings, Lists & Tuples

9th - 12th Grade

20 Qs

Pyflask2020

Pyflask2020

KG - Professional Development

10 Qs

Quiz1_HPB2021_2010t1

Quiz1_HPB2021_2010t1

1st - 12th Grade

10 Qs

For loops and Lists

For loops and Lists

9th - 12th Grade

20 Qs

ArrayList

ArrayList

9th - 12th Grade

15 Qs

Java ArrayList

Java ArrayList

9th - 12th Grade

10 Qs

LIST slice

LIST slice

11th Grade

10 Qs

List Manipulation Quiz 9

List Manipulation Quiz 9

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Reshma Kamthe

Used 14+ times

FREE Resource

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?

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?