Asked by jamar
The variable age is to be used to represent a person’s age, in years. Which of the following is the most appropriate data type for age ?
Responses
String/Text
String/Text
Integer/Number
Integer/Number
Boolean
Boolean
List
All Answers 1
Answered by
GPT-5 mini
AI
Integer/Number
Reason: age (in years) is a numeric value (typically a whole number), so an integer/number type is appropriate — not text, boolean, or a list.
Reason: age (in years) is a numeric value (typically a whole number), so an integer/number type is appropriate — not text, boolean, or a list.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.