Program Design And 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

Test data

A

Input to test the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
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
8
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
9
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
10
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
11
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
12
Q

Inheritance relationship

A

Is-a relationship between classes

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

Composition relationship

A

Has-a relationship between classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
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
15
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
16
Q

Data structure

A

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

17
Q

Encapsulation

A

Combining data fields and methods in a class

18
Q

Information hiding

A

Using private to restrict access

19
Q

Stepwise refinement

A

Breaking methods into smaller methods

20
Q

Procedural abstraction

A

Using helper methods

21
Q

Algorithm

A

Step-by-step process that solves a problem

22
Q

Stub method

A

Dummy method called by another method being tested

23
Q

Debugging

A

Fixing errors

24
Q

Robust program

A

Screens out bad inputs

25
Q

Compile-time error

A

Usually a syntax error; prevents program from compiling

26
Q

Syntax error

A

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

27
Q

Run-time error

A

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

28
Q

Exception

A

Run-time error thrown by Java method

29
Q

Logic error

A

Program runs but does the wrong thing