Practice Question and Answer
8Q: What divisions, sections and paragraphs are mandatory for a COBOL program? 1249 05b5cc7d9e4d2b41977751558
5b5cc7d9e4d2b41977751558- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
IDENTIFICATION DIVISION and PROGRAM-ID paragraph are mandatory for a compilation error free COBOL program.
Q: How is sign stored in a COMP field? 1816 05b5cc7d9e4d2b41977751557
5b5cc7d9e4d2b41977751557- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
It is stored in the most significant bit. Bit is ON if -ve, OFF if +ve.
Q: What are the differences between COBOL and COBOL II? 1811 05b5cc7d9e4d2b41977751556
5b5cc7d9e4d2b41977751556- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
There are some differences: COBOL II supports structured programming by using in line Performs and explicit scope terminators. It introduces new features (EVALUATE, SET. TO TRUE, CALL BY CONTEXT, etc). It permits programs to be loaded and addressed above the 16-megabyte line . It does not support many old features (READY TRACE, REPORT-WRITER, ISAM, etc.). It offers enhanced CICS support.
Q: What guidelines should be followed to write a structured COBOL program ? 1216 05b5cc7d9e4d2b41977751555
5b5cc7d9e4d2b41977751555- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
Following guidelines to be following while writing Cobol program: - Use ? EVALUATE ? statement for constructing cases. - Use scope terminators for nesting. - Use in-line Perform statement for writing ?do? constructions. - Use Test Before and Test After in the Perform statement while writing Do-While statements.
Q: What is autostatus in IDMS? 1064 05b5cc7d9e4d2b41977751554
5b5cc7d9e4d2b41977751554- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
Autostatus is a protocol mode which causes the expansion of each DML statement to include a 'perform IDMS-Status' statement.
Q: How does IDMS communicate with CICS? 1586 05b5cc7d9e4d2b41977751553
5b5cc7d9e4d2b41977751553- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
They communicate via service MVS request calls.
Q: What is an OOK-Rec in IDMS? 1673 05b5cc7d9e4d2b41977751552
5b5cc7d9e4d2b41977751552- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
An OOK-Rec is a one of a kind record set, used to get to another record set.
Q: Is there a application program coding difference between local and central version mode in IDMS? 1037 05b5cc7d9e4d2b41977751551
5b5cc7d9e4d2b41977751551- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
No. The mode is specified via the SYSCTL DD card in the JCL.

