Which of the following returns an array of ones with the same shape and type as a given array? (a) all_like (b) ones_like (c) one_alike (d) all of the mentioned
Correct choice is (b) ones_like The explanation is: The optional output arguments of the function can be used to help you save memory for large calculations.