Questions Paper 1 Flashcards

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

7.1 Shade one lozenge to show which programming technique is used on line 3 of the algorithm

A

C. Selection

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

7.2 Shade one lozenge to show the data type of the variable ans in the algorithm

A

D. string

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

7.3 State how many output instructions will execute whenever the algorithm is run.

A

Three

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

7.4 State the two possible sequences of user input that would result in ‘Contact supplier’ being output.

A

‘no’ followed by ‘yes’

‘yes’ followed by ‘yes’

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

7.5 Explain why this problem has occured and describe what would happen if a user entered ‘y’ or ‘n’ instead of ‘yes’ or ‘no’

A

The output message is not very clear, line 3 will only be true if they enter ‘no’ and line 6 and 14 will only be true if they enter ‘yes’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. Complete the algorithm in pseudo-code
A

IF image1 [i][j] = image2 [i][j] THEN (A,B,C0

inverse

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