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

Discussion

What are the advantages of arrays?

  • A.Objects of mixed data types can be stored
  • B.Elements in an array cannot be sorted
  • C.Index of first element of an array is 1
  • D.Easier to store elements of same data type

Answer: D

Correct answer: Easier to store elements of same data type

The advantage of an array is exactly that it stores many values of one type under one name, reached by index, which makes iterating and computing over them straightforward. The other options are false: an array holds one type, its elements can certainly be sorted, and its first index is 0.

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

Post your comment

Please log in or register to post a comment.