5 minutes
Thanks you have successfully attempted the quiz.
Numpy Quiz
Fill out the form to attempt test.
1 / 25
1. What is the primary purpose of the NumPy library?
2 / 25
2. How do you create a NumPy array from a Python list?
3 / 25
3. Which of the following functions creates an array of zeros?
4 / 25
4. What does the np.shape() function do?
5 / 25
5. What will be the result of np.array([1, 2, 3]) + np.array([4, 5, 6])?
6 / 25
6. How do you generate a random number between 0 and 1 in NumPy?
7 / 25
7. Which of the following is used to create an identity matrix in NumPy?
8 / 25
8. Which method is used to get the number of dimensions of a NumPy array?
9 / 25
9. What is the default data type of a NumPy array?
10 / 25
10. Which of the following functions is used to concatenate two NumPy arrays along the first axis?
11 / 25
11. What does the np.reshape() function do?
12 / 25
12. Which of the following is a valid NumPy array?
13 / 25
13. What is the function used to create an array of ones?
14 / 25
14. How can you find the sum of all elements in a NumPy array?
15 / 25
15. What does np.linspace(0, 10, 5) return?
16 / 25
16. What does the np.arange() function do?
17 / 25
17. Which of the following is the correct syntax to get the transpose of a NumPy array?
18 / 25
18. What will np.array([1, 2, 3]) * 2 output?
19 / 25
19. Which of the following methods can be used to stack arrays horizontally?
20 / 25
20. What is the result of np.array([1, 2, 3]) + 5?
21 / 25
21. What function in NumPy allows you to get the minimum value of an array?
22 / 25
22. How can you create an array of random integers between 0 and 10 with 5 elements?
23 / 25
23. How would you select all elements of a 2D NumPy array in the second column?
24 / 25
24. How do you compute the dot product of two arrays a and b?
25 / 25
25. How can you get the unique elements of a NumPy array?
Your score is
Welcome to DADS Course
Email : info@techpratham.com
Phone (India) : +91-8882178896
WhatsApp : +91-8384036614