Mainframe Programming: GDG, Assembler & COBOL

Test your knowledge of mainframe computing topics including Generation Data Groups (GDG), Assembler programming instructions, and COBOL language fundamentals including DATA DIVISION structure, level numbers, and file handling.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

FILE-STATUS is used to

  1. Check the logical abnormal conditions.
  2. Check the existence of a file while open, close etc.
  3. Check the execution of the program.
  4. None of the above.
Question 2 Multiple Choice (Single Answer)

All the divisions should be start from

  1. Area A
  2. Area B
  3. Area C
  4. Area D
Question 3 Multiple Choice (Single Answer)

How many sections are in DATA DIVISION?

  1. 2
  2. 3
  3. 4
  4. 1
Question 4 Multiple Choice (Single Answer)

How many different level numbers can be used in COBOL to describe a record?

  1. 01-1000
  2. 01-100
  3. 01-49
  4. 01-50
Question 5 Multiple Choice (Single Answer)

What is a VALUE clause?

  1. It specifies the initial contents of a data item or the values associated with a condition-name.
  2. It specifies the data item location.
  3. It describes the picture clause.
  4. All of the above
Question 6 Multiple Choice (Single Answer)

Binary format can hold --- binary digits in one byte.

  1. 2
  2. 4
  3. 6
  4. 8
Question 7 Multiple Choice (Single Answer)

After successful execution of ADD instruction below. A R1, Data1 Where Data1 DC X’85’ and R1 = 2 What is the result?

  1. R1 will hold 2 and condition code is set to 0
  2. R1 will hold 87, Data1 will hold 85 and condition code is set to 2.
  3. Data1 will hold 87, R1 will hold 2 and condition code is set to 2.
  4. None of the above
Question 8 Multiple Choice (Single Answer)

Pick the correct execution statement for BAS instruction.

  1. The address of the next sequential instruction (NSI) is placed in the 1st-operand register. Subsequently a branch is made to the location given by a 2nd-operand label.
  2. The address of the next sequential instruction (NSI) is placed in the 2nd-operand register. Subsequently a branch is made to the location given by a 1st-operand label.
  3. BAS instruction is not there in Assembler
  4. None of the above
Question 9 Multiple Choice (Single Answer)

For Instruction BCTR R2 = 8 A1 = ADDR1 BC R2,A1 - - - ADDR1: MVC A,B - - -Which of the following is true?

  1. ADDR1 will execute until R2 becomes 0.
  2. ADDR1 will execute until R2 becomes 8.
  3. ADDR1 will never be executed.
  4. All of the above.
Question 10 Multiple Choice (Single Answer)

Which of the following is true for Compare instruction in assembler?

  1. The data of the 1st-operand register is compared with the data of the 2nd-operand field. The result of the comparison is indicated in the condition code which may be checked further.
  2. The data of the 1st-operand register is compared with the data of the 2nd-operand field. The result of the comparison is indicated in the condition code which will not be checked further.
  3. The data of the 1st-operand register is compared with the data of the 2nd-operand field. Condition codes are not at all checked.
  4. None of the above.
Question 11 Multiple Choice (Single Answer)

How the quotient and remainder get stored in registers after successful execution of Divide instruction of Assembler

  1. The quotient is placed in the 1st-operand odd-register and the remainder in the even-register.
  2. The remainder is placed in the 1st-operand odd-register and the quotient in the even-register.
  3. Both are stored in even register.
  4. Both are stored in odd register
Question 12 Multiple Choice (Single Answer)

Which of the following Instructions is used to allocate Memory in Assembler

  1. DC
  2. DS
  3. No Such Instruction Exists
  4. 1 and 2
Question 13 Multiple Choice (Single Answer)

Which of the following Instructions is used to define a Constant in Assembler?

  1. DS
  2. DC
  3. No such instruction exists.
  4. Both 1 and 2
Question 14 Multiple Choice (Single Answer)

If name of gdg is MYFILE.LIB.TEST then what is the corresponding GDG dataset name that are derived from GDG?

  1. MYFILE.LIB.TEST.G001
  2. MYFILE.LIB.TEST.G0001V00
  3. MYFILE.LIB.TEST1
  4. WE CANNOT DETERMINE
Question 15 Multiple Choice (Single Answer)

How many generations are allowed for a GDG?

  1. 0 to 9
  2. 0 to 5
  3. 000 to 999
  4. 0000 to 9999
Question 16 True/False

GDG will delete\uncatolog older generation automatically?

  1. True
  2. False
Question 17 Multiple Choice (Multiple Answers)

The advantages of GDG are.....

  1. It will maintain all generation of data sets
  2. It will catalog older generation files
  3. No need of change the JCL every time when we submit.
  4. None of these
Question 18 True/False

In creation of GDG Index we use LIMIT parameter

  1. True
  2. False
Question 19 True/False

NOEMPTY parameter specifies that all exisiting generationsof the GDG are to be uncatloged?

  1. True
  2. False
Question 20 Multiple Choice (Single Answer)

which utility we have to use to delete the generation of a GDG?

  1. IDCAMS
  2. IEFBR14
  3. IEBGENER
  4. IEBCOPY