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

Quiz: NumPy · Question 1 of 10

What does marks.argmax() return?

What does marks.argmax() return?

  1. A.The largest value
  2. B.The position (index) of the largest value
  3. C.The average
  4. D.The number of elements
Answer & explanation

Correct answer: The position (index) of the largest value

max() returns the value; argmax() returns where it is.

Can you get the rest right without peeking?

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

Start the quiz →