Multiple choice

What data type would you use for the following? 156.2

  1. int

  2. float

  3. boolean

  4. char

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The value 156.2 contains a decimal point, which is represented by the float (floating-point) data type.