In the basic/top-level classification of data structures, data structures are…

2019

In the basic/top-level classification of data structures, data structures are generally of how many main types?

  1. A.

    1

  2. B.

    2

  3. C.

    3

  4. D.

    4

  5. E.

    5

Attempted by 1586 students.

Show answer & explanation

Correct answer: B

Correct answer: 2.

At the basic level, data structures are classified into two main types:

  • Primitive data structures: basic data types directly supported by a programming language, such as integer, float, character, and boolean.

  • Non-primitive data structures: structures built using primitive types, such as arrays, linked lists, stacks, queues, trees, and graphs.

Linear and non-linear data structures are further subdivisions of non-primitive data structures, not separate top-level categories here.

Explore the full course: Bpsc