Questions Related to mainframe

Multiple choice technology mainframe
  1. EVALUATE A <n> WHEN 0 DISPLAY 'A = 0' <n> WHEN 5 DISPLAY 'A = 5' <n> WHEN OTHER DISPLAY 'A IS NOT 0 NOR 5' <n> END-EVALUATE

  2. EVALUATE TRUE <n> WHEN A=0 DISPLAY 'A = 0' <n> WHEN A=5 DISPLAY 'A = 5' <n> WHEN OTHER DISPLAY 'A IS NOT 0 OR 5' <n> END-EVALUATE

  3. EVALUATE A <n> WHEN A=0 DISPLAY 'A = 0' <n> WHEN A=5 DISPLAY 'A = 5' <n> WHEN OTHER DISPLAY 'A IS NOT 0 NOR 5' <n> END-EVALUATE

  4. none

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology mainframe
  1. the FD entry in the DATA DIVISION gives a description of the structure of a file.

  2. the first record is automatically read on opening a file.

  3. if a file is opened in I-O mode you can use this file for reading as well as for writing.

  4. you can not read indexed files from a COBOL program.

  5. in the SELECT clause you have to give a complete description of the exact location of the file.

Reveal answer Fill a bubble to check yourself
A,C Correct answer