chapter 4 test review
DESCRIPTION
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 - PowerPoint PPT PresentationTRANSCRIPT
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