Past-paper question · 2016 May-June · Paper 21 · Q6(a)

Question 6(a) 2016 · May-June · Paper 21 · 18 marks

Original past-paper question for 6(A)
Original past-paper question for 6(A)
Original past-paper question for 6(A)
Original past-paper question for 6(A)
Original past-paper question for 6(A)
Original past-paper question for 6(A)
Original past-paper question for 6(A)
Reveal official mark-scheme answer Official mark-scheme answer for 6(A)

Official answer for Question 6

Part (a)

Part (a)

)

Question 6

✓
n
✓
f
✓
x
✓
y
✓
MI
✓
ID (S
✓
Str
✓
rin
✓
ng1
✓
1, x
✓
x, 1)
✓
M D(S
✓
MID
✓
Str
✓
rin
✓
ng 2, y,
✓
y 1)
✓
)
✓
0
✓
0
✓
0

Question 1

Question 1

Question 1

✓
'R
✓
R'
✓
'R
✓
R'

Question 2

Question 2

✓
'E
✓
E'
✓
'A
✓
A'

Question 2

Question 2

Question 1

✓
'E
✓
E'
✓
'R
✓
R'

Question 3

Question 3

Question 1

✓
'T
✓
T'
✓
'R
✓
R'

Question 4

Question 4

Question 1

✓
'R
✓
R'
✓
'R
✓
R'

Question 5

Question 2

✓
'A
✓
A'
✓
'A
✓
A'

Question 6

Question 3

✓
'C
✓
C'
✓
'C
✓
C'

Question 4

✓
O ne m ark
✓
k p er co
✓
orre
✓
ect co
✓
olum
✓
mn
✓
n
✓
•
✓
Mi nu s one
✓
o e mar
✓
m rk if f a nyt thi ng els
✓
se on
✓
n fir rst row
✓
w
✓
•
✓
Co
✓
olum
✓
mn
✓
n 2 – '4' mu
✓
ust t no
✓
ot pre
✓
p ece
✓
ede
✓
e '4
✓
4' in
✓
n co
✓
olu
✓
umn
✓
n 1 (a
✓
as sho
✓
s ow
✓
wn b
✓
by arr row
✓
w)
✓
•
✓
Le
✓
ette
✓
ers mu
✓
ust t al l b e i n u
✓
upp
✓
per r ca
✓
ase
✓
e
✓
•
✓
Ign
✓
nor re quo
✓
q ota
✓
atio
✓
on sym
✓
s mb
✓
bol

Mark scheme 9608_s16_ms_21.pdf →

Show text version of question

Question 6

Part (a)

Question 6

ELSE Message = "Error"

[6]

Question 3

(ii)

State the purpose of each statement in the table in part (a)(i).

Do not use mathematical symbols in your descriptions.

Item Purpose of statement

...............................................................................................................................................

Question 1

...............................................................................................................................................

...............................................................................................................................................

Question 2

...............................................................................................................................................

...............................................................................................................................................

Question 3

...............................................................................................................................................

...............................................................................................................................................

Question 4

...............................................................................................................................................

...............................................................................................................................................

Question 5

...............................................................................................................................................

...............................................................................................................................................

Question 6

...............................................................................................................................................

[6]

(iii)

Evaluate the following expressions when MyString has the value "Adaptive

Maintenance".

Expression Result

'D' & RIGHT(MyString, 4)

LEFT(RIGHT(MyString, 7), 3)

[2]

Question 4

2 A team is designing a software system to monitor temperature in a process. To do this, the system needs to sample the temperature repeatedly. If the temperature exceeds a given threshold value, an alarm will sound.

The system is to be software-based. It will include a subroutine, SampleTemp, which samples the temperature and sets the alarm state to either ON or OFF.

The initial design stage will produce a prototype of SampleTemp with a user interface. The structured English for this is:

1. IF the temperature does not exceed threshold value, SET alarm state to OFF 2. INPUT threshold value (to two decimal places) 3. INPUT sensor value (a whole number in the range 0 to 100) 4. MULTIPLY sensor value by conversion factor 1.135 to give temperature 5. IF temperature exceeds threshold value SET alarm state to ON 6. IF temperature exceeds threshold value OUTPUT message “Temperature Alarm” 7. IF temperature does not exceed threshold value OUTPUT message “Temperature OK”

Part (a)

The procedure needs four variables. Complete the identifier table below for these variables.

Identifier Data type Description

....................................................................................... AlarmState .......................................................................................

....................................................................................... SensorValue .......................................................................................

....................................................................................... ThresholdValue .......................................................................................

....................................................................................... Temperature .......................................................................................

[4]

Question 5

Topic relevance

Why this question appears here

99% assigned-topic match · Hardware › Logic gates and logic circuits

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9608_s16_qp_21.pdf

Keep practising this topic