Efficiency of a program is measured by:
CPU time ad Memory
What relationship would classes Student and IBCandidate have?
inheritance (is-a)
Dummy code that stands in for a real method during testing
Stub Method
This is the kind of error that keeps your code from compilling BECAUSE OF missing or incorrect punctuation or spelling
Syntax Error
Which of the following would NOT be an important piece of test data for a program that calculates GPA for a given set of grades?
A. user attempts to calculate without entering grades
B. user attempts to enter negative grade
C. user attempts to use program on a new computer
D. user attempts to enter text
C
What relationship would classes Mario and PowerUp have?
composition (has-a)
Using helper methods to replace frequently used chunks of code
Procedural Abstraction
This type of error occurs during a program's runtime when you attempt to divide by zero
ArithmeticException
In an online competitive first-person shooter game, which of the following classes should be responsible for knowing the current health of a player?
- Environment
- Vehicle
- Squad
- Player
- Ammo
Player
When translating a class's behaviors into methods, you must determine any state that might cause an exception and ensure that this state is not reached before the method is called. This is also known as defining WHAT?
precondition
Coding the independent classes first and the collection/controller classes later
bottom-up implementation
This type of error describes when a program compiles and runs but produces incorrect or unexpected output
Intent/Logic Error
information hiding (suing private for instance variables and helper methods) is part of what OOP principle?
Encapsulation
In a Battleship game, a player submits a guess and is told whether they have hit one of the hidden ships or missed. If the classes are Player, Boat, Grid, and Game, which classes are independent (base classes)?
Boat & Player
Coding the controller classes first and breaking out smaller classes as you go
top-down implementation
This is the phase of the waterfall model where you might update software based on recent improvements of your client's harware
Maintenance
The class used to test other classes, has a main method
Driver/Client Class

Breaking a long method into smaller steps
stepwise refinement
When you are attempting to resolve an error in your program, this is also known as
Debugging