CSCI 465 Name _____________________ Summer, 2008 Quiz 5 (10 points) On multiple choice questions, pick the best available answer. True-false questions are 1 point each; the rest are 2 points each. Other problems are worth points as marked. 1. In COBOL, which of these items must be written starting in the A margin? A. Names of divisions B. Names of sections C. Names of subroutines D. 01-level items in the Data Division *** E. All of the above 2. How do we implement a loop in COBOL? A. Perform 100-This-Subroutine *** B. Perform 100-This-Subroutine until Count > 4 C. Call 100-This-Subroutine until Count > 4 D. Do 100-This-Subroutine While Count not < 4 E. For Count = 1 to 4 Do Perform 100-This-Subroutine 3. The ?At End? clause on a COBOL Read is more or less the same idea as an EODAD in QSAM. *** A. True B. False 4. Which of these (A ? D) is not true about the Linkage Editor and the Loader? A. The Linkage Editor writes its printed output to SYSPRINT while the Loader uses SYSLOUT. B. The Linkage Editor stores the load module in a PDS while the Loader does not. C. We do not need to provide a STEPLIB for the system to be able to locate either one. *** D. The Linkage Editor executes the load module while the Loader does not. E. All of A ? D are true. 5. Suppose we have this variable in a COBOL program: 01 Client-Age Pic 99. Also suppose that at some point, Client-Age contains the value 99. We then execute this line of code: Add 1 to Client-Age because this person had a birthday. (a) (1 point) What value is now stored in Client-Age? 00 (b) (2 points) What should we add to the executable code to detect any difficulties of this sort in the future? On Size Error