WorksheetsFunction -1
Total questions: 12
Worksheet time: 9mins
Which of the following functions is a built-in function in python?
seed()
sqrt()
factorial()
print()
What is the output of the expression:
round(4.576)
4.5
5
4
4.6
The function pow(x,y,z) is evaluated as:
(x**y)**z
(x**y) / z
(x**y) % z
(x**y)*z
What is the output of the function shown below?
import math
abs(math.sqrt(25))
Error
-5
5
5.0
What is the output of the functions shown below? min(max(False,-3,-4), 2,7)
2
False
-3
-4
Which of the following statement is not true?
Function makes program handling easy
Function reduces the line of code
Function makes program updation difficult.
none of the above
Function are of ____________ types.
1
2
3
4
Which one of the following is odd one out.
Built in functions
Modules
Parameter
User defined function
What is the output of the following
Max(-2,-7,-35,-4)
-2
-7
-35
-4
x=[1,2,3,4]
len(x)=?
4
3
2
none
Which of the following functions accepts only integers as arguments?
Min()
Max()
chr()
any()
Which keyword is use for function?
Fun
Define
def
Function
