Mainframe JCL and COBOL Quiz

Test your knowledge of mainframe Job Control Language (JCL) and COBOL programming concepts including job statements, DD statements, data division, file handling, and table operations.

20 Questions Published

Questions

Question 1 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 2 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 3 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 4 Multiple Choice (Single Answer)

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

  1. 7
  2. 6
  3. 5
  4. 4
Question 5 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 6 True/False

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

  1. True
  2. False
Question 7 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 8 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 9 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 10 Multiple Choice (Single Answer)

How many sections are there in Data Division?

  1. Six
  2. Seven
  3. Four
  4. Three
Question 11 Multiple Choice (Single Answer)
  1. ------ will Defines libraries used for an entire job or one job step?
  1. Joblib
  2. Proclib
  3. Jcllib
  4. Steplib
Question 12 Multiple Choice (Single Answer)

2.------- Passes control information to the job step via the linkage section in the program?

  1. parm=value
  2. parm=’value’
  3. parm(=value)
  4. parm=(value)
Question 13 Multiple Choice (Single Answer)
  1. --------- Copies a single DD statement or group of DD statements into a job stream?
  1. Copy statement
  2. JCL statement
  3. Include statement
  4. None of the above
Question 14 Multiple Choice (Single Answer)

4.-------- Used for storage, needed only for the duration of the job?

  1. Storage dataset
  2. Temporary dataset
  3. Both
  4. None of the above
Question 15 Multiple Choice (Single Answer)

5.--------- Specifies conditions for executing subsequent job steps. Can be used in the Job statement or the EXEC statement?

  1. JCL checking
  2. Job checking
  3. Conditional checking
  4. EXEC checking
Question 16 Multiple Choice (Single Answer)

6.--------- Field contains only an asterisk?

  1. Operation field
  2. Parameter field
  3. Label field
  4. Comments field
Question 17 Multiple Choice (Single Answer)
  1. Identify the special DD name?
  1. JOBABEND
  2. JCLABEND
  3. SYSABEND
  4. STEPABEND
Question 18 Multiple Choice (Single Answer)

9.--------- Statement is used to mark the end of an in-stream procedure?

  1. EXEC statement
  2. CNTL statement
  3. PROC statement
  4. PEND statement
Question 19 Multiple Choice (Single Answer)
  1. A JCL statement consists of one or more ---- bytes of records?
  1. 60
  2. 80
  3. 100
  4. 120
Question 20 Multiple Choice (Single Answer)

-------- will Defines libraries used for an entire job or one job step?

  1. Joblib
  2. Proclib
  3. JCLlib
  4. Steplib