Lists - Built in Functions

Quiz
•
Computers
•
11th Grade
•
Hard

MONA THAPAR
Used 37+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Loops

Quiz
•
5th - 12th Grade
20 questions
Python list, if

Quiz
•
6th - 12th Grade
20 questions
Lists in Python

Quiz
•
11th - 12th Grade
15 questions
Creating and Altering Data Structure

Quiz
•
9th - 12th Grade
16 questions
Test - Python básico II

Quiz
•
9th - 12th Grade
20 questions
Ch.8 - Introducing Python

Quiz
•
6th Grade - Professio...
25 questions
Introduction to Python

Quiz
•
KG - University
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade