All quizzes
Free quiz · 22 questions in the bank

NumPy quiz

Test your NumPy knowledge with a free interactive quiz — 22 questions with answers and explanations. No signup needed to play.

Question 1/10Score 0

How do you create an array of zeros with shape (3, 4)?

In this round
  1. How do you create an array of zeros with shape (3, 4)?
  2. How do you compute the mean of all elements in array a?
  3. What does array.shape return?
  4. What is NumPy?
  5. What is the main difference between a NumPy array and a Python list?
  6. How do you perform element-wise addition of two arrays a and b?
  7. What does np.arange(0, 10, 2) produce?
  8. What does an array's dtype represent?
  9. What is a NumPy ndarray?
  10. Why are NumPy operations faster than equivalent Python loops?
Gaps to close?
Read the curated NumPy notes — core concepts, patterns, interview prep.
NumPy notes

More quizzes

.NETAccessibilityAgile MethodologyAlgorithmsAndroidAndroid SDK