Python - MCQ

Multiple Choice Questions


Share with a Friend

 

Python - Multiple Choice Questions (MCQ) - Python functions, Modules and Packages - Set 25

26. What will be the output of 

A). array
B). numpy array
C). python array
D). list
View Answer
Correct: B


27. Select correct python packages from following 
A). numpy
B). opencv
C). math
D). matplotlib
E). SciPy
F). tensorflow
G). decimal
View Answer
Correct: A, B, D, E, F



28. What will be the of 

A). 0
B). 11
C). 22
D). Error
View Answer
Correct: C


29. What is the output of the following function call

def fun1(num):
    return num + 25

fun1(5)
print(num)
A). 25
B). 5
C). NameError
D). 30
View Answer
Correct: C



30. What is the output of the following function call

def outerFun(a, b):
    def innerFun(c, d):
        return c + d
    return innerFun(a, b)
    return a

result = outerFun(5, 10)
print(result)
A). 5
B). 15
C). (15, 5)
D). Syntax Error
View Answer
Correct: B



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper