DA0-001 · Question #84
Which of the following is an example of a discrete data type?
The correct answer is B. 5 kids. A discrete data type represents values that are countable and can only take on specific, distinct values, often whole numbers, within a given range.
Question
Which of the following is an example of a discrete data type?
Options
- A8in (20cm)
- B5 kids
- C2.5mi (4km)
- D10.7lbs (4.9kg)
How the community answered
(35 responses)- A6% (2)
- B91% (32)
- D3% (1)
Why each option
A discrete data type represents values that are countable and can only take on specific, distinct values, often whole numbers, within a given range.
'8in (20cm)' represents a measurement of length, which is a continuous data type as it can take on any value within a range.
'5 kids' is an example of a discrete data type because the number of children can only be expressed in whole, countable integers and cannot take on fractional values.
'2.5mi (4km)' represents a measurement of distance, which is a continuous data type as it can take on any value within a range.
'10.7lbs (4.9kg)' represents a measurement of weight, which is a continuous data type as it can take on any value within a range.
Concept tested: Discrete vs. continuous data types
Topics
Community Discussion
No community discussion yet for this question.