Math Functions in Python

Descripción

Coding Python Test sobre Math Functions in Python, creado por PathaPadha Support el 27/10/2020.
PathaPadha Support
Test por PathaPadha Support, actualizado hace más de 1 año
PathaPadha Support
Creado por PathaPadha Support hace más de 4 años
184
0
1 2 3 4 5 (0)

Resumen del Recurso

Pregunta 1

Pregunta
Which module allows us to use math functions in Python ?
Respuesta
  • math
  • maths
  • mathematics
  • Math

Pregunta 2

Pregunta
What is the function of ceil( ) ?
Respuesta
  • 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

Pregunta 3

Pregunta
What is the function of floor( ) ?
Respuesta
  • 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

Pregunta 4

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

Pregunta 5

Pregunta
exp(x) returns the exponent value of x.
Respuesta
  • True
  • False

Pregunta 6

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

Pregunta 7

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

Pregunta 8

Pregunta
math.exp is used to get the value of e.
Respuesta
  • True
  • False
Mostrar resumen completo Ocultar resumen completo

0 comentarios

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