Total Questions : 40
Expected Time : 40 Minutes

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

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

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

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

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

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

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

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

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

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

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

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

13. Explain the concept of a NumPy structured array.

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

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

16. How can you perform element-wise multiplication of two NumPy arrays?

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

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

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

20. How can you perform element-wise addition of two NumPy arrays `arr1` and `arr2`?

21. What does the `np.std` function calculate in NumPy?

22. How can you calculate the mean of a NumPy array along a specific axis?

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

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

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

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

27. What is NumPy used for in Python?

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

29. What is the purpose of the `np.eye` function in NumPy?

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

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

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

33. What does the NumPy function 'np.unravel_index()' do?

34. How can you flatten a NumPy array?

35. How can you perform matrix multiplication in NumPy?

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

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

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

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

40. How can you concatenate two NumPy arrays vertically?