0

mainframe Online Quiz - 72

Description: mainframe Online Quiz - 72
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0

5 generations of a GDG already exist. Refer 1st generation in the JCL

  1. GDG (-4)

  2. GDG (-3)

  3. GDG (-5)

  4. GDG (1)


Correct Option: A

The parameter used to specify whether job is to be held until further notice or for syntax checking

  1. HOLD

  2. TYPERUN

  3. TYPRUN

  4. SCAN


Correct Option: C

I have multiple jobs in a member. What happens if I submit it?

  1. Multiple jobs are submitted

  2. Job will abend

  3. Only one step gets executed

  4. Only first job will be submitted


Correct Option: A
  1. Tell the system which data set to access

  2. Request a printer to produce the job output

  3. Indicate where to store new data sets

  4. Initiate a new program


Correct Option: A,B,C

Which of the following are considerations for selecting programs that may be grouped together as a job?

  1. Programs must run sequentially

  2. Programs must be dependent on each other

  3. Programs must access the same databases

  4. Programs must have the same accounting information


Correct Option: A,B,C
  1. //TEST*1

  2. // JOB13

  3. //$ABCD

  4. //STEPSEVEN


Correct Option: C

Which of the following PIC definitions can be used in the declaration of a record of a sequential file that will be used as INPUT

  1. PIC X(9)

  2. PIC S9(4) COMP

  3. PIC Z(4)

  4. PIC 9(4)V99

  5. PIC 9(4).99


Correct Option: A,B,D
  1. IF EOF THEN …

  2. IF EOF IS TRUE THEN ...

  3. IF END-OF-FILE = 'Y' THEN ...

  4. IF END-OF-FILE THEN ...


Correct Option: A,C
  1. EVALUATE A WHEN 0 DISPLAY 'A = 0' WHEN 5 DISPLAY 'A = 5' WHEN OTHER DISPLAY 'A IS NOT 0 NOR 5' END-EVALUATE

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

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

  4. none


Correct Option: C

Take a look at the following COBOL instruction. When will instruction-3 be executed? IF A=B THEN instruction-1 ELSE instruction-2. instruction-3.

  1. never

  2. if A is equal to B

  3. if A is different from B

  4. always


Correct Option: D

AI Explanation

To answer this question, let's analyze the given COBOL instruction:

IF A=B THEN instruction-1 ELSE instruction-2. instruction-3.

The IF statement is a conditional statement in COBOL. It checks whether the condition "A=B" is true or false. If the condition is true, the code block "instruction-1" will be executed. If the condition is false, the code block "instruction-2" will be executed.

After the IF statement, regardless of whether "instruction-1" or "instruction-2" is executed, "instruction-3" will always be executed. This is because "instruction-3" is not a part of the IF-ELSE construct and is placed outside the conditional statement.

Therefore, the correct answer is D) always. "instruction-3" will always be executed, regardless of the outcome of the IF statement.

  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.


Correct Option: A,C
- Hide questions