Chap 7 - algorithm design & problem sloving Flashcards

(13 cards)

1
Q

stages of program development life cycle & what they mean

A

-analysis - process of investigation to find a solution to the program; uses defragmentation & abstraction
-design - doc with tasks required for solution; uses structured charts, flowcharts, pseudocode
-coding - writing programs required
-testing - text the completed program to make sure it works under all conditions
-maintenance

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

what is decomposition

A

breaking down a problem into more manageable parts; decompose a computer system into its inputs, process, outputs & storage

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

what is abstraction

A

simplifying a problem by focusing on essential details than the unnecessary details

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

structure diagrams

A

shows hierarchy of sub systems

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

flow charts

A

-shows the algorithm
has symbols to learn

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

pseudocode

A

-simple method of showing an algorithm

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

validation

A

ensure only reasonable data is accepted

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

verification

A

check that data is not changed when entered

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

types of verification check

A

-double entry - data entered twice & compared to ensure both are the same
-screen/ visual check - manual check that ensures data on screen is same as the form

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

types of validation check

A

-range check - value is btw upper & lower values
-length check - data entered is of reasonable no. or an exact no. of char
-type check - data entered is of given type
-presence check - ensure data has been entered so the value is not left blank
-format check - char entered are conformed to a pre-defined pattern

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

test data

A

-ensure algorithm works as expected with no errors
-use trace table to check

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

type of test data

A

-normal - data accepted which the algorithm is expected to work with
-abnormal - data is rejected by algorithm as unsuitable
-boundary - plus, minus 1 from the extreme data
-extreme - largest & smallest values accepted

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

trace table

A

-records results from each set in algorithm using text data
-identify variables
-first row is always dedicated to initialized variables
-do it slowly, 1 by 1

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