NumPy MCQ Test: NumPy MCQs - Practice Questions
1. How can you create a diagonal matrix from a NumPy array?
2. How can you perform matrix multiplication in NumPy?
3. What is the purpose of the `np.ma.masked_where` function in NumPy?
4. How do you calculate the element-wise square root of a NumPy array?
5. How can you create a diagonal matrix from a one-dimensional NumPy array?
6. In NumPy, what does the 'np.concatenate()' function do?
7. What does the `np.eye` function do in NumPy?
8. How do you access the element at the 3rd index of a NumPy array named `my_array`?
9. Explain the difference between a Python list and a NumPy array.
10. What is the difference between `np.concatenate` and `np.stack` in NumPy?