1. Home
  2. Data Science
  3. NumPy
  4. Which NumPy function is used for element-wise…

Added 28 Jan 2024

Which NumPy function is used for element-wise exponentiation?

  1. np.power()
  2. np.exp() Correct answer
  3. np.square()
  4. np.log()

Correct answer

B. np.exp()

15 views

MCQSEXAM

Explanation

np.exp() computes the element-wise exponentiation of an array in NumPy.

Video explanation

Reference

https://www.w3schools.com/python/numpy/default.asp

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More NumPy MCQs

Practise all NumPy MCQs

Similar MCQs