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?
Understand the Problem
The question is asking to determine the most appropriate data type for a variable 'age' that represents a person's age in years, where multiple options are provided.
Answer
number
The final answer is number
Answer for screen readers
The final answer is number
More Information
A number data type is suitable for representing age because it allows for mathematical operations and comparisons.
Tips
Avoid using a string or list for numerical data; Boolean is inappropriate as it only represents true/false.
Sources
- Variables and Assignments | Quizizz - quizizz.com
AI-generated content may contain errors. Please verify critical information