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
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)- A70% (14)
- B10% (2)
- C15% (3)
- D5% (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
Community Discussion
No community discussion yet for this question.