Search Header Logo

Lists - Built in Functions

Authored by MONA THAPAR

Computers

11th Grade

Used 42+ times

Lists - Built in Functions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Name the function that is used to create an empty list.

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

What will be the output of the following Code?

P = '~~Happy Diwali~~'

print(len(list(P))

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which function(s) out of the following will increase the length of the list?

insert()

index()

append()

extend()

reverse()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the output of the following code?

A = [10,5,'ABC', 3, 'XYZ', 4]

print(A.sort())

['ABC', 'XYZ', 3,4 5,10]

['XYZ', 'ABC', 10,5,4,3]

[ 3,4 5,10, 'ABC', 'XYZ',]

TypeError

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Which function will add a list to the end of another list as a single element?

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select the functions from the following that carry out inplace operation in the given list.

sum()

clear()

insert()

sorted()

sort()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a function in Python?

pop

remove

del

clear

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?