Multiple choice technology mainframe

Consider the following piece of code: IF NOT INPUT-EOF IF INPUT-REC-TYPE = '55' PERFORM 2100-PROCESS-WTN ELSE NEXT SENTENCE END-IF ADD +1 TO INPUT-COUNT. PERFORM TEST-1 If the value INPUT-REC-TYPE = '00' then what will happen to the value of INPUT-COUNT?

  1. 01

  2. Will not change

  3. Will change

  4. 56

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

Using NEXT SENTENCE in COBOL transfers program control to the statement immediately following the next period. Since the period is placed after ADD +1 TO INPUT-COUNT., executing NEXT SENTENCE skips the addition step entirely, leaving INPUT-COUNT unchanged.