Question 1
What is the output of np.clip([-2, -1, 0, 1, 2], -1, 1)?
Question 2
What is the output of np.sum([ [0, 1], [0, 5] ], axis=0)?
Question 3
How can you find the cross product of two numpy a and b?
Question 4
What does the np. random.rand(3, 3) function create?
Question 5
What is the output of np.array([1, 2, 3]) + np.array([4, 5])?
Question 6
How can you find the mean of each row in a 2D numpy array arr?
Question 7
What dose the dtype parameter in np.array() function specify?
Question 8
What is the output of np.arange(3) .reshape(3, 1) + np.arange(3)?
Question 9
How can you find the index of the first occurrence of a value greater than 10 in a numpy array arr?
Question 10
How can you find the index of the maximum value in a specific axis of a numpy array arr?
Question 11
What is the output of np.arange(10)[:, np.newaxis]?
Question 12
What is the output of np.linspace(0, 1, 5, endpoint=False)?
Question 13
What is the output of np.array([1, 2, 3]) - np.array([4, 5, 6])?
Question 14
How can you find the cumulative sum of elements along a specified axis in a numpy array arr?
Question 15
How can you find the square root of each element in a numpy array arr?
Question 16
How can you find the index of the maximum value in each row of a 2D numpy array arr?
Question 17
How can you find the index of the minimum value in a numpy array arr?
Question 18
What is the primary data structure in numpy?
Question 19
How can you find the inverse of square numpy array arr?
Question 20
How can you reshape a 1D array arr with 12 with elements into a 2D array with 4 rows and 3 columns?
Question 21
How can you find the index of the first occurrence of a value greater than a specified threshold in a numpy array arr?
Question 22
What is the output of np.ones((2, 2)) * 2?
Question 23
What is the output of np.full((2, 2), 7)?
Question 24
What is the output of np.intersect1d([1, 2, 3], [2, 3, 4])?
Question 25
How can you find the dot product of two numpy array a and b?
Question 26
How can you find the index of the first occurrence of a value in a numpy array arr?
Question 27
What is the output of np. randint(1, 10, (2, 3))?
Question 28
What does the np. unique() function do?
Question 29
What does the np.([1, 2, 3] function create?
Question 30
How can you create a numpy array from a python list?
Question 31
How can you concatenate two numpy arrays a and b along the rows?
Question 32
What does the np.zeros((3, 3)) function create?
Question 33
What is numpy?
Question 34
What is the output of np.eye(3)?
Question 35
What does the axis parameter in numpy functions specify?
Question 36
How can you find the index of the last occurrence of a value greater than or equal to a specified threshold in a numpy array arr?
Question 37
What is the output of np.logical_and([True, False, True], [True, True, False])?
Question 38
How can you find the index of the last occurrence of a value less then a specified threshold in a numpy array array arr?
Question 39
Which of the following is a correct way to import numpy?
Question 40
What is the output of np.where([True, False, True])?
Question 41
How can you perform element-wise multiplication of two numpy array a and b?
Question 42
How can you calculate the mean of a numpy array arr?
Question 43
What does the np.linspace(0, 10, 5) function create?
Question 44
What is the output of np.arange (5)?
Question 45
How can you find the index of the last occurrence of a value in a numpy array arr?
Question 46
How can you find the element-wise maximum of two numpy arrays a and b?
Question 47
What is the output of np.floor([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7])?
Question 48
How can you find the transpose of a numpy array arr?
Question 49
How can you find the index of the maximum value in a numpy array arr?
Question 50
How can you find the index of the maximum value in a numpy array arr ignoring NaN values?