Professional Documents
Culture Documents
COBOL Programming - Advanced Assessment: Sys-Ed PO Box 1213 New York, NY 10156
COBOL Programming - Advanced Assessment: Sys-Ed PO Box 1213 New York, NY 10156
In order to learn which questions have been answered correctly: 1. Print these pages. 2. Answer the questions. 3. Send this assessment with the answers via: a. FAX to (212) 967-3498. Or b. Mail the answers to the following address: SYS-ED PO Box 1213 New York, NY 10156 Client contact: Name: Company: Address: City, State, Zip: Phone Number: Fax Number: E-mail:
Assessment
SA: Page 1
Assessment
QNO 1.
Question Reentrant code is often used to: a. Compile programs faster. b. Generate debugging information. c. Share the load module. d. Compile programs that are bug free. e. Code structured programs. Scope terminator(s): a. Are used to isolate code that is causing trouble. b. Are mandatory for in-line PERFORMS and EVALUATE. c. Is required at the end of every paragraph. d. Are no longer used in COBOL II or COBOL for MVS. e. Are obsolete. The SEARCH ALL requires: a. That the table must be in order before the search. b. A WHEN clause. c. An index to be defined. d. a,b e. a,b,c To increment an index, use the following command: a. INCREMENT b. ADD c. SET d. PLUS e. None of the above To create a variable length table use: a. A variable in the occurs clause. b. A DEPENDING ON clause. c. An OCCURS WITH VARIABLE clause. d. A GETMAIN command. e. None of the above. In COBOL II, a table can have the following maximum number of subscripts: a. 1 b. 3 c. 5 d. 7 e. 64 A SORT requires a minimum of how many DASD workfile(s) (SORTWKxx): a. 0 b. 1 c. +2 d. 3 e. 5
Answer
2.
3.
4.
5.
6.
7.
SA: Page 2
Assessment
Answer
Question In the INPUT PROCEDURE, which statement writes a record to the SORT utility for processing: a. SORT RECORD b. RELEASE c. WRITE d. RETURN e. None of the above. In the OUTPUT PROCEDURE, which statement reads a sorted record from the SORT utility for processing: a. SORT RECORD b. RELEASE c. READ d. RETURN e. None of the above When using the SORT utility, IGZSRTCD: a. Is used to change SORT options. b. Substitutes for a SORT Work Area. c. Is required for all sorts. d. Is often used for VSAM datasets. e. None of the above. Which of the following special values contain the SORT return code: a. SORT-CODE b. RETURN-CODE c. SORT-RETURN d. SORT-STATUS e. None of the above. The SORT-MESSAGE is a special register that: a. Changes the default message file from SYSOUT. b. Permits additional statistics to be calculated and printed. c. Is invalid on the IBM mainframe. d. Allows the programmer to write special messages from the INPUT and OUTPUT PROCEDURES. e. None of the above. Under COBOL II, the totals length of all keys can total: a. 255 b. 256 c. 257 d. 4092 e. 32,767 To print compile errors within the actual source listing, use compiler option: a. SOURCE b. ERROR c. COMPILE d. FLAG e. None of the above.
9.
10.
11.
12.
13.
14.
SA: Page 3
Assessment
Answer
Question In the cross reference list of COBOL data names, the M preceding the statement number represents: a. A data item that is modified in the statement. b. A data item that is initialized with a VALUE clause. c. A redefined statement. d. A mandatory statement. e. All of the above. To change the compiler options, which of the following can be used: a. The PARM on the compile EXEC card. b. The PROCESS statement in the source. c. The CBL statement in the source. d. a,b, and c e. None of the above. In order to assure that the dynamic data area, which includes WORKING-STORAGE and FD record areas, is acquired from storage below the line use the following compiler option: a. AMODE b. DATA c. LINE d. SSRANGE e. ADV In order to reate a formatted dump when a COBOL program abends, requires the use of which compiler option: a. FORMAT b. FDUMP c. FLAG d. DEBUG e. TEST Which option will check for invalid subscript values at execution time. a. SSRANGE b. SUBSCRIPT c. ERROR d. SPACE e. None of the above. Which option would check for invalid reference modification values at execution time. a. SSRANGE b. SUBSCRIPT c. ERROR d. SPACE e. None of the above.
16.
17.
18.
19.
20.
SA: Page 4
Assessment
Answer
22.
23.
a. The relationship of records and structures. b. The function of each routine in a program and the relationship among program functions. c. A cross reference listing of all linkage areas. d. a,b,c. e. None of the above. Top down coding requires: a. COBOL II version 3.2 or higher. b. Special compiler options. c. A top down ruler. d. Management approval. e. None of the above. There are a number of coding structures used in structured programming. Which is not one of the them. a. Sequence Structure b. Selection Structure c. Iteration Structure d. Program Structure e. Case Structure A VSAM dataset can be accessed via: a. A logical key b. A RBA c. A relative record number d. A track number e. a, b, c. Which of the following is not a VSAM type dataset: a. KSDS b. RRDS c. ESDS d. Linear e. They are all VSAM type data sets. In a KSDS, which of the following is not true: a. Records can vary in length. b. The primary key must be contiguous. c. A COBOL program can change the primary key value. d. The key must be in the static portion of a varying length record. e. KSDS supports AIXs.
24.
25.
26.
27.
SA: Page 5
Assessment
Answer
29.
30.
31.
32.
33.
34.
SA: Page 6
Assessment
Answer
36.
37.
38.
a. READPREV b. READ PREVIOUS c. READ PREV d. READ BACK e. None of the above. Which of the following statements allows the program to have a different starting point than the PROCEDURE DIVISION? a. A second PROCEDURE DIVISION b. ALTER c. START d. ENTRY e. None of the above. Which is not an intrinsic function? a. Upper-case b. Reverse c. Numval d. Char e. List The EXTERNAL clause in the File Section: a. Is an alternate method for specifying a DDNAME. b. Permits communication between two programs by the sharing of files. c. Creates a global memory area for all programs to access. d. Is used for accessing IBM system modules. e. None of the above. Global variables: a. Are known to all nested program. b. Are known to all called programs. c. Are created when parameters are passed to a subprogram. d. Are only available in VS COBOL; they are no longer available. e. None of the above.
39.
40.
41.
SA: Page 7
Assessment
Answer
43.
44.
45.
46.
47.
48.
SA: Page 8
Assessment
Answer
50.
SA: Page 9