COBOL Programming and IBM Mainframe Concepts
Quiz covering COBOL language features, compiler options, program linkage, data handling, and IBM mainframe programming concepts
Questions
The maximum value of the integer argument to the FACTORIAL function when you specify ARITH (COMPAT) is?
- (a) 20
- (b) 29
- (c) 28
- (d) 18
In CODEPAGE(ccsid),what is full form of CCSID?
- (a) coded character set identifier
- (b) character code set identifier
- (c) codepage character set identifier
- (d) coded character statement identifier
LIB compiler option must be in effect for which of the following statements?
- (a) Basis
- (b) Copy
- (c) Replace
- (d) All of the above
Use MAP to produce a listing of the items defined in the
- (a) Identification division
- (b) Data division
- (c) Environment division
- (d) Program division
-------- specifies a decimal number that must be at least 256.
- (a) nnn
- (b) nnnK
- (c) nnnnn
- (d) nn
You will introduce errors if the number of data-names in the identifier list of a called program is greater than the number of arguments passed from the calling program
- True
- False
By what way we can pass data between programs?
- (a) By Reference
- (b) By Content
- (c) By Value
- (d) All of the above
To pass a copy of the identifier to the subprogram --- code can be used?
- (a) CALL . . . BY CONTENT literal
- (b) CALL . . . BY CONTENT identifier
- (c) CALL . . . BY CONTENT ADDRESS OF identifier
- (d) CALL . . . BY CONTENT ADDRESS OF identifier
To call a C/C++ function with a function return value
- (a) CALL . . . RETURNING
- (b) CALL . . . RECURRING
- (c) CALL . . . RECURSIVE
- (d) CALL . . . REFERRING
We need to use ----- to get a sorted cross-reference listing
- (a) XNOX
- (b) XREFER
- (c) XSCR
- (d) XREF
The only difference between DECK and OBJECT is in the ------
- (a) linkage editor
- (b) dataset name
- (c) routing of datasets
- (d) binder
Default BUFSIZE is ?
- (a) 1024
- (b) 4024
- (c) 256
- (d) 4096
When conflicting options are specified at the same level in the hierarchy -------- option takes effect.
- (a) the option specified last
- (b) the option specified first
- (c) both options takes effect
- (d) both options will not takes effect
In the syntax WORD(xxxx) what do xxxx specifies?
- (a) starting characters of the name of the reserved-word table
- (b) ending characters of the name of the reserved-word table
- (c) alternate characters of the name of the reserved-word table
- (d) All of the above
Can we use the LANGUAGE compiler option and the NATLANG runtime option to act independently of each other.
- True
- False
The DATA option affects whether storage for dynamic data areas and other dynamic runtime storage is obtained from above or below the ------line
- (a) 8MB
- (b) 31MB
- (c) 16MB
- (d) 20MB
For conversions that lose precision - When a USAGE COMP-1 data item is moved to a FIXED-POINT data item that has more than nine digits, the fixed-point data item will receive only -- significant digits, and the remaining digits will be ----.
- (a) 18 , zero
- (b) zero , 18
- (c) zero , 9
- (d) 9 , zero
DBRM stands for ?
- (a) database request module
- (b) database resourse module
- (c) databind request module
- (d) databind resourse module
RMODE stands for ?
- (a) Remote mode
- (b) Regression mode
- (c) Recession mode
- (d) Residency mode
What is the clause we use to access the file between two programs as a common file ?
- (1) Use the SYNCHRONIZED clause for the file.
- (2) Use the EXTERNAL clause for the file.
- (3) Use GLOBAL clause for the file.
- (4) Use COMMON clause for the file.