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

Why are NumPy arrays faster than Python lists for maths?

Why are NumPy arrays faster than Python lists for maths?

  1. A.They use more memory
  2. B.They store one data type compactly and run operations in optimised C code
  3. C.They are always sorted
  4. D.They run on the GPU automatically
Answer & explanation

Correct answer: They store one data type compactly and run operations in optimised C code

Vectorised operations avoid the Python loop overhead.

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 →