Python Mathematical Functions Quiz
5 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the result of $math.exp(2)$?

  • 2.71828
  • 5.39
  • Approximately 7.389 (correct)
  • 4

What does the function $math.sqrt()$ do?

  • Returns the square root of a number (correct)
  • Returns the absolute value of a number
  • Returns the cube root of a number
  • Returns the factorial of a number

What is the result of $math.sin(math.radians(45))$?

  • Approximately 0.707 (correct)
  • 0.5
  • 1.0
  • 0.866

What does $math.log(2.71828)$ return?

<p>1.0 (natural logarithm of 'e') (D)</p> Signup and view all the answers

What does $math.fabs(-5)$ return?

<p>5.0 (C)</p> Signup and view all the answers

More Like This

Quiz de cálculos matemáticos con funciones en Python
5 questions
Python Functions Quiz
48 questions

Python Functions Quiz

LuckiestOganesson avatar
LuckiestOganesson
Use Quizgecko on...
Browser
Browser