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.
Questions
FILE-STATUS is used to
- Check the logical abnormal conditions.
- Check the existence of a file while open, close etc.
- Check the execution of the program.
- None of the above.
All the divisions should be start from
- Area A
- Area B
- Area C
- Area D
How many sections are in DATA DIVISION?
- 2
- 3
- 4
- 1
How many different level numbers can be used in COBOL to describe a record?
- 01-1000
- 01-100
- 01-49
- 01-50
What is a VALUE clause?
- It specifies the initial contents of a data item or the values associated with a condition-name.
- It specifies the data item location.
- It describes the picture clause.
- All of the above
Binary format can hold --- binary digits in one byte.
- 2
- 4
- 6
- 8
After successful execution of ADD instruction below. A R1, Data1 Where Data1 DC X’85’ and R1 = 2 What is the result?
- R1 will hold 2 and condition code is set to 0
- R1 will hold 87, Data1 will hold 85 and condition code is set to 2.
- Data1 will hold 87, R1 will hold 2 and condition code is set to 2.
- None of the above
Pick the correct execution statement for BAS instruction.
- 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.
- 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.
- BAS instruction is not there in Assembler
- None of the above
For Instruction BCTR R2 = 8 A1 = ADDR1 BC R2,A1 - - - ADDR1: MVC A,B - - -Which of the following is true?
- ADDR1 will execute until R2 becomes 0.
- ADDR1 will execute until R2 becomes 8.
- ADDR1 will never be executed.
- All of the above.
Which of the following is true for Compare instruction in assembler?
- 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.
- 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.
- The data of the 1st-operand register is compared with the data of the 2nd-operand field. Condition codes are not at all checked.
- None of the above.
How the quotient and remainder get stored in registers after successful execution of Divide instruction of Assembler
- The quotient is placed in the 1st-operand odd-register and the remainder in the even-register.
- The remainder is placed in the 1st-operand odd-register and the quotient in the even-register.
- Both are stored in even register.
- Both are stored in odd register
Which of the following Instructions is used to allocate Memory in Assembler
- DC
- DS
- No Such Instruction Exists
- 1 and 2
Which of the following Instructions is used to define a Constant in Assembler?
- DS
- DC
- No such instruction exists.
- Both 1 and 2
If name of gdg is MYFILE.LIB.TEST then what is the corresponding GDG dataset name that are derived from GDG?
- MYFILE.LIB.TEST.G001
- MYFILE.LIB.TEST.G0001V00
- MYFILE.LIB.TEST1
- WE CANNOT DETERMINE
How many generations are allowed for a GDG?
- 0 to 9
- 0 to 5
- 000 to 999
- 0000 to 9999
GDG will delete\uncatolog older generation automatically?
- True
- False
The advantages of GDG are.....
- It will maintain all generation of data sets
- It will catalog older generation files
- No need of change the JCL every time when we submit.
- None of these
In creation of GDG Index we use LIMIT parameter
- True
- False
NOEMPTY parameter specifies that all exisiting generationsof the GDG are to be uncatloged?
- True
- False
which utility we have to use to delete the generation of a GDG?
- IDCAMS
- IEFBR14
- IEBGENER
- IEBCOPY