Topic 7 Flashcards

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

What is linear search [3]

A

A method that inspects each item in a list
-in turn
-to see if the item matches the value searched for

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

What is bubble sort? [5]

A

A method that compares each element with the next
-to swap if they are in the wrong order
-starting from the first element and finishing with the second last element
-compare again except last element because it is correct
-repeat until it reaches one element left

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

What does validation do? [2]

A

-ensure that only data that is reasonable is accepted
-reject unreasonable data and explains reason

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

What does verification do?

A

check that the data is accurately copied from one source to another

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

What types of verification are there? [2]

A

-double entry
-screen/visual check

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

What types of validation are there? [6]

A

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

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

Explain range check

A

checks that the value is between an upper value and a lower value

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

Explain length check

A

checks the number of characters in a data

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

Explain Type check

A

checks data entered is certain type of data eg. integer, string

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

Explain Presence check

A

checks that some data has been entered and the value hasn’t been left blank

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

Explain format check

A

checks data entered conform to a pre defined pattern

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

Explain check digit

A

final digit included in a code calculated from all the other digits to indentify errors

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

Explain double entry

A

when data is entered twice, checked if they are identical, and output error message if they aren’t

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

Explain screen/visual check

A

when user is asked to confirm data entered after data is displayed

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

Explain set of test data

A

all the items of data required to work through a solution

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

Explain normal data

A

set of test data that an algorithm is expected to work with

17
Q

Explain abnormal test data (erroneous test data)

A

a test data that would be rejected by an algorithm as not suitable

18
Q

Explain extreme data

A

largest and smallest values that normal data can take

19
Q

Explain boundary data

A

two values: one rejected, one accepted to establish where the extreme data occur

20
Q

Explain trace table

A

used to record the results from each step in an algorithm

21
Q

Explain dry run

A

the manual exercise of working through an algorithm step by step