chapter 4 test review

4
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

Upload: hedley-boone

Post on 30-Dec-2015

32 views

Category:

Documents


0 download

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 Presentation

TRANSCRIPT

Page 1: Chapter 4 Test Review

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

Page 2: Chapter 4 Test Review

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

Page 3: Chapter 4 Test Review

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)

Page 4: Chapter 4 Test Review

Test Topics - 3

• Review these classes– String– Coin (pp. 194-195)– Die (pp. 213-214)

• Short answer– Writing constructors, methods– Writing headers