Mainframe COBOL, JCL, and ISPF Quiz

Test your knowledge of mainframe technologies including COBOL programming, Job Control Language (JCL), ISPF editing, and TSO operations.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

COMM is

  1. DOUBLE WORD BINARY
  2. FULL WORD BINARY
  3. FULL WORD
  4. HALF WORD BINARY
Question 2 Multiple Choice (Single Answer)

IS NUMERIC can be used with

  1. Alphanumeric items, signed numeric, packed decimal items, unsigned numeric & packed decimal items
  2. Signed numeric, packed decimal items, unsigned numeric & packed decimal items
  3. Signed numeric, packed decimal items & unsigned numeric
  4. Signed numeric & Packed decimal items
Question 3 Multiple Choice (Single Answer)

COND=EVEN?

  1. Means execute this step even if any of the previous steps, terminated abnormally.
  2. Means don’t execute this step if any of the previous steps, terminated abnormally.
  3. Means execute only even steps.
  4. Means dont execute only even steps.
Question 4 Multiple Choice (Single Answer)

How does sign stored in Zoned Decimal?

  1. Sign is stored as a hex value in the last nibble (4 bits ) of the storage.
  2. Sign is stored as a hex value in the first nibble (4 bits ) of the storage.
  3. Sign is over punched with the numeric value stored in the last byte.
  4. Sign is over punched with the numeric value stored in the first byte.
Question 5 Multiple Choice (Single Answer)

NEXT SENTENCE & CONTINUE

  1. Gives control to the verb following the next period & gives control to the next verb after the explicit scope terminator.
  2. Gives control to the next verb after the explicit scope terminator & gives control to the verb following the next period.
  3. Both are same.
  4. Control goes to the next paragraph & control goes to next section
Question 6 Multiple Choice (Single Answer)

Inorder to access a DS which had a DISP KEEP I should supply

  1. The DS name and DISP
  2. Volume Serial Number
  3. SPACE & LRECL
  4. LRECL
Question 7 Multiple Choice (Single Answer)

01 WS-N PIC 9(2) VALUE ZERO.A-PARA MOVE 5 TO WS-N. PERFORM B-PARA WS-N TIMES. B-PARA. MOVE 10 TP WS-N. How many times will B-PARA be executed ?

  1. Bad coding. The loop will not be executed.
  2. 5 times.
  3. 10 times.
  4. 15 times.
Question 8 Multiple Choice (Single Answer)

What has to be done to force program to execute above 16 Meg line?

  1. Link option is AMODE=24 and RMODE=ANY. Compile option should have SIZE(MAX).
  2. Link option is AMODE=31 and RMODE=31. Compile option should not have SIZE(MAX).
  3. Link option is AMODE=24 and RMODE=24. Compile option should not have SIZE(MAX).
  4. Link option is AMODE=31 and RMODE=ANY. Compile option should not have SIZE(MAX).
Question 9 Multiple Choice (Single Answer)

How do u skip the particular step in a proc/JCL?

  1. COND codes
  2. IF statement
  3. both
  4. Non of These
Question 10 True/False

U can call an OS VS COBOL pgm from a VS COBOL II pgm in CICS environment.

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

how many times Para1 will execute in the below code? 01 ws-var pc 9(1) perform para1 varying ws-var from 1 by 1 until ws-var>10

  1. 10
  2. 11
  3. 9
  4. infinite Loop
Question 12 True/False

Can justified be used for all the data types?

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

Minimum number of members in one directory block?

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

Consider that you are editing a file/program and you want to know the changes you have done since the last SAVE command. How to find that?

  1. Give CUT SESSION on the command line
  2. Give COMPARE SESSION on the command line
  3. Give LOOK SESSION on the command line
  4. Give FIND SESSION on the command line
Question 15 Multiple Choice (Single Answer)

Suppose you are in a ISPF Screen and want to know in which TSO Region( Development, Production, or other TSO regions) you are now . which command u will issue

  1. PRODSAR
  2. DEVSAR
  3. SAREA
  4. WHR
Question 16 True/False

While trying to open any member in a PDS, we sometimes come across "member in use" message. In that situation, if you want to know who is using the member currently, press F1 twice.

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

I want to know what are the last 25 COMMAND LINE commands that I have issued from ISPF panel.Which command does that .?

  1. RETP
  2. REAPET
  3. REAP
  4. RET
Question 18 Multiple Choice (Single Answer)

When I issue CUT , I know that the CUT content are placed in a clipboard. And when I issue PASTE, the clipboard content are pasted. But how i can view/edit the clipboard ?

  1. Using CLIP DISPLAY.
  2. Using CLIPBOARD DISPLAY.
  3. Using COPY DISPLAY.
  4. Using CUT DISPLAY.
Question 19 True/False

Is it possible to execute a program from any library using the referback?

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

How does the system differentiates between JCL comment statements (i.e., //* statements) and JES3 Statements (which also start with //* ) ?

  1. If the 4th column contains JES3 keyword, the line is considered to be JES3 statement, else it is
  2. System can't differentiates
  3. If the 3rd column contains JES3 keyword, the line is considered to be JES3 statement, else it is
  4. If the 1st column contains JES3 keyword, the line is considered to be JES3 statement, else it is