SOLUTIONS TO REVIEW QUESTIONS:  Chapter 2 

I. True-False Questions 

1.   T 
2.   F  AUTHOR is not a required entry. 
3.   F  File names must not contain embedded blanks. 
4.   T 
5.   T 
6.   T 
7.   T 
8.   F  Any number of lines may be used. 
9.   T 
10. T 
11. T 
12. F  As many files as are needed may be defined, as long as the number of files is within the limit allowed by the operating system. 

II. General Questions

1.     IDENTIFICATION DIVISION. 
        PROGRAM-ID. SAMPLE1. 

 2.    ENVIRONMENT DIVISION. 
        CONFIGURATION SECTION.  

3.     IDENTIFICATION DIVISION. 
        PROGRAM-ID. SAMPLE4. 
        AUTHOR. MARY DOE. 

4.     DATA DIVISION. 
        FILE SECTION. 

5.     ENVIRONMENT DIVISION. 
        CONFIGURATION SECTION. 
        SOURCE-COMPUTER. IBM-AS400. 

6.     ENVIRONMENT DIVISION. 
        . 
        . 
        . 
        INPUT-OUTPUT SECTION. 

7.     SELECT FILE-A 
                ASSIGN TO DISK1. 

8.     FILE-CONTROL. 
                SELECT FILEA 
                        ASSIGN TO PRINTER. 

9.     a. Area A         f. Area A 
        b. Area A         g. Area A 
        c. Area B         h. Area A 
        d. Area A         i. Area A 
        e. Area B         j. Area B 

10. These paragraphs serve no purpose in the execution of the program and need not be included as part of the compiled object. Instead, this information can be included as comments for documentation purposes.