Program Design And Analysis Flashcards Preview

AP Comp Sci > Program Design And Analysis > Flashcards

Flashcards in Program Design And Analysis Deck (29)
Loading flashcards...
1

Object oriented program

Uses interacting objects

2

Program specification

Description of a task

3

Program design

A written plan, an overview of the solution

4

Program implementation

The code

5

Test data

Input to test the program

6

Program maintenance

Keeping the program working and up to date

7

Top down development

Implement main classes first, subsidiary classes later

8

Independent class

Doesn't use other classes of the program in its code

9

Bottom up development

Implement lowest level, independent classes first

10

Driver class

Used to text other classes; contains main method

11

Inheritance relationship

Is-a relationship between classes

12

Composition relationship

Has-a relationship between classes

13

Inheritance hierarchy

Inheritance relationship shown in a tree-like diagram

14

UML diagram

Tree-like representation of relationship between classes

15

Data structure

Java construct for storing a data field (ex. Array)

16

Encapsulation

Combining data fields and methods in a class

17

Information hiding

Using private to restrict access

18

Stepwise refinement

Breaking methods into smaller methods

19

Procedural abstraction

Using helper methods

20

Algorithm

Step by step process that solves a problem

21

Stub method

Dummy method called by another method being tested

22

Debugging

Fixing errors

23

Robust program

Screens out bad input

24

Compile time error

Usually a syntax error; prevents program from compiling

25

Syntax error

Bad language usage (ex. Missing brace)

26

Run time error

Occurs during execution (ex. Int division by 0)

27

Exception

Run time error thrown by Java method

28

Logic error

Program runs but does the wrong thing

29

Software development

Writing a program