CompTIA Data+ (DA0-001) — Question 80

Which of the following is an example of a discrete variable?

Answer options

Correct answer: D

Explanation

The number of people in an office is a discrete variable because it can only take on specific, distinct values (e.g., 1 person, 2 people). In contrast, the temperature of a hot tub, the height of a horse, and the time to complete a task are continuous variables, as they can take on any value within a range.