Total Questions : 30
Expected Time : 30 Minutes

1. What does the `np.where` function do in NumPy?

2. What does the `np.linspace(0, 1, 5)` function do?

3. What does the `np.eye` function do in NumPy?

4. Explain the concept of masking in NumPy and provide an example.

5. How can you create a NumPy array from a Python list?

6. What is the purpose of the NumPy function 'np.meshgrid()'?

7. In NumPy, what does the 'np.pad()' function do?

8. What is the role of the `np.mean` function in NumPy?

9. What is the primary purpose of NumPy in Python?

10. How can you flatten a NumPy array?

11. What is NumPy used for in Python?

12. How do you access the element at the 3rd index of a NumPy array named `my_array`?

13. What is the purpose of the `np.zeros` function in NumPy?

14. What is the purpose of the NumPy function 'np.ma.masked_where()'?

15. What is the purpose of the `np.unique` function in NumPy?

16. What is the purpose of the NumPy function 'np.argsort()'?

17. Examine the purpose of the `np.histogram` function in NumPy.

18. How do you calculate the element-wise square root of a NumPy array?

19. How can you perform element-wise subtraction of two NumPy arrays?

20. How can you create a diagonal matrix from a NumPy array?

21. Examine the purpose of the `np.interp` function in NumPy.

22. In NumPy, what does the 'np.random.seed()' function do?

23. What is the purpose of the NumPy function 'np.histogram()'?

24. What is NumPy and what is its primary purpose in Python?

25. Explain the concept of NumPy broadcasting and provide an example.

26. What does the `np.clip` function do in NumPy?

27. How do you create a NumPy array with regularly spaced values between two numbers?

28. What is the purpose of the `np.arange` function in NumPy?

29. How can you reshape a NumPy array?

30. What is the result of the expression `np.arange(2, 10, 2)`?