Worksheets7. PYTHON FUNCTIONS - 3
Total questions: 10
Worksheet time: 6mins
1. When a function calls itself is known as ______________ .
lamda
recursion
local
none of these
2. ___________ function returns the ASCII value for the given Unicode character.
abs()
chr()
ord()
bin
3. _____________ function returns the nearest integer to its input.
format()
round()
integer()
bin()
4. ____________function returns the largest integer
less than or equal to x .
ceil ( )
sqrt ( )
floor ( )
pow()
The value returned by a function may be used as an argument for another function in a nested manner is called ________________.
expression
nested
composition
a & b
A _______________ function is called by some external code.
built-in
user-defined
lambda
recursive
________ function returns an absolute value of a number.
pow()
int()
floor()
abs()
What term is used to describe data passed into a function?
Variable
Loop
Constant
Parameter
_________ function return the address of the object in memory.
floor()
pow()
id( )
ord()
10. What is the output of the following code?
MyList = [21,76,98,23]
print ('Maximum of MyList :', max(MyList))
(a)
