🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Modules and Libraries: all 14 questions

Quiz: Modules and Libraries · Question 1 of 14

What does from math import sqrt let you write?

What does from math import sqrt let you write?

  1. A.math.sqrt(9) only
  2. B.sqrt(9)
  3. C.import.sqrt(9)
  4. D.math->sqrt(9)
Answer & explanation

Correct answer: sqrt(9)

It imports the name sqrt directly, so you can call sqrt(9).

Can you get the rest right without peeking?

Take the timed Quiz: Modules and Libraries quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →