Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of these best describes an array?

  • A.A data structure that shows a hierarchical behaviour
  • B.Container of objects of similar types
  • C.Arrays are immutable once initialised
  • D.Array is not a data structure

Answer: B

Correct answer: Container of objects of similar types

An array is a container holding a fixed number of values of a single type, laid out in consecutive memory. A hierarchy describes a tree, not an array; an array’s elements can be reassigned after initialisation, so it is not immutable; and it is very much a data structure - the most basic one there is.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.