Mr Al Gorithms Flashcards

1
Q

What steps can you take to interpret algorithms

A

1) Looking out for identifier names e.g. variables and subroutines
2)identifying the inputs and outputs
3)looking for code comments

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

What 3 things you should look for while correcting an algorithm

A

1)Incorrect Operators e.g. <
2)Incorrect identifiers e.g. O == 0
3)missing processes e.g. missing lines

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

What 2 things can you do to help complete an algorithm

A

1) interpreting the algorithm
2)drawing a trace table

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

What is a sort algorithm

A

A sort algorithm is a set of instructions to arrange a data set into a particular order

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