Math Module in Python MCQs Exercise I


Ques 1 Math Module


Which of the following does not come under the math module?
  a) ceil()
  b) floor()
  c) sqrt()
  d) round()


d is the correct option





Ques 2 Math Module


Which of the following is the correct order of return type of a given function?
    ceil(),pi(),floor(),sqrt()

  a) integer,integer,integer,integer
  b) integer,float,float,integer
  c) integer,float,integer,float
  d) float,float,float,float


c is the correct option





Ques 3 Math Module


What is the output of the following Python Code?


import math
def area(radius):
    return math.pi()*radius*radius
print(area(10))

  a) 314.61
  b) 3.14
  c) Error
  d) 316.3421


c is the correct option