Python Numpy Quiz (original) (raw)

How can you create a NumPy array from a Python list?

What is the shape of a 1D NumPy array with 5 elements?

How can you access the element at the second row and third column of a 2D NumPy array arr?

Question: What does the np.zeros((3, 4)) function in NumPy do?

How can you perform element-wise multiplication of two NumPy arrays a and b?

What does the np.arange(5, 15, 2) function in NumPy do?

How can you find the mean of a NumPy array arr?

What is the purpose of the np.reshape() function in NumPy?

What is the correct way to calculate the dot product of two NumPy arrays a and b?

There are 25 questions to complete.

Take a part in the ongoing discussion