Direction: Choose the correct option
Q1.
What is broadcasting in NumPy?
Direction: Choose the correct option
Q2.
What is the result of `np.array([1,2,3]) + 10`?
Direction: Choose the correct option
Q3.
What shapes are compatible for broadcasting `(3,1)` and `(1,4)`?
Direction: Choose the correct option
Q4.
Can you broadcast a shape (2,3) array with a shape (3,) array?
Direction: Choose the correct option
Q5.
Which of the following rules is NOT part of NumPy broadcasting?
Direction: Choose the correct option
Q6.
What is the result of `np.array([[1],[2]]) + np.array([10,20])`?
Direction: Choose the correct option
Q7.
When broadcasting a shape (4,1) array with (3,) array, what is the result shape?
Direction: Choose the correct option
Q8.
What does `a = np.array([1,2,3]); b = np.array([[1],[2],[3]]); a + b` produce?
Direction: Choose the correct option
Q9.
Is broadcasting more efficient than manual looping?
Direction: Choose the correct option
Q10.
Will broadcasting work for shape (5,) and (6,) arrays?
