Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

COBOL Programming - Advanced

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

COMPUTER EDUCATION TECHNIQUES, INC. (COBOL_ADV_QUIZ- 4.8)

SA: Page 1

COBOL Programming - Advanced

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.

COMPUTER EDUCATION TECHNIQUES, INC. (COBOL_ADV_QUIZ- 4.8)

SA: Page 2

COBOL Programming - Advanced


QNO 8.

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.

COMPUTER EDUCATION TECHNIQUES, INC. (COBOL_ADV_QUIZ- 4.8)

SA: Page 3

COBOL Programming - Advanced


QNO 15.

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.

COMPUTER EDUCATION TECHNIQUES, INC. (COBOL_ADV_QUIZ- 4.8)

SA: Page 4

COBOL Programming - Advanced


QNO 21. Question Modular programs have the following characteristic(s): a. Any logical portion can be changed without affecting the rest of the program. b. Each module has one entry and exit point. c. Each module is independent of the other modules. d. One module cannot directly change the values in another module. e. All of the above. A structure/hierarchy chart depicts:

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.

COMPUTER EDUCATION TECHNIQUES, INC. (COBOL_ADV_QUIZ- 4.8)

SA: Page 5

COBOL Programming - Advanced


QNO 28. Question A VSAM upgrade set of a base cluster: a. Is the version of VSAM that is in effect. b. Automatically updates the base when a record is changed. c. Consists of AIXs that are updated when the base cluster is updated. d. Is defined via COBOL SELECT and FD statements. e. None of the above. To specify the CI size for a VSAM KSDS: a. Specify the CI SIZE in the COBOL SELECT. b. Specify the CI SIZE in the COBOL FD clause. c. Specify the CI SIZE in the COBOL OPEN statement. d. Specify the CI SIZE in the COBOL first READ. e. None of the above. To construct an alternate index for an existing VSAM dataset use the following command: a. BUILD INDEX b. BLDINDEX c. CREATE INDEX d. DEFINE INDEX e. DEFINE ALTERNATEINDEX The RECORD KEY clause is valid for: a. KSDS b. RRDS c. ESDS d. All VSAM file types. e. None of the above. The DUPLICATES clause for VSAM datasets is coded in the: a. IDCAMS DEFINE CLUSTER b. SELECT c. FD d. OPEN e. None of the above. The EXTEND option on the OPEN statement is available for: a. ESDS b. RRDS c. QSAM d. VSAM Linear Data Set e. None of the above. The START statement sets the CRP to: a. Zero b. Error status code c. The position specified in the parameters of the START. d. Spaces e. None of the above.

Assessment
Answer

29.

30.

31.

32.

33.

34.

COMPUTER EDUCATION TECHNIQUES, INC. (COBOL_ADV_QUIZ- 4.8)

SA: Page 6

COBOL Programming - Advanced


QNO 35. Question Instead of the INVALID KEY clause, it is possible to check: a. The FILE STATUS variable. b. The RETURN-CODE special register. c. The COND CODE value. d. A parameter specified on the COBOL I/O statement. e. None of the above. In the COBOL START statement, the KEY clause: a. Is optional. b. Can specify the prime RECORD KEY. c. Any ALTERNATE RECORD KEYs. d. A contiguous part of a key starting with the leftmost character. e. Any of the above. Which option allows the batch COBOL program to read a VSAM file backwards.

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.

COMPUTER EDUCATION TECHNIQUES, INC. (COBOL_ADV_QUIZ- 4.8)

SA: Page 7

COBOL Programming - Advanced


QNO 42. Question The default technique for passing data from a CALL to a subprogram is: a. CALL BY REFERENCE b. CALL BY CONTENT c. CALL BY VALUE d. CALL BY CONTENT e. None of the above. The CALL with RETURNING clause is used to: a. Abend the program. b. Change the COND CODE value. c. Call C or C++ programs. d. Provide the RETURN statement instead of the GOBACK. e. None of the above. The Partition Level Vector Table contains: a. Entries for all debuggable modules. b. Static modules and their internal address. c. A list of system partitions that are running. d. A unique assigned slot for each possible library routine. e. None of the above. Thread level of control provides: a. The ability to pass arguments to the operating system. b. The ability to call DB2. c. The ability to run across CPUs in a clustered network. d. The ability to run multitasking. e. None of the above. The Task Global Table contains information to assist in: a. Locating data variables in a dump. b. Determining the address of passed variables. c. Viewing the contents of the RETURN-CODE. d. Finding the contents of passed variables. e. All of the above. Which is the fastest data type for use in a subscript? a. PIC S9(5) COMP-3 b. PIC S9(6) COMP-3 c. PIC S9(8) COMP d. PIC X(6) e. PIC 99999 The D* in column 7 is: a. Used for comments and debugging statements. b. Used for displaying variables using an interactive debugger. c. Expanding the copy book member on a COPY. d. Invalid in COBOL. e. Can only be used in the FD clause.

Assessment
Answer

43.

44.

45.

46.

47.

48.

COMPUTER EDUCATION TECHNIQUES, INC. (COBOL_ADV_QUIZ- 4.8)

SA: Page 8

COBOL Programming - Advanced


QNO 49. Question In order to concatenate two strings, use the: a. CONCATENATE statement. b. STRCAT statement. c. ADD STRING statement. d. ABUTTAL statement. e. None of the above. The ON EXCEPTION clause is used to: a. Detect a slow running program. b. Divide by zero error. c. Detect a dynamically called program that is not available. d. An OC7. e. None of the above.

Assessment
Answer

50.

COMPUTER EDUCATION TECHNIQUES, INC. (COBOL_ADV_QUIZ- 4.8)

SA: Page 9

You might also like