Part 5 - NumPy MCQ Questions | Data Science MCQ Questions

Опубликовано: 30 Март 2026
на канале: TecTute
602
26

1. Which NumPy method is used to calculate the mean of elements in an array?
B. np.mean()

2. Which function is used to create an array with a specified range of evenly spaced values?
A. np.linspace()

3. What does the np.eye(3) function create?
A. A 3x3 identity matrix.

What does the NumPy function np.arange(5) produce? - Bonus
A. [0, 1, 2, 3, 4]

#python #interviewquestions #pandas #pandastutorial