Question:

Which of the following libraries defines an ndarray in Python ?

Show Hint

Always import numpy with import numpy as np — this is the standard practice.
Updated On: Jul 14, 2025
  • pandas
  • numpy
  • matplotlib
  • scipy
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

In Python, the most fundamental library for numerical computations is numpy.
The core feature of numpy is the ndarray (N-dimensional array) object.
It allows efficient storage and manipulation of large numerical datasets.
pandas uses ndarray internally but does not define it itself.
matplotlib is used for plotting and creating visualizations.
scipy extends numpy with scientific computing tools but relies on numpy's ndarray.
Therefore, numpy is the library that defines ndarray.
Was this answer helpful?
0
0

Top Questions on Programming in Python

View More Questions

Questions Asked in CBSE CLASS XII exam

View More Questions