Skip to content

Python for Data Science Practice Exam

Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.

📝 50 questions · ⏱ 60 minutes · 🎯 Pass mark 70% · 🆓 Free, no signup

Exam details

  • 50 questions drawn from 100 cards
  • Countdown timer — auto-submits when time runs out
  • Pass mark 70% (real certification threshold)
  • Full review of wrong answers at the end
  • No signup required — save your score with a free account

Sample Questions

5 shown

What function creates a NumPy array from a Python list?

Show ▼

np.array([1, 2, 3]) converts a Python list into a NumPy ndarray.

How do you create a 1D array of zeros with 5 elements in NumPy?

Show ▼

np.zeros(5) returns array([0., 0., 0., 0., 0.]).

How do you create a 3x3 identity matrix in NumPy?

Show ▼

np.eye(3) returns a 3×3 array with ones on the diagonal and zeros elsewhere.

What does np.arange(0, 10, 2) return?

Show ▼

It returns array([0, 2, 4, 6, 8]) — values from 0 up to (not including) 10 with step 2.

How do you generate 5 evenly spaced values between 0 and 1 in NumPy?

Show ▼

np.linspace(0, 1, 5) returns array([0., 0.25, 0.5, 0.75, 1.]).

🎯 Take the Python for Data Science Practice Exam