🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Feature Engineering: all 10 questions

Quiz: Feature Engineering · Question 7 of 10

What does this print? (code)

What does this print?

import numpy as np
print(np.log1p(0), round(float(np.expm1(np.log1p(99))), 6))
  1. A.0.0 99.0
  2. B.-inf 99.0
  3. C.1.0 100.0
  4. D.0.0 100.0
Answer & explanation

Correct answer: 0.0 99.0

log1p(0) = log(1) = 0, and expm1 undoes log1p.

Can you get the rest right without peeking?

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

Start the quiz →