Data Science · NumPy What does the np.percentile() function do in NumPy? A Computes the median of elements in an array B Computes the mean of elements in an array C Computes the standard deviation of elements in an array D Computes the nth percentile of elements in an array Correct answer MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to calculate the exponential of all elements in an input array in NumPy? A np.exp() Correct answer B np.log() C np.power() D np.sqrt() MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.linalg.inv() function do in NumPy? A Computes the determinant of a matrix B Computes the inverse of a matrix Correct answer C Computes the eigenvalues of a matrix D Computes the singular value decomposition (SVD) of a matrix MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to compute the cumulative product of elements along a specified axis in NumPy? A np.prod() B np.cumprod() Correct answer C np.mean() D np.median() MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.full() function do in NumPy? A Creates an array filled with a specified value Correct answer B Creates an array filled with zeros C Creates an array filled with ones D Creates an array filled with random values MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to compute the standard deviation of elements along a specified axis in NumPy? A np.std() Correct answer B np.var() C np.mean() D np.median() MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.nan represent in NumPy? A Positive infinity B Negative infinity C Not a Number (NaN) Correct answer D Undefined value MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to compute the cross-product of two arrays in NumPy? A np.dot() B np.matmul() C np.multiply() D np.cross() Correct answer MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.where() function do in NumPy? A Reshapes an array B Computes the inverse of a matrix C Returns the indices of elements that satisfy a condition Correct answer D Computes the dot product of two arrays MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to perform element-wise multiplication of two arrays in NumPy? A np.dot() B np.multiply() Correct answer C np.matmul() D np.cross() MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.concatenate() function do in NumPy? A Joins arrays along a specified axis Correct answer B Computes the dot product of two arrays C Splits an array into multiple sub-arrays D Flattens a multi-dimensional array MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to find the indices of the maximum and minimum elements of an array in NumPy? A np.argmax() and np.argmin() Correct answer B np.max() and np.min() C np.argsort() and np.argpartition() D np.where() and np.nonzero() MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.eye() function do in NumPy? A Creates a random array B Creates an identity matrix Correct answer C Calculates the dot product of two arrays D Reshapes an array MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to find the unique elements of an array in NumPy? A np.unique() Correct answer B np.sort() C np.argmax() D np.median() MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.transpose() function do in NumPy? A Flips the array over its diagonal B Reverses the order of elements in an array C Transposes the array Correct answer D Reshapes the array MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to calculate the cumulative sum of elements along a specified axis in NumPy? A np.sum() B np.cumsum() Correct answer C np.mean() D np.max() MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.zeros() function do in NumPy? A Creates an array filled with zeros Correct answer B Creates an array filled with ones C Creates an identity matrix D Creates a random array MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.linspace() function do in NumPy? A Generates an array of equally spaced numbers over a specified interval Correct answer B Generates an array of random numbers from a uniform distribution C Generates an array of random numbers from a normal distribution D Generates an array of random integers MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to calculate the element-wise remainder of division in NumPy? A np.mod() B np.remainder() Correct answer C np.divide() D np.divmod() MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.polyfit() function do in NumPy? A Fits a polynomial of specified degree to a set of data points Correct answer B Computes the inverse of a polynomial C Computes the roots of a polynomial D Computes the derivatives of a polynomial MCQSEXAM Show answer Read explanation
Data Science · NumPy Which NumPy function is used to calculate the discrete Fourier transform (DFT)? A np.fft.fft() Correct answer B np.fft.ifft() C np.fft.rfft() D np.fft.irfft() MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.histogram() function in NumPy do? A Computes the histogram of a set of data Correct answer B Computes the mean of a set of data C Computes the standard deviation of a set of data D Computes the median of a set of data MCQSEXAM Show answer Read explanation
Data Science · NumPy Which function is used to calculate the Pearson correlation coefficient in NumPy? A np.correlate() B np.corrcoef() Correct answer C np.cov() D np.corr() MCQSEXAM Show answer Read explanation
Data Science · NumPy What does the np.vstack() function do in NumPy? A Stacks arrays vertically Correct answer B Stacks arrays horizontally C Splits an array into multiple sub-arrays vertically D Splits an array into multiple sub-arrays horizontally MCQSEXAM Show answer Read explanation
Data Science · NumPy Which NumPy function is used to calculate the eigenvalues and eigenvectors of a square matrix? A np.linalg.solve() B np.linalg.det() C np.linalg.eig() Correct answer D np.linalg.inv() MCQSEXAM Show answer Read explanation