Algorithms Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Algorithm

A

A set of instructions to solve a problem or complete a task

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

Abstraction

A

Removing unnecessary details from a problem

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

Decomposition

A

Breaking down a large problem into smaller sub-problems

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

Sequence

A

Statements are executed in the order they were written in

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

Selection

A

Next statement depends on if condition is true or false

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

Iteration and examples

A

Repetition
-for … next
-while … endwhile
-do … until

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

Post-condition vs Pre-condition

A

Post-condition: Condition is tested at the end of a loop. Repeats loop until condition is true
Pre-condition: Condition is tested at the start of a loop. Repeats loop while a condition is true

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

Validation

A

Process of checking that data input is reasonable
Carried out by computer

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

Types of validation

A

-Range check
-Presence check
-Digit check
-Length check
-Type check

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

Verification and types of it

A

Checking if data input is correct
-Visual check
-Double entry (entering data twice and comparing them)

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

Normal data

A

Data that falls into allowed range and is of correct data type

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

Abnormal data

A

Data that falls out of allowed range and is not of correct data type

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

Boundary data

A

Upper and lower limits of accepted range
Two types:
-Accepted boundary data (First and last accepted values
-Rejected boundary data (Just outside of accepted range)

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

Extreme data

A

Same as accepted boundary data - First and last accepted values

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