Chapter 11: Multiple Classes and Inheritance
MODIFIED TRUE/FALSE
1. Concatenation is a major contributor to reliable and robust programs. _________________________
ANS: F, Encapsulation
PTS: 1 REF: 787
2. In a three-tier architecture, only the presentation tier will actually read and write data. _________________________
ANS: F, persistence
PTS: 1 REF: 788
3. Data access tier is another name for the presentation tier. _________________________
ANS: F, persistence
PTS: 1 REF: 788
4. The code in a constructor procedure executes after any other code in the object. _________________________
ANS: F, before
PTS: 1 REF: 793
5. A subclass is always in a “has-a” relationship with the base class. _________________________
ANS: F, is-a
PTS: 1 REF: 797
MULTIPLE RESPONSE
Modified Multiple Choice
1. The ____ tier is a tier within the three-tier structure into which programs are divided.
a. Presentation c. Business
b. Records d. Persistence
ANS: A, C, D PTS: 1 REF: 787
2. In a three-tier architecture, only the persistence classes will actually ____ data.
a. record c. index
b. read d. write
ANS: B, D PTS: 1 REF: 788
3. In a three-tier architecture, the business tier contains the ____ that must occur to fulfill the requirements of the program.
a. logic c. syntax
b. objects d. calculations
ANS: A, D PTS: 1 REF: 788
4. Inheritance allows one class to gain ____ from another class.
a. attributes c. procedures
b. records d. bases
ANS: A, C PTS: 1 REF: 797
5. The WriteLine procedure will ____.
a. write a record to a file c. update an existing record in a file
b. place a line return in the file d. close a StreamWriter
ANS: A, B PTS: 1 REF: 809
Reviews
There are no reviews yet.