Multiple choice technology programming languages

"77 WS-AMT PIC ZZZ999. ADD 100 TO WS-AMT WILL RESULT IN?"

  1. COMPILATION ERROR

  2. SOC7

  3. WS-AMT+100

  4. SOC4

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

The variable WS-AMT is defined with an editing picture string (PIC ZZZ999). In COBOL, numeric edited fields are used for display formatting and cannot be used as target receiving fields in arithmetic statements like ADD. Doing so results in a compilation error.