exam questions

Exam FC0-U61 All Questions

View all questions & answers for the FC0-U61 exam

Exam FC0-U61 topic 1 question 223 discussion

Actual exam question from CompTIA's FC0-U61
Question #: 223
Topic #: 1
[All FC0-U61 Questions]

A programmer is constructing an algorithm that predicts personality traits based on users’ selection of their favorite ice cream flavors. Which of the following programming concepts should be used to represent the flavor of ice cream?

  • A. Vectors
  • B. Arrays
  • C. Variables
  • D. Constants
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
fcc_class
2 months ago
Selected Answer: C
C. Variables Explanation: A variable is a fundamental programming concept used to store and represent changing values in an algorithm. Since a user’s favorite ice cream flavor can differ from person to person and might change over time, it should be stored in a variable for processing in the personality prediction algorithm. Why not the other options? A. Vectors – Typically used in advanced mathematical or machine learning computations but not necessary just for storing a single value like an ice cream flavor. B. Arrays – Used to store multiple values, such as a list of different ice cream flavors, but the question refers to a single selection per user, making a variable more appropriate. D. Constants – Constants store values that do not change, but a user’s favorite flavor might change over time, so a variable is more suitable. Since the flavor choice can vary per user, variables are the best way to represent it.
upvoted 1 times
...
ROCompTIA
9 months, 2 weeks ago
Selected Answer: B
Arrays (B): Arrays are used to store multiple values in a single variable. If the programmer wanted to store multiple favorite flavors for a user, an array might be appropriate, but for a single flavor, a simple variable is more suitable. It's ice cream flavors, not flavor. Given answer is correct answer
upvoted 1 times
...
lexuslfa
1 year, 1 month ago
Selected Answer: C
It is a variable since it can change
upvoted 2 times
...
CircaG
1 year, 4 months ago
C. Variable. Chat GPT: In the context of predicting personality traits based on users' selection of their favorite ice cream flavors, the programming concept that should be used to represent the flavor of ice cream is a variable. Variables are used to store and represent data, and in this case, each user's favorite ice cream flavor would likely be stored in a variable.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago