FC0-U61 · Question #823
Which of the following is best used to store many integers in one container?
The correct answer is A. Array. An array is the best choice for storing many integers in one container. An array is a data structure that can hold a fixed number of elements, which are all of the same data type. It is especially useful for storing a collection of data items at contiguous memory locations…
Question
Which of the following is best used to store many integers in one container?
Options
- AArray
- BFunction
- CVariable
- DConstant
How the community answered
(32 responses)- A88% (28)
- B3% (1)
- C3% (1)
- D6% (2)
Explanation
An array is the best choice for storing many integers in one container. An array is a data structure that can hold a fixed number of elements, which are all of the same data type. It is especially useful for storing a collection of data items at contiguous memory locations, allowing easy access to the elements using an index. Arrays are fundamental in programming for organizing data, allowing for efficient storage and quick access.
Topics
Community Discussion
No community discussion yet for this question.