worksheet5

worksheet5 - Worksheet 5 Chapter 6 Transfer your answers to...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Worksheet 5 Chapter 6 Transfer your answers to all questions to Chi-Tester. ONCE YOU START YOUR CHI- TESTER SESSION, YOU CANNOT CLOSE IT AND RESTART - TRANSFER ALL OF YOUR ANSWERS TO CHI-TESTER AT ONE TIME. The first 18 questions are from the textbook; question numbers from the text are given in square brackets at the beginning of the question on Chi-Tester. Please take a few moments to read the feedback. 1. [1] What is the purpose of a class declaration (note that the text says "definition")? a. To allocate memory to hold an instance of a class. b. To provide user documentation for the private sections of a class. c. A To describe how objects of a class will look when they are created. d. To serve as a place holder until a proper class definition can be written. 2. [2] A ____ has the same relation to an ____ that a basic data type has to a variable of that type. 3. [3] In a class definition, data or functions designated private are accessible a. to any function in the program. b. only if you know the password. c. to member functions of that class. d. only to public members of the class. 4. [5] Data items in a class must be private. a. True b. False. 5 [6] Write a statement that defines an object called lever1 of a class named leverage (do not include the semicolon at the end of the statement). 6. [7] The dot operator (or class member access operator) connects the following two entities
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/27/2012 for the course CS 251 taught by Professor Staff during the Fall '08 term at Purdue.

Page1 / 5

worksheet5 - Worksheet 5 Chapter 6 Transfer your answers to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online