COBOL and Mainframe Database Programming
Test your knowledge of COBOL programming language and mainframe database technologies including ADABAS, VSAM, and QSAM file handling.
Questions
Data in IDENTIFICATION-TABLE IDENT-ID IDENT-NAME IDENT-AGE ----------------------------- 1234 AAAA 23 1234 ABCD 22 2345 ACDB 13 3456 ADSB 25 4567 DADS 15 5678 EDSC 20 FIND IDENTIFICATION-TABLE WITH IDENT-ID EQ '1234' DISPLAY IDENT-ID IDENT-NAME IDENT-AGE LOOP How many records will be displayed?
- 0
- 1
- 2
- 3
Data in IDENTIFICATION-TABLE IDENT-ID IDENT-NAME IDENT-AGE ----------------------------- 1234 AAAA 23 1234 ABCD 22 2345 ACDB 13 3456 ADSB 25 4567 DADS 15 5678 EDSC 20 FIND IDENTIFICATION-TABLE WITH SUPER-ID-NAME-AGE EQ '1234' DISPLAY IDENT-ID IDENT-NAME IDENT-AGE LOOP How many records will be displayed?
- 0
- 1
- 2
- 3
If a find statement returns with multiple records for a given descriptor value, in which order the records will be displayed in the output?
- ISN
- RABN
- Physically stored order
- Random
Indicate which of the following statements describe Bachman diagram
- Required for effective use of DML statements
- Used to help define the schema
- Shows area relationships
- Identifies the set name
What are the types of VSAM files that COBOL can handle?
- KSDS, ESDS
- ESDS, RRDS
- KSDS, ESDS, RRDS
- KSDS, RRDS
The file access methods in COBOL are: INPUT and OUTPUT only.
- True
- False
RECORDING MODE FOR QSAM files can be:
- F, V
- U, S
- F, R
- F, V, U, R
Which COBOL division(s) is(are) mandatory in a COBOL program?
- Identification Division
- Environment Division
- Data Division
- Procedure Division
Internal storage used to store S9(n) COMP-3 variable is ____ bytes.
- n+1
- (n+1)/2
- (n+1)/3
- n/2+1
Indexes can be used as subscripts while subscripts cannot be used as indexes.
- True
- False
The collating sequence can be controlled in VALUE...THRU clause either in ascending or descending order.
- True
- False
Computational fields defined with COMP picture clause cannot be reference modified.
- True
- False
BLANK WHEN ZERO must not be specified for 66 or 88 level variables or signed fields.
- True
- False
JUSTIFIED clause cannot be used for data items defined with USAGE IS POINTER.
- True
- False
EJECT is used for creating a new page in the compiler listing.
- True
- False
For successful execution of REWRITE stmt, the direct access file must be opened in _____ mode.
- I
- O
- I-O
- O-I
ASCENDING/DESCENDING KEY data item cannot be floating point items.
- True
- False
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
The maximum size of a Tablespace can be
- 64 Gb
- 32 Gb
- 8 Kb
- 4 Kb
Which one is not a pre-compile parameter
- Level
- Host()
- APost
- Time