Total Questions : 40
Expected Time : 40 Minutes

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

2. In NumPy, what does the 'np.where()' function do?

3. How can you transpose a NumPy array?

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

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

6. Explain the concept of a NumPy structured array.

7. What is the purpose of the `np.random.seed` function in NumPy?

8. Examine the role of universal functions (ufuncs) in NumPy and provide an example.

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

10. What is the purpose of the `np.concatenate` function in NumPy?

11. What does the NumPy function 'np.percentile()' calculate?

12. What does the function `np.arange(5)` do?

13. How can you find the index of the maximum value in a NumPy array?

14. How can you create a diagonal matrix from a one-dimensional NumPy array?

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

16. Examine the purpose of the `np.savez` function in NumPy.

17. How do you perform matrix multiplication in NumPy?

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

19. What does the `np.shape` attribute of a NumPy array represent?

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

21. What is the purpose of the `np.max` function in NumPy?

22. How do you calculate the cumulative sum of elements along a specified axis in a NumPy array?

23. How can you perform element-wise exponentiation in NumPy?

24. How can you concatenate two NumPy arrays vertically?

25. Explain the difference between a Python list and a NumPy array.

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

27. What is NumPy used for in Python?

28. How can you calculate the standard deviation of a NumPy array?

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

30. How do you perform element-wise multiplication of two NumPy arrays `arr1` and `arr2`?

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

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

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

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

35. What is the purpose of the NumPy function 'np.fft.fft()'?

36. What is the purpose of the `np.save` and `np.load` functions in NumPy?

37. What does the NumPy function 'np.unique()' return?

38. How can you calculate the dot product of two NumPy arrays?

39. How do you find the unique elements in a NumPy array?

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