1. Home
  2. Data Science
  3. NumPy
  4. Which of the following data structures does NumPy…

Added 24 Feb 2024

Which of the following data structures does NumPy primarily work with?

  1. Lists
  2. Sets
  3. Arrays Correct answer
  4. Dictionaries

Correct answer

C. Arrays

13 views

MCQSEXAM

Explanation

NumPy works primarily with arrays — specifically the ndarray, an N-dimensional array whose elements all share one data type and sit in a contiguous block of memory.

That design is what makes it far faster than Python lists, sets or dictionaries for numerical work.

Practise more Data Science MCQs with answers and explanations on MCQsExam.com.

Doubts & discussion

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