nerdexam
CompTIA

FC0-U61 · Question #394

Which of the following is the BEST option for a developer to use when storing the months of a year and when performance is a key consideration?

The correct answer is A. Array. An array is a type of data structure that stores multiple values of the same data type in a fixed- size sequence. An array would be the best option for a developer to use when storing the months of a year and when performance is a key consideration because an array allows fast ac

Software Development

Question

Which of the following is the BEST option for a developer to use when storing the months of a year and when performance is a key consideration?

Options

  • AArray
  • BVector
  • CList
  • DString

How the community answered

(20 responses)
  • A
    70% (14)
  • B
    10% (2)
  • C
    15% (3)
  • D
    5% (1)

Explanation

An array is a type of data structure that stores multiple values of the same data type in a fixed- size sequence. An array would be the best option for a developer to use when storing the months of a year and when performance is a key consideration because an array allows fast access to any element by using its index number. A vector, a list, and a string are not types of data structures that offer fast access to elements or store multiple values of the same data type in a fixed-size sequence.

Topics

#data structures#arrays#performance optimization#programming

Community Discussion

No community discussion yet for this question.

Full FC0-U61 Practice