Questions Related to mainframe

Multiple choice technology mainframe
  1. output on the terminal: result = 2 3 5

  2. output on the terminal: result = 3 2 1

  3. output on the terminal: result = var_3 var_4 var_5

  4. the program will terminate with an error

Reveal answer Fill a bubble to check yourself
D Correct answer
Multiple choice technology mainframe
  1. Ia loop unconditionally and continues with the next clause after the loop

  2. IF var_1 = var_2 THEN var_1 = var_1 + a loop and EXEC unconditionally, but doesn't return to the caller of the EXEC.

  3. a loop and EXEC unconditionally, returns to the caller of the EXEC and provides a return code.

  4. a loop and EXEC unconditionally, returns to the caller of the EXEC, but doesn't provide a return code.

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology mainframe
  1. This is only true if there are arguments, otherwise the parentheses must be excluded.

  2. This is also true if there are no arguments, but the parentheses can be omitted.

  3. This is also true if there are no arguments, the parentheses must be included.

  4. This is always true, since there are no functions without arguments.

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology mainframe
  1. the external subroutine SUBROUT1 will be executed, bypassing any internal subroutines.

  2. the internal subroutine SUBROUT1 will be executed; external subroutines aren't called.

  3. the internal subroutines will be searched for SUBROUT1; only if there isn't an internal one, the external SUBROUT1 will be executed.

  4. an error will occur; subroutine names must never be coded between quotes.

Reveal answer Fill a bubble to check yourself
A Correct answer