Total Questions : 20
Expected Time : 20 Minutes

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

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

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

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

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

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

7. What is NumPy used for in Python?

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

9. How can you reshape a NumPy array?

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

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

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

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

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

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

16. How can you concatenate two NumPy arrays vertically?

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

18. How do you concatenate two NumPy arrays vertically?

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

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