7 Algorithm design and problem solving Flashcards

(22 cards)

1
Q

Stages of the program development life cycle (4)

A

analysis, design, coding, and testing

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

Analysis

A

abstraction, decomposition of the problem, identification of the problem and requirements

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

Design

A

decomposition, structure diagrams, flowcharts, pseudocode

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

Coding

A

writing program code and iterative testing

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

Testing

A

testing program code with the use of test data

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

What can a problem be decomposed into (4)

A

inputs
processes
outputs
storage

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

What are the methods to design and construct a solution to a problem (3)

A

structure diagrams
flowcharts
pseudocode

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

What are the standard methods of solution (5)

A

linear search
bubble sort
totalling
counting
finding maximum, minimum, and average values

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

What are the types of validation checks (6)

A

range check
length check
type check
presence check
format check
check digit

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

What is a range check

A

checks that the value of a number is between an upper value and a lower vcalue

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

What is a length check

A

checks that the data entered is a reasonable number or an exact number of characters

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

What is a type check

A

checks that the data entered is of a given data type

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

What is a presence check

A

checks to ensure that some data has been entered and the value has not been left blank

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

What is a format check

A

checks that the characters entered conform to a pre-defined pattern

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

What are the types of verification checks (2)

A

visual check
double entry check

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

What is a visual check

A

a manual check to ensure the data on the screen is the same as the form

17
Q

What is a double entry check

A

the data is entered twice and compared to ensure both entries are the same

18
Q

What are the types of test data (4)

A

normal
abnormal
extreme
boundary

19
Q

Normal data meaning

A

test data that is accepted and the algorithm is expected to work with

20
Q

Abnormal data meaning

A

test data that is rejected by the algorithm as not suitable

21
Q

Boundary data meaning

A

at each boundary two values are required; one value is accepted and the other value is rejected

22
Q

Extreme data meaning

A

the largest and smallest values that normal data can take