Total Questions : 50
Expected Time : 50 Minutes

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

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

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

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

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

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

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

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

9. What is the purpose of the `np.fft.fft` function in NumPy?

10. How do you apply a function element-wise to a NumPy array?

11. What is the purpose of the `np.ma.masked_array` function in NumPy?

12. How do you calculate the inverse of a matrix in NumPy?

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

14. What is broadcasting in NumPy, and how does it work?

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

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

17. How can you transpose a NumPy array?

18. How can you perform element-wise comparison between two NumPy arrays `arr1` and `arr2`?

19. How can you flatten a NumPy array?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

36. In NumPy, what does the 'np.concatenate()' function do?

37. Explain the concept of a NumPy structured array.

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

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

40. What is the purpose of the `np.ma.masked_where` function in NumPy?

41. What does the `np.ravel` function do in NumPy?

42. What is the purpose of the NumPy function 'np.linalg.inv()'?

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

44. What is NumPy used for in Python?

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

46. What does the NumPy function 'np.interp()' do?

47. How do you check the data type of a NumPy array named `my_array`?

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

49. What is the purpose of the `np.median` function in NumPy?

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