FC0-U61 · Question #768
Which of the following best describes when to use an array?
The correct answer is A. The user needs to store multiple values in one object. The best description of when to use an array is when the user needs to store multiple values in one object. An array is a data structure that can store multiple values of the same data type in an ordered sequence. An array can be accessed or modified by using an index or a…
Question
Which of the following best describes when to use an array?
Options
- AThe user needs to store multiple values in one object
- BThe user needs the object to store one value and to be changeable
- CThe user needs one object to store numbers only.
- DThe user needs the object to store one value permanently.
How the community answered
(47 responses)- A94% (44)
- C2% (1)
- D4% (2)
Explanation
The best description of when to use an array is when the user needs to store multiple values in one object. An array is a data structure that can store multiple values of the same data type in an ordered sequence. An array can be accessed or modified by using an index or a position number that indicates the location of each value in the array. An array can be useful when the user needs to store multiple values in one object that can be easily manipulated or iterated over by using loops or functions.
Topics
Community Discussion
No community discussion yet for this question.