Math Functions in Python

Description

Coding Python Quiz on Math Functions in Python, created by PathaPadha Support on 27/10/2020.
PathaPadha Support
Quiz by PathaPadha Support, updated more than 1 year ago
PathaPadha Support
Created by PathaPadha Support over 4 years ago
181
0
1 2 3 4 5 (0)

Resource summary

Question 1

Question
Which module allows us to use math functions in Python ?
Answer
  • math
  • maths
  • mathematics
  • Math

Question 2

Question
What is the function of ceil( ) ?
Answer
  • returns next integer value after the floating number
  • returns previous integer value before the floating number
  • returns any integer nearest to the floating number
  • returns the same floating number

Question 3

Question
What is the function of floor( ) ?
Answer
  • returns the next integer of the floating number
  • returns the previous integer of the floating number
  • returns the floating point number + 1
  • no such function is there

Question 4

Question
import math x, y = 6, 4 print(math.fmod(x, y)) What is the output ?
Answer
  • 2
  • 1.5
  • 1
  • 0

Question 5

Question
exp(x) returns the exponent value of x.
Answer
  • True
  • False

Question 6

Question
Which function is used to find x to the power y value ?
Answer
  • exp(x, y)
  • pow(x, y)
  • power(x, y)
  • exponent(x, y)

Question 7

Question
Which mathematical constant is used to get the value 3.142857143
Answer
  • math.pi
  • math.pie
  • math.e
  • math.p

Question 8

Question
math.exp is used to get the value of e.
Answer
  • True
  • False
Show full summary Hide full summary

0 comments

There are no comments, be the first and leave one below:

Similar

Think Python
tsilvo2001
Basic Python - Print Formatting
Rebecca Noel
What is Python?
Daniel Ingram
Python
54671
Know your Python!
educ8ict
Basic Python - Strings
Rebecca Noel
Study on IoT systems design
Tomasz Cieplak
OpenSource Programming
Faheem Ahmed
Basic Python - Lists
Rebecca Noel
Python
Kirstie Wu