An array is a __________.

2025

An array is a __________.

  1. A.

    Primitive data type

  2. B.

    Non-primitive data type

  3. C.

    Abstract data type

  4. D.

    None of the above

Attempted by 1143 students.

Show answer & explanation

Correct answer: B

In computer science, primitive data types are the simplest forms of data with no additional methods or properties (like int, char, float etc.). An array, however, is a non-primitive (or composite) data type as it can store multiple values of the same primitive type in contiguous memory locations.

Explore the full course: Cocubes Preparation