Multiple choice technology programming languages

For the given program what is the value of X ? BEGIN %X IS FIXED DP 0 %X = 1.9 PRINT ’%X = ’ WITH %X END

  1. 1

  2. 2

  3. 0

  4. Undetermined

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

The variable %X is defined as FIXED DP 0, meaning it is a fixed-point decimal with 0 decimal places. In Model 204, assigning 1.9 to a DP 0 variable truncates the fractional part, resulting in a value of 1.