Python Mathematical Functions Quiz
5 Questions
1 Views

Python Mathematical Functions Quiz

Created by
@WholesomeBronze

Podcast Beta

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')</p> Signup and view all the answers

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

    <p>5.0</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser