1. Home
  2. Data Science
  3. NumPy
  4. Which of the following is not a valid data type in NumPy?

Added 24 Feb 2024

Which of the following is not a valid data type in NumPy?

  1. int32
  2. string Correct answer
  3. float64
  4. complex128

Correct answer

B. string

14 views

MCQSEXAM

Explanation

"string" is not a NumPy dtype name. NumPy's text types are str_ (Unicode, code U) and bytes_ (code S).

int32, float64 and complex128 are all standard numeric dtypes.

For more solved questions like this one, see Data Science MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is B? 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