40 likes | 167 Vues
Prepare for your Object-Oriented Programming test with a thorough review of core topics such as class-object relationships, methods, encapsulation, and variable scope. The test consists of multiple-choice questions, true/false questions, and short answer questions that assess your understanding of defining classes, instantiation, method overloading, and program flow. Key concepts to study include object behavior, calling conventions between classes, and handling parameters. Ensure you understand the significance of class constructors and method return statements to excel in this assessment.
E N D
Chapter 4 Test Review First day • 24 Multiple Choice Questions (1 point each) • 12 True/False (1 point each) Second day • 7 Short answer (points vary, 36 points total) 72 points total
Test Topics - 1 • Relationship between class and object • Classes calling other classes • What defines an object’s behavior? • Defining classes, instantiation, instance data • Do you always need a class constructor? • Do you need a “main” method in a class? • Class methods • Calling • Writing • Encapsulation • variable scope • Within a method or class • Global, private, public data & methods
Test Topics - 2 • Methods • Returning parameters from a method • Do you always need a return statement? • How to overload • signatures • decomposition • Do you need anything in the body of a method? • Formal and actual parameters (arguments) • What is allowed to be passed as an argument? • Widening in the argument of a method call • Trace program flow with method calls • Interpreting code (what does it do)
Test Topics - 3 • Review these classes • String • Coin (pp. 194-195) • Die (pp. 213-214) • Short answer • Writing constructors, methods • Writing headers