FC0-U61 · Question #514
Which of the following data types can be used to store a whole number?
The correct answer is C. Integer. This question asks to identify the data type specifically designed to store whole numbers without decimal places.
Question
Which of the following data types can be used to store a whole number?
Options
- ABoolean
- BChar
- CInteger
- DFloat
How the community answered
(31 responses)- A3% (1)
- B6% (2)
- C90% (28)
Why each option
This question asks to identify the data type specifically designed to store whole numbers without decimal places.
A Boolean data type stores only two possible values, typically 'true' or 'false', not numerical values.
A Char data type stores a single character, such as 'A' or '7', not a whole number value.
An integer data type is used to store whole numbers (positive, negative, or zero) without any fractional components. Many programming languages and database systems use 'Integer' to represent such numerical values, optimizing storage and arithmetic operations for non-decimal numbers.
A Float data type is used to store numbers with decimal points, representing real numbers, not specifically whole numbers.
Concept tested: Fundamental data types for whole numbers
Topics
Community Discussion
No community discussion yet for this question.