Misc
Design
Implementation
Testing, Debugging, & Maintenance
100

Efficiency of a program is measured by:

CPU time ad Memory

100

What relationship would classes Student and IBCandidate have?

inheritance (is-a)

100

Dummy code that stands in for a real method during testing

Stub Method

100

This is the kind of error that keeps your code from compilling BECAUSE OF missing or incorrect punctuation or spelling

Syntax Error

200

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

200

What relationship would classes Mario and PowerUp have?

composition (has-a)

200

Using helper methods to replace frequently used chunks of code

Procedural Abstraction

200

This type of error occurs during a program's runtime when you attempt to divide by zero

ArithmeticException

300

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

300

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

300

Coding the independent classes first and the collection/controller classes later

bottom-up implementation

300

This type of error describes when a program compiles and runs but produces incorrect or unexpected output

Intent/Logic Error

400

information hiding (suing private for instance variables and helper methods) is part of what OOP principle?

Encapsulation

400

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

400

Coding the controller classes first and breaking out smaller classes as you go

top-down implementation

400

This is the phase of the waterfall model where you might update software based on recent improvements of your client's harware

Maintenance

500

The class used to test other classes, has a main method

Driver/Client Class

500
A program that applies visual effects to photos includes the following classes: Applicator, Pixel, Picture, Filter, SepiaFilter, DistortFilter, and GrayscaleFilter. What would the UML diagram for this program?

500

Breaking a long method into smaller steps

stepwise refinement

500

When you are attempting to resolve an error in your program, this is also known as

Debugging