Skip to main contentSkip to solution

Which of the following statements are TRUE about Numpy?

(A) Numpy needs less memory than Pandas Series.

(B) Numpy arrays define their own labeled index to access elements.

(C) Numpy arrays are homogeneous arrays.

(D) There is the concept of NaN values in Numpy.

Solution

✅ Correct Option: 3

(A) is true because a Pandas Series stores its data in a NumPy array and also carries an index, so a plain NumPy array uses less memory.

(C) is true because every element of a NumPy array has the same data type (dtype), so it is homogeneous.

NCERT's comparison of Series and NumPy arrays supports both: NumPy arrays need less memory, and they are accessed only by integer position.


(B): NumPy elements are accessed by integer position only. Labeled indexes belong to Pandas Series and DataFrames.

(D): NTA's key treats NaN as a Pandas idea, linked with its missing-data handling.


We believe the answer could be a combination not listed, (A), (C) and (D), since NumPy does have NaN (np.nan\texttt{np.nan}, a float value); NCERT itself creates missing values in its examples with np.NaN. However, NTA's final answer key (after all challenges) says Option 3.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question