CSCI 465 Name _____________________ Summer, 2009 Quiz 8 (10 points) Multiple-choice questions are 2 points each and true-false questions are 1 point each. On multiple choice questions, pick the best available answer. 1. If we want to give a COBOL program an EXEC-line PARM such as 'XYZ,123', we put this in the PARM on the link-edit step. A. True *** B. False 2. Which COBOL compiler option has to do with which compiler messages are printed and where? A. TEST B. LIST *** C. FLAG D. MAP E. APOST 3. The Return-Code special register is the counterpart in COBOL of register 15 as a place to put a return code. *** A. True B. False 4. Suppose I define the following items in Working-Storage: 01 Value-A Pic S9(5) Value -23. 01 Value-B Pic S9(5) Comp-3 Value -23. 01 Value-C Pic S9(5) Comp Value -23. Which of these (A ? D) lists the 3 above items in order according to the number of bytes needed to store them, from longest to shortest? A. Value-B, Value-C, Value-A B. Value-C, Value-A, Value-B *** C. Value A, Value-C, Value-B D. Value-C, Value-B, Value-A E. It doesn?t matter, as they all take the same amount of space. 5. Suppose the beginning of the definition of a table in Working- Storage looks like this: 01 Q-Table. 05 Q-Item Occurs 1 to 52 times Depending on Q-Counter Indexed by Q-X. 10 Q-Something Pic X(20). True or False: Q-Counter must be defined somewhere else in Working-Storage as a numeric item. *** A. True B. False 6. Suppose I want to do a linear search on a table in COBOL. Which statement (A ? D) is not true? A. The table must be indexed. B. We need to set the index to 1 before we start. C. The data does not need to be sorted first. D. We use the Search operation. *** E. All of A - D are true. 7. In COBOL, we execute internal subroutines using ?Perform? and external subroutines using ?Call?. *** A. True B. False