🎙 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 3 of 10

What does arr[arr 50] do?

What does arr[arr > 50] do?

  1. A.Sets every element above 50 to True
  2. B.Returns only the elements greater than 50
  3. C.Deletes elements above 50
  4. D.Counts elements above 50
Answer & explanation

Correct answer: Returns only the elements greater than 50

The boolean mask selects matching elements.

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 →