

PYTHON - Built In Functions
Presentation
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Mansi Srivastava
Used 39+ times
FREE Resource
1 Slide • 23 Questions
1
PYTHON - Built In Functions
Recapitulation

2
Fill in the Blanks
Type answer...
3
Fill in the Blanks
Type answer...
4
Multiple Select
Select the statements which are true for Python function.
A function is a code block that only executes when it is called.
Python function always returns a value.
A function only executes when it is called and we can reuse it in a program
A function has to be defined before invoking it.
5
Multiple Choice
What is the output of the following function call
def fun1(num):
.......return num + 25
fun1(5)
print(num)
# ....... denotes spaces
25
5
Name error
6
Multiple Choice
What is the output of the following string operations
str = "My salary is 17000";
print(str.isalnum( ))
True
False
7
Fill in the Blanks
Type answer...
8
Multiple Choice
Which function will return the last three characters of string, name?
name [ 3 : ]
name [ : 3 ]
name [ -3 : ]
name [ : -3 ]
9
Multiple Choice
Select the correct output of the following String Operation:
str = 'Waah'
print ( str[ : 3 ] + 'Bhai' + str[ -3 : ] )
WaaBhaiaah
Waa Bhai aah
WaahBhaiWaah
10
Multiple Choice
What is the output of the following statement:
print(len(1) or True))
True
error
False
1
11
Multiple Choice
Select the correct output of the following String operations
str1 = "my isname isisis jameis isis bond"
sub = "is"
print(str1.count(sub, 4))
5
6
7
12
Multiple Choice
Which method should I use to convert String
"welcome to the world of python" TO
"Welcome To The Beautiful World Of Python"
Capitalize( )
upper( )
title( )
13
Multiple Choice
What is the output produced by the following statements:-
mycity = "Delhi, Lucknow, Jaipur, delhi, Chennai"
mycity.replace( 'Delhi' , ' Pune' )
' Pune, Lucknow, Jaipur, Pune, Chennai '
' Pune, Lucknow, Jaipur, delhi, Chennai '
' Delhi, Lucknow, Jaipur, delhi, Chennai '
' Delhi, Lucknow, Jaipur, Pune, Chennai '
14
Multiple Choice
What is the output of the statements:-
What is the output of the following string comparison
print("John" > "Jhon")
print("Emma" < "Emm")
True
False
True
True
False
False
False
True
15
Multiple Choice
Select the correct output of the following String operations
str = "my name is James bond"
print (str.capitalize( ))
my name is James bond
My Name Is James Bond
My name is James bond
TypeError: unsupported operand type(s)
16
Multiple Choice
What will be the output of following string operation:-
classlist = ' Anna, Kate, Becky, Kim, Charles'
classlist.index('John',2)
-1
0
ValueError
17
Multiple Choice
Select the correct output of the following String operation:
subject = 'Artificial Intelligence'
subject.startwith('Art')
True
False
0
18
Multiple Choice
Select the correct output of the following String operation:
s = 'money'
'$'.join(s)
'$money'
'm$o$n$e$y'
'money$'
'mo$n$ey'
19
Multiple Choice
Select the correct output of the following code:
s='Magic is Real'
s.istitle( )
False
True
'Magic Is Real'
20
Multiple Choice
Select the correct output of the String Operation:
s='ABRA-CADABRA'
s.find('Ab',1)
0
7
-1
5
21
Multiple Choice
What is the output of the following code statement :
print(len(181))
3
4
error
0
22
Multiple Choice
Select the output of the following code:
s='Every Little Helps!'
s.partition('tt')
'Every Li', 't', 'tle Helps!')
'Every Li', 'tt', 'le Helps!')
'Every' , 'Li', 't', 'tle, 'Helps!')
23
Multiple Choice
Select the correct output of the following code statements:
s=''
s.ispace()
True
False
24
Fill in the Blanks
Type answer...
PYTHON - Built In Functions
Recapitulation

Show answer
Auto Play
Slide 1 / 24
SLIDE
Similar Resources on Wayground
19 questions
R081 - Naming Conventions
Presentation
•
10th Grade
19 questions
C5.3.2 Packet Delivery and Protocols
Presentation
•
11th Grade
21 questions
Video Production
Presentation
•
11th Grade
20 questions
Software Testing Standards
Presentation
•
11th Grade
19 questions
Parts of the motherboard
Presentation
•
10th Grade
16 questions
PRESENT SIMPLE
Presentation
•
11th Grade
18 questions
Grade 11 LO
Presentation
•
11th Grade
19 questions
SSUSH8B: Manifest Destiny
Presentation
•
11th Grade
Popular Resources on Wayground
15 questions
Grade 3 Simulation Assessment 1
Quiz
•
3rd Grade
22 questions
HCS Grade 4 Simulation Assessment_1 2526sy
Quiz
•
4th Grade
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
20 questions
Math Review
Quiz
•
3rd Grade