Mainframe Programming: COBOL, CICS, and REXX

Test your knowledge of mainframe programming languages and systems including COBOL data structures and file operations, CICS/BMS map development, and REXX programming commands.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

are the two outputs created as a result of generation of a map?

  1. The load module and DBRMLIB
  2. The map load and DBRMLIB
  3. The map copybook and the load module
  4. The MAPLIB and loadlib
Question 2 Multiple Choice (Single Answer)

How do you use extended attributes?

  1. Define EXTATT=YES and the correct terminal type.
  2. Define EXTDATT=YES and the correct terminal type.
  3. Define EXTATRB=YES and the correct terminal type
  4. Define XTDATRB=YES and the correct terminal type.
Question 3 Multiple Choice (Single Answer)

In which table would you make an entry for a BMS map?

  1. RPT
  2. PCT
  3. PPT
  4. LCT
Question 4 Multiple Choice (Single Answer)

What is CICS ?

  1. Customer Interaction Control System
  2. Consumer Information Control System
  3. Customer Information Control System
  4. Consumer Interaction Control System
Question 5 Multiple Choice (Single Answer)

What is the difference between physical map and symbolic map?

  1. The physical map is the load module and the symbolic map is the data structure
  2. The physical map is the data structure and the symbolic map is the load module
  3. Physical map is mapped with addresses and the symbolic map is the logical one.
  4. There is no difference
Question 6 Multiple Choice (Single Answer)

What are the 3 working storage fields used for every field on the map?

  1. Length, attribute and output field
  2. Length, no.of fields and output field
  3. Length, attribute and input/output field
  4. Length, attribute and input field
Question 7 True/False

X(100) field can be redefined with a field of X(200)?(True/False)

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

How is sign stored in Packed Decimal fields?

  1. Sign is stored as a hex value in the last nibble of the storage.
  2. Sign is over punched with the numeric value stored in the last nibble.
  3. Sign is stored in the most significant bit.
  4. None of the above
Question 9 Multiple Choice (Single Answer)

How many bytes does a S9(7) COMP-3 field occupy ?

  1. 7 bytes
  2. 6 bytes
  3. 5 bytes
  4. 4 bytes
Question 10 Multiple Choice (Single Answer)

Which of the following is False?

  1. Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array.
  2. An index can only be modified using PERFORM, SEARCH & SET.
  3. Need to have index for a table in order to use SEARCH, SEARCH ALL.
  4. None of the above
Question 11 Multiple Choice (Single Answer)

What does the INITIALIZE verb do?

  1. Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES
  2. Numeric, Numeric edited items set to ZERO.
  3. FILLER , OCCURS DEPENDING ON items left untouched.
  4. All the Above.
Question 12 Multiple Choice (Single Answer)

Level 66 used for?

  1. For Renames Clause
  2. For Condition Names
  3. Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.
  4. All of the above
Question 13 Multiple Choice (Single Answer)
  1. In COBOL , the File format : ORGANISATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0 . Is used to reference which file ?
  1. Fixed Block file
  2. Fixed Unblock file
  3. Variable Block file
  4. Variable Unblock file
Question 14 Multiple Choice (Single Answer)

How many sections are there in Data Division?

  1. Six
  2. Seven
  3. Four
  4. Three
Question 15 Multiple Choice (Single Answer)

Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND

  1. INDEXED
  2. RELATIVE
  3. SEQUENTIAL
  4. All of the above
Question 16 Multiple Choice (Single Answer)

How many subscripts or indexes are allowed for an OCCURS clause?

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

What is the code for the error condition "Empty File"?

  1. 10
  2. 35
  3. 23
  4. 28
Question 18 Multiple Choice (Single Answer)

Which variable will have the value returned by a subroutine once it completes?

  1. RC
  2. RETVAL
  3. RESULT
  4. RV
Question 19 Multiple Choice (Single Answer)

Which TSO command is used to read / write a file?

  1. ALLOC
  2. FREE
  3. SUBMIT
  4. EXECIO
Question 20 Multiple Choice (Multiple Answers)

Which of the following can be used to read and write from a file? Choose all that apply

  1. DATA STACK
  2. QUEUE
  3. COMPOUND VARIABLE
  4. SYMBOLIC VARIABLE