nerdexam
CompTIA

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.

Software Development Concepts

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)
  • A
    89% (33)
  • B
    3% (1)
  • C
    5% (2)
  • D
    3% (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.

AArrayCorrect

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.

BConstant

A constant is a value that cannot be altered by the program during its normal execution, not a collection of values.

CFunction

A function is a block of code designed to perform a particular task, not a data structure itself.

DVariable

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

#Array#Data Structures#Programming Fundamentals

Community Discussion

No community discussion yet for this question.

Full FC0-U71 Practice