COBOL Programming Fundamentals
Quiz covering COBOL programming concepts including data types, file handling, program structure, and special registers for mainframe systems
Questions
Level for Group or elementary items is
- 00-49
- 02-49
- 01-49
- 05-49
- 10-49
What are the different data types available in COBOL?
- Numeric
- Alphabetic
- Alpha-numeric
- Numeric Edited
- 01-03
- ALL
What are all the figurative constants available in COBOL?
- Zero, Zeroes, Zeros
- Quote, Quotes
- Space, Spaces
- High-Value, Highest-Value
- 01-03
- ALL
Mutually Exclusive PIC Clauses
- CR and DB
- $ + _ Z *
- V.
- Only 1
- Only 1 & 2
- 1, 2 & 3
Can JUSTIFIED be used for all the data types?
- YES
- NO
- DEPENDS ON SITUATIONS
- NONE
PERFORM & GOTO are
- Conditional Transfer statements
- Unconditional Transfer statements
- Preconditional Transfer statements
- Postconditional Transfer statements
- Preunconditional Transfer statements
- Postunconditional Transfer statements
Indexes defined for an array cannot be displayed in a COBOL program
- True
- False
For VSAM files, the LABEL RECORDS clause has no effect on the execution of the program.
- True
- False
CONFIGURATION SECTION in COBOL must be present.
- True
- False
The result of SEARCH ALL is predictable only when the table is defined with ASCENDING or DESCENDING KEY and the key should uniquely identify an occurrence of the table entry.
- True
- False
For successful execution of REWRITE stmt, the direct access file must be opened in ____ mode. (Fill in the blank with the right answer from the options)
- INPUT
- OUTPUT
- INPUT-OUTPUT
- OUT-INPUT
Is the following Evaluate clause with no WHEN phrase coded syntactically valid?? (True-YES/False-No) EVALUATE A ALSO B END-EVALUATE.
- True
- False
Which all among the following are the Special Registers?
- PR
- PSW
- PC
- SP
Consider the following piece of code: IF NOT INPUT-EOF IF INPUT-REC-TYPE = '55' PERFORM 2100-PROCESS-WTN ELSE NEXT SENTENCE END-IF ADD +1 TO INPUT-COUNT. PERFORM TEST-1 If the value INPUT-REC-TYPE = '00' then what will happen to the value of INPUT-COUNT?
- 01
- Will not change
- Will change
- 56
The SYNCHRONIZED LEFT / RIGHT clause which specifies alignment of elementary data item on storage boundary can be specified for data items defined with USAGE IS INDEX.
- True
- False
ASCENDING/DESCENDING KEY data item cannot be floating point items.
- True
- False
For successful execution of REWRITE stmt, the direct access file must be opened in _____ mode.
- I
- O
- I-O
- O-I
EJECT is used for creating a new page in the compiler listing.
- True
- False
BLANK WHEN ZERO must not be specified for 66 or 88 level variables or signed fields.
- True
- False