NEW
Font size
WorksheetsFunctions in Python
Total questions: 10
Worksheet time: 10mins
Which of the following is not a built-in function?
type( )
len( )
def findSum():
eval( )
What is the output of the following function call?
var1+var2
50
10,40
no output
Which of the following is used to return a result from a function?
catch
continue
break
return
What will be the output of the following Python code?
10
num
x
no output
Which of the following is correct regarding an Argument?
A variable which we use in the function definition
A value we pass when we call the function
The order in which statements are executed
A keyword used to return a result from a function
What will be the output of the following Python code?
sara 19
name age
NameError
no output
The function randint( ) returns random integers between low and high numbers?
True
False
What is the output of the following Python code?print(round(51.6))
51.6
52
51
round(51.6)
What is the output of the following Python code?
num = 3
print( float(num) )
flaot(num)
3
3.0
TypeError
What is the output of the following function call?
5
25
30
no output
