in Technology by

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

1 Answer

0 votes
by

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.

Related questions

0 votes
    Which of the following returns an array of ones with the same shape and type as a given array? (a) ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    The ________ function returns its argument with a modified shape, whereas the ________ method modifies the array itself. (a) ... (c) reshape2, resize (d) all of the mentioned...
asked Oct 7, 2021 in Technology by JackTerrance
0 votes
    The ________ function returns its argument with a modified shape, whereas the ________ method modifies the array ... answers pdf, Data Science interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of the following function of Array object removes the last element from an array and returns that element? push() delete() pop() link()...
asked Dec 24, 2020 in Technology by JackTerrance
0 votes
    Write a Numpy program to create an array to 10 zeros,10 ones,10 fives. Select the correct answer from above options...
asked Dec 12, 2021 in Education by JackTerrance
0 votes
    What are the steps to use shape for a 1D array, 2D array and 3D/ND array respectively in NumPy?...
asked Apr 24, 2021 in Technology by JackTerrance
0 votes
    I have an array of the shape (100000, 1) with each element in an array of type positive integer and not ... help would be appreciated. Select the correct answer from above options...
asked Jan 8, 2022 in Education by JackTerrance
0 votes
    Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 31, 2021 in Education by JackTerrance
0 votes
    Using the WCF web programming model one can specify an operation contract like so: [OperationContract] [WebGet ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    A current waveform is of the shape of a right angled triangle with period of t = 1 sec. Given a resistance R ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
0 votes
    Which of the following method creates a new array object that looks at the same data? (a) view (b) copy (c) paste (d) all of the mentioned...
asked Oct 7, 2021 in Technology by JackTerrance
0 votes
    Which of the following method creates a new array object that looks at the same data? (a) view (b) ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of the following method is used to returns the index of first occurrence of the given substring? (a)int ... indexOf(String str) Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    What is true about array 1. Can have combination of data types in a single array list 2. Must have same data types for array list...
asked Feb 24, 2021 in Technology by JackTerrance
...