What does the dtype attribute of a NumPy array represent?
Correct answer
A. Data type of the array
14 views
A. Data type of the array
14 views
The dtype attribute gives the data type of the array's elements, such as int64, float32 or bool.
The related attributes are ndim (number of dimensions), shape (size along each dimension) and size (total number of elements).
Want more practice? Try the full set of Data Science MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.