FC0-U71 · Question #136
A user is reviewing the following data set: [10, 20, 30, 40, 50] Which of the following is this data set an example of?
The correct answer is A. Array. The data set [10, 20, 30, 40, 50] is an example of an array, which is a collection of items stored at contiguous memory locations.
Question
A user is reviewing the following data set:
[10, 20, 30, 40, 50] Which of the following is this data set an example of?
Options
- AArray
- BConstant
- CFunction
- DVariable
How the community answered
(37 responses)- A89% (33)
- B3% (1)
- C5% (2)
- D3% (1)
Why each option
The data set [10, 20, 30, 40, 50] is an example of an array, which is a collection of items stored at contiguous memory locations.
An array is a data structure consisting of a collection of elements, each identified by at least one array index or key, and typically stored in contiguous memory locations. The given data set represents an ordered list of numerical values, which is characteristic of an array.
A constant is a value that cannot be altered by the program during its normal execution, not a collection of values.
A function is a block of code designed to perform a particular task, not a data structure itself.
A variable is a named storage location that holds a single value that can change during program execution, not a collection of multiple values.
Concept tested: Basic data structures (Array)
Source: https://learn.microsoft.com/en-us/dotnet/standard/collections/arrays
Topics
Community Discussion
No community discussion yet for this question.