1. Tree
  2. Graph
  3. Stack
  4. All of the above
  5. None
4 views

1 Answers

Option 3 : Stack

The correct answer is "Stack"

Linear and Nonlinear.

  • Linear structures arrange data in a linear sequence, such as found in an array, list, stack or queue.
  • In nonlinear structures, the data doesn’t form a sequence but instead connects to two or more information items, like in a tree or graph.

Static and Dynamic.

  • As the term implies, static structures consist of fixed, permanent structures and sizes at compile time.
  • The array reserves a set amount of reserve memory set up by the programmer ahead of time.
  • Dynamic structures feature non-fixed memory capacities, shrinking or expanding as required by the program and its execution requirements.
  • Additionally, the location of the associated memory can change.

Homogenous and Non-Homogenous.

  • Homogenous data structures consist of the same data element type, like element collections found in an array.
  • In inhomogeneous structures, the data don’t have to be the same type, such as structures.
4 views

Related Questions