Skills101
← All practice quizzes

Quiz: NumPy

5 questionsNo time limitPass: 60%+10 XP on first pass

Why NumPy is fast, creating arrays, shapes and dtypes, vectorised maths without loops, broadcasting, indexing and slicing 2-D arrays, boolean masks, and the aggregations every data scientist uses daily.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What does marks.argmax() return?

  2. Question 2

    For a 3×3 array of student scores (rows = students), which gives each student's average?

  3. Question 3

    What does arr[arr > 50] do?

  4. Question 4

    Why are NumPy arrays faster than Python lists for maths?

  5. Question 5

    What is broadcasting?