Amongst which of the following is / are the numeric types of data types?
A) Boolean
B) Integer
C) Character
D) Floating-point
Answer:
B) Integer and D) Floating-point
Explanation:
- Integer data types are used to store whole numbers (e.g.,
int
,short
,long
, etc.). - Floating-point data types are used to store real numbers with decimal points (e.g.,
float
,double
, etc.). - Boolean data types represent true/false values, not numeric values.
- Character data types are used to store single characters, not numeric values.