1. Home
  2. Data Science
  3. NumPy
  4. Which of the following statements about NumPy arrays is…

Added 28 Jan 2024

Which of the following statements about NumPy arrays is correct?

  1. NumPy arrays must be of the same data type Correct answer
  2. NumPy arrays cannot have more than one dimension
  3. NumPy arrays are only suitable for string data
  4. NumPy arrays are not resizable

Correct answer

A. NumPy arrays must be of the same data type

15 views

MCQSEXAM

Explanation

 NumPy arrays require elements of the same data type for efficient computation.

Video explanation

Reference

https://www.w3schools.com/python/numpy/default.asp

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More NumPy MCQs

Practise all NumPy MCQs

Similar MCQs