Data Science MCQs · Page 54
1,613 multiple choice questions with answers across 28 topics.
What does the np.transpose() function do in NumPy?
Which function is used to calculate the cumulative sum of elements along a specified axis in NumPy?
What does the np.zeros() function do in NumPy?
What does the np.linspace() function do in NumPy?
Which function is used to calculate the element-wise remainder of division in NumPy?
What does the np.polyfit() function do in NumPy?
Which NumPy function is used to calculate the discrete Fourier transform (DFT)?
What does the np.histogram() function in NumPy do?
Which function is used to calculate the Pearson correlation coefficient in NumPy?
What does the np.vstack() function do in NumPy?
Which NumPy function is used to calculate the eigenvalues and eigenvectors of a square matrix?
What does the np.clip() function do in NumPy?
Which of the following methods is used to calculate the dot product of two arrays in NumPy?
What does the np.random.seed() function in NumPy do?
What does the np.ravel() function in NumPy do?
What is the output of the following NumPy code snippet?
import numpy as np
arr = np.arange(9).reshape(3, 3)
arr_flatten = arr.flatten()
arr_flatten[0] = 99
print(arr)