Google News
logo
NumPy - Quiz(MCQ)
The basic ndarray is created using?
A)
numpy.array(object, dtype = None, copy = True, order = None, ndmin = 0)
B)
numpy.array(object, dtype = None, copy = True, subok = False, ndmin = 0)
C)
numpy.array(object, dtype = None, copy = True, order = None, subok = False, ndmin = 0)
D)
numpy_array(object, dtype = None, copy = True, order = None, subok = False, ndmin = 0)

Correct Answer :   numpy.array(object, dtype = None, copy = True, order = None, subok = False, ndmin = 0)


Explanation : It creates an ndarray from any object exposing array interface, or from any method that returns an array : numpy.array(object, dtype = None, copy = True, order = None, subok = False, ndmin = 0).

Advertisement