QUIZ Time Starts !

5 minutes

Thanks you have successfully attempted the quiz.


Numpy Quiz

Fill out the form to attempt test.

 

 

 

1 / 25

Question 1 of 25:

1. What is the primary purpose of the NumPy library?

2 / 25

Question 2 of 25:

2. How do you create a NumPy array from a Python list?

3 / 25

Question 3 of 25:

3. Which of the following functions creates an array of zeros?

4 / 25

Question 4 of 25:

4. What does the np.shape() function do?

5 / 25

Question 5 of 25:

5. What will be the result of np.array([1, 2, 3]) + np.array([4, 5, 6])?

6 / 25

Question 6 of 25:

6. How do you generate a random number between 0 and 1 in NumPy?

7 / 25

Question 7 of 25:

7. Which of the following is used to create an identity matrix in NumPy?

8 / 25

Question 8 of 25:

8. Which method is used to get the number of dimensions of a NumPy array?

9 / 25

Question 9 of 25:

9. What is the default data type of a NumPy array?

10 / 25

Question 10 of 25:

10. Which of the following functions is used to concatenate two NumPy arrays along the first axis?

11 / 25

Question 11 of 25:

11. What does the np.reshape() function do?

12 / 25

Question 12 of 25:

12. Which of the following is a valid NumPy array?

13 / 25

Question 13 of 25:

13. What is the function used to create an array of ones?

14 / 25

Question 14 of 25:

14. How can you find the sum of all elements in a NumPy array?

15 / 25

Question 15 of 25:

15. What does np.linspace(0, 10, 5) return?

16 / 25

Question 16 of 25:

16. What does the np.arange() function do?

17 / 25

Question 17 of 25:

17. Which of the following is the correct syntax to get the transpose of a NumPy array?

18 / 25

Question 18 of 25:

18. What will np.array([1, 2, 3]) * 2 output?

19 / 25

Question 19 of 25:

19. Which of the following methods can be used to stack arrays horizontally?

20 / 25

Question 20 of 25:

20. What is the result of np.array([1, 2, 3]) + 5?

21 / 25

Question 21 of 25:

21. What function in NumPy allows you to get the minimum value of an array?

22 / 25

Question 22 of 25:

22. How can you create an array of random integers between 0 and 10 with 5 elements?

23 / 25

Question 23 of 25:

23. How would you select all elements of a 2D NumPy array in the second column?

24 / 25

Question 24 of 25:

24. How do you compute the dot product of two arrays a and b?

25 / 25

Question 25 of 25:

25. How can you get the unique elements of a NumPy array?

Your score is