Welcome to the quiz! Please read the following rules carefully before you begin:
Total Questions: The quiz consists of 10 questions.
No Time Limit: There is no time limit for completing the quiz. Take your time to think through each question.
Changing Answers: You are allowed to change your answers at any time before submitting the quiz.
Results: You will be able to see your results immediately after completing the quiz. This will include your score and the correct answers.
1.
Which function is used to create a NumPy array with a specified shape filled with random numbers from a uniform distribution?
2.
What is the output of np.array([1, 2, 3]) + np.array([[1], [2], [3]])?
3.
What does the np.concatenate() function do?
4.
Which method will raise a ValueError when called?
5.
What will be the result of np.arange(10).reshape(2, 5)[1, 3]?
6.
Which of the following operations will NOT change the original array 'a'?
7.
What will be the output of np.arange(5)[::2]?
8.
If x = np.array([[1, 2], [3, 4]]), what does np.linalg.inv(x) return?
9.
What does np.meshgrid() return?
10.
Which statement about broadcasting is FALSE?
11.
What will np.unique(np.array([1, 2, 2, 3, 1, 1])) return?
12.
Which function would you use to find the standard deviation of a NumPy array?
13.
What is the primary purpose of np.fromfunction()?
14.
What does np.percentile(a, 50) return?
15.
What will np.ravel(np.array([[1, 2], [3, 4]]), order='F') return?
16.
Which of the following NumPy functions can be used to create a diagonal matrix from an array?
17.
In NumPy, what does the np.asarray() function do?
Leave a Reply