Class 12 Questions : Function Set 1

11.
What are the two main types of functions?

a) Custom function & User defined function
b) Built-in function & User defined function
c) User defined function & System function
d) System function & Built-in functions

12.
Which of the following is the use of id() function in python?

a) Id returns the identity of the object
b) Every object doesn’t have a unique id
c) All of the mentioned
d) None of the mentioned

13.
Which of the following refers to mathematical function?

a) sqrt
b) rhombus
c) add
d) fact

14.
What is the output of below program?

def cube(x):
    return x * x * x      
x = cube(3)    
print( x)

a) 9
b) 3
c) 27
d) 30

15.
What is the output of the below program?

def C2F(c):
    return c * 9/5 + 32
print (C2F(100))
print (C2F(0))

a) 212.0
32.0
b) 314.0
24.0
c) 567.0
98.0 
d) None of the mentioned