Program Design & Analysis Flashcards

1
Q

Software development

A

Writing a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Object-oriented program

A

Uses interacting objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Program specification

A

Description of a task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Program design

A

A written plan, an overview of the solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Program implementation

A

The code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Program maintenance

A

Keeping the program working and up to date

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Top-down development

A

Implement main class first, subsidiary classes later

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Independent class

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Bottom-up development

A

Implement lowest level, independent classes first

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Driver class

A

Used to test other classes; contains main method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Inheritance relationship

A

Is-a relationship between classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Composition relationship

A

Has-a relationship between classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Inheritance hierarchy

A

Inheritance relationship shown in a tree like diagram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

UML diagram

A

Tree-like representation of relationship between classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Data structure

A

Java construct for storing a data field (e.g., array)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Information hiding

A

Using private to restrict access

17
Q

Stepwise refinement

A

Breaking methods into smaller methods

18
Q

Procedural abstraction

A

Using helper methods

19
Q

Algorithm

A

Step-by-step process that solves a problem

20
Q

Stub method

A

Dummy method called by another method being tested

21
Q

Robust program

A

Screens out bad inputs

22
Q

Compile-time error

A

Usually a syntax error; prevents program from compiling

23
Q

Syntax error

A

Bad language usage (e.g., missing brace)

24
Q

Run-time error

A

Occurs during execution (e.g., int division by 0)

25
Q

Exception

A

Run-time error thrown by Java method

26
Q

Logic error

A

Program runs but does the wrong thing