Mainframe COBOL and CICS Programming Quiz

Test your knowledge of mainframe computing including COBOL programming fundamentals, CICS transaction processing, and WebSphere MQ queue management.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

cemt set is used to _____ ?

  1. set the performance parameters
  2. update the status of cics environment
  3. None of the above
  4. Both the above
Question 2 Multiple Choice (Single Answer)

cemt inq is used to _____ ?

  1. a) interrupt the status of cics environment
  2. b) inquire the status of the cics environment
  3. c) Both (a) and (b)
  4. d) Neither (a) nor (b)
Question 3 Multiple Choice (Single Answer)

In an on-line environment, how can you prevent more than one user from accessing the same Transient Data Queue at the same time?

  1. By issuing an EXEC CICS ENQ against the resource.
  2. By issuing an EXEC CICS EQN against the resource.
  3. By issuing an EXEC CICS DEQ against the resource.
  4. By issuing an EXEC CICS DQE against the resource.
  5. By issuing an EXEC CICS TDQ against the resource.
Question 4 Multiple Choice (Single Answer)

What is the command to clear the transaction log?

  1. tjmr tdq trnx-name
  2. trjm tdq trnx-name
  3. tmrj tdq trnx-name
  4. tjrm tdq trnx-name
  5. All the above
Question 5 Multiple Choice (Single Answer)

What CICS command do you need to obtain the user logon-id?

  1. (a) EXEC CICS ASSIGN with the OPERID option
  2. (b) EXEC CICS ASSIGN with the USERID option
  3. (c) EXEC CICS ASSIGN with the GRPID option
  4. (d) Both (a) and (b)
  5. (e) None of the above
Question 6 True/False

An asynchronous queue is a queue which waits for a response

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

What is the CICS command to check if the transaction related to the datagram queue is enabled?

  1. CEMT I TRAN
  2. CECI I TRAN
  3. CEDF I TRAN
  4. CEMT TRAN
Question 8 Multiple Choice (Single Answer)

What is the CICS transaction to view the contents of the Input and reply queues between Mainframes and Java?

  1. S340
  2. S360
  3. S330
  4. S350
Question 9 Multiple Choice (Single Answer)

What should be the trigger depth when there are 2 records in the error queue?

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

Omegamon is used to see how the resources are loaded. The resources include :

  1. CICS
  2. DB2
  3. MVS
  4. All of the above
Question 11 Multiple Choice (Single Answer)

Which queue triggers a transaction when the threshold limit of records in the queue is reached?

  1. Input queue
  2. Output queue
  3. Reply queue
  4. Datagram queue
Question 12 True/False

A backout queue is populated with the erroneous records found in the datagram queue

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

Which GET when performed on a queue deletes the records in the queue and creates a backup?

  1. MQGETS
  2. MQGETD
  3. MQGETM
  4. MQGET
Question 14 True/False

It is possible to check the Transaction Id and the CICS region associated with the queue

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

The hierarchy of the execution of logical operators is

  1. AND OR NOT
  2. NOT AND OR
  3. OR AND NOT
  4. OR NOT AND
Question 16 Multiple Choice (Single Answer)

The minimum number of lines a Cobol program should have to successfully compile and run

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

The maximum number of dimensions that an array can have in COBOL-85 is ?

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

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

  1. Run time error
  2. Compilation error
  3. 10
  4. -10
Question 19 Multiple Choice (Single Answer)

File status when attempted to write to a file that has been opened for input.

  1. 42
  2. 16
  3. 6
  4. 32
Question 20 Multiple Choice (Single Answer)

Which of the following is NOT a valid symbol to use in an IF condition

  1. =
  2. = <
  3. >
  4. = >