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
15 questions
Module 4 - Advanced Techniques using Microsoft Word

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

Quiz
•
9th - 12th Grade
20 questions
TIKamy po angielsku

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

Quiz
•
6th Grade - Professio...
19 questions
Lists and Tuples

Quiz
•
11th Grade
20 questions
Python list, if

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

Quiz
•
9th - 12th Grade
20 questions
Microsoft Word Ribbon Test

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade