Which of the following statements about NumPy arrays is correct?
-
A
NumPy arrays must be of the same data type
Correct answer
-
B
NumPy arrays cannot have more than one dimension
-
C
NumPy arrays are only suitable for string data
-
D
NumPy arrays are not resizable
Correct answer
A. NumPy arrays must be of the same data type
15 views
Explanation
NumPy arrays require elements of the same data type for efficient computation.
Video explanation
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ