When np.where() is used with three arguments, it returns elements from one of two input arrays based on a condition. If the condition is True, it selects elements from the first array; otherwise, it selects elements from the second array.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.