The ________ function returns its argument with a modified shape, whereas the ________ method modifies the array itself. (a) reshape, resize (b) resize, reshape (c) reshape2, resize (d) all of the mentioned
The correct answer is (a) reshape, resize Easy explanation - If a dimension is given as -1 in a reshaping operation, the other dimensions are automatically calculated.