🎙 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 14 of 14

What does this print? (code)

What does this print?

import math as m
print(m.sqrt(49) + m.pow(2, 3))
  1. A.15
  2. B.15.0
  3. C.7.08
  4. D.NameError: math
Answer & explanation

Correct answer: 15.0

The alias m stands for math. sqrt and pow both return floats: 7.0 + 8.0 = 15.0.

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 →