COBOL and CICS Programming Fundamentals
Test your knowledge of COBOL programming language features and CICS/BMS transaction processing concepts on mainframe systems.
Questions
TCT stands for –
- Task control table
- Transient control table
- Terminal Control Table
- Transaction control Table
Program Control Program is associated with
- Processing Program Table
- Program Control Table
- Task control table
- File control table
In which Programs, application Will wait for user response instead of serving the other users in that Wait-time ?
- Non-Psuedo Conversational program
- Psuedo Conversational
- Reentrant program
- Quasi-reentrant program
EIB means
- Execution Interface Block
- Error Interface block
- External Interval block
- Exit interface block
When a Task ends ,CICS releases all storage associated with the task ?
- True
- False
Which Transfers control to another program at the same level?
- LINK
- XCTL
- RETURN
- CALL
What are the two types of maps?
- Symbolic map
- Static map
- Physical map
- Dynamic Map
A group of Maps link-edited together is called a
- BMS
- Mapset
- Dataset
- Fieldset
DFHMDI macro is used to
- Defines each Map Set
- Defines each Map
- Defines each Field
- Defines each Data
What is the statement that should be used to stop the execution of COBOL program?
- EXIT
- STOP
- STOP RUN
- None of the above
How many bytes will be used to store data internally for a variable defined as PIC S9(8)V99 Comp-3?
- 10
- 6
- 5
- 11
How many number of bytes will be utilized in the below group variable EMP-RECORD? 01 EMP-RECORD. 02 EMP-DATA1. 03 EMP-NAME PIC X(10). 03 EMP-SAL PIC 9(04). 02 EMP-DATA2 REDEFINES EMP-DATA1. 03 EMP-N1 PIC X(12). 03 EMP-N2 PIC 9(02). 02 EMP-DATA3. 03 EPT1 PIC X(02). 03 DEPT2 PIC X(02).
- 14
- 16
- 18
- 32
EVALUATE WS-INPUT WHEN 1 WHEN 2 DISPLAY ‘OPTION 2’ WHEN 3 DISPLAY ‘OPTION 3’ WHEN OTHER DISPLAY ‘OTHER’ END-EVALUATE What will be displayed when WS-INPUT is 1?
- Nothing will be displayed
- OPTION 2
- OPTION 3
- OTHER
MAIN-PARA. MOVE 10 TO WS-CTR PERFORM PARA-1 WS-CTR TIMES END-PERFORM. PARA-1. MOVE 20 TO WS-CTR. How many times the PARA-1 will be performed when the above code is executed?
- 10
- 20
- 1
- None
Can we redefine an existing X(100) field with a new field of X(200)?
- Yes
- No
- None of the above
- All of the above
What is the maximum length that can be defined for a Numeric field?
- 36
- 18
- 32000
- No Limit
02 A PIC 9(5) VALUE 1234. 02 B PIC ZZ999. In Procedure Divison, MOVE A TO B DISPLAY B. What will be displayed with above display statement?
- 01234
- 00123
- 1234
- 123
SET A TO B. Which one of the following is correct, after execution of above statement?
- Contents of A will be moved to B
- Contents of B will be moved to A
- Statement will give an error
- None
In Working Storage section, 02 A PIC 9 VALUE 2. 02 B REDEFINES A PIC 9. 02 C REDEFINES A PIC 9. Following statement is present in Procedure Division. Compute A = B + C What will be the values in A, B and C after executing the above statement?
- A=4, B=2, C=4
- A=4, B=4, C=4
- A=2, B=2, C=2
- Statement will be errored out.
DISPLAY 'This is COBOL Test' The above statement is coded in a COBOL program. Where will the text be displayed, when this program is executed?
- The media/resource that is assigned to SYSPRINT DD name in JCL
- The media/resource that is assigned to SYSOUT DD name in JCL
- Always prints on Spool Screen
- Always prints on Printer