CompTIA
FC0-U61 · Question #409
FC0-U61 Question #409: Real Exam Question with Answer & Explanation
The correct answer is A: Storing a collection of data. A vector, in programming, is a type of array that is one dimensional. Vectors are a logical element in programming languages that are used for storing data. Vectors are similar to arrays but their actual implementation and operation differs.
Question
Which of the following BEST describes the purpose of a vector in programming?
Options
- AStoring a collection of data
- BRepeating a similar operation
- CCapturing user input
- DPerforming mathematical calculations
Explanation
A vector, in programming, is a type of array that is one dimensional. Vectors are a logical element in programming languages that are used for storing data. Vectors are similar to arrays but their actual implementation and operation differs.
Community Discussion
No community discussion yet for this question.