Multiple choice technology programming languages

01 ws-var1 pic 9(9).99. 01 ws-var2 pic 9(9)v99 value 10. move zeros to ws-var1. compute ws-var1 = ws-var1 + ws-var2. What would be the value of ws-var1.

  1. 10

  2. 10.00

  3. 10.0

  4. None of the above

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

After MOVE ZERES, ws-var1 = 000000000.00 (9 zeros before decimal, 2 after). Adding ws-var2 (10.00) gives 000000010.00, but the PIC clause is invalid - it has both an implied decimal (V) and an explicit decimal point (.). This malformed PIC causes undefined behavior or an error, so 'None of the above' is correct since the PIC definition itself is problematic.