Question 6(a) 2016 · May-June · Paper 23 · 19 marks
Reveal official mark-scheme answer
Official answer for Question 6
Part (a)
Part (a)
(i)
Question 7
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
Question 7
Show text version of question
Question 6
Part (a)
Question 6
UNTIL x = 5
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
.............................................................................................................................
(iii)
Evaluate the following expressions when MyString has the value
"Corrective Maintenance":
Expression Evaluates to
'P' & MID(MyString, 13, 4)
RIGHT(MID(MyString, 6, 10) ,4)
Question 4
2 The engine management system of a car includes an energy-saving facility. When certain conditions are met, this facility will automatically stop the engine.
The system is to be software-based. It will include a subroutine, EnergySaver, which repeatedly takes data from sensors in the car. The subroutine decides whether or not to set the EngineStop value.
The table of identifiers used by this subroutine is shown below.
Part (a)
Complete the identifier table below by stating the data types.
Identifier Data type Description Accelerator pedal position Values: 0 to 100 in steps of 1
Accelerator .......................... Meaning: 0: none (not pressed) 100: maximum (fully pressed)
Engine temperature in °C EngineTemp .......................... (-50 to +150 stored to 1 decimal place)
Normal engine temperature in °C NormalTemp .......................... Whole number; typical value 90
Road speed of car (in km/hr) Speed .......................... Values: 0 to 200 in steps of 1
Value used to signal engine must be stopped
Possible values: EngineStop .......................... TRUE: stop engine FALSE: run engine
The condition for stopping the engine is that all three of the following are true:
- Accelerator is not pressed
- Engine temperature is normal or above
- Car speed is zero
Question 5
The initial design stage will produce a prototype of EnergySaver, with a user interface.
The structured English for this is:
1. INPUT value for accelerator pedal position 2. INPUT value for engine temperature 3. INPUT value for normal engine temperature 4. INPUT value for car speed 5. EVALUATE engine stopping condition 6. IF stopping condition satisfied SET engine stop value to TRUE 7. IF stopping condition not satisfied SET engine stop value to FALSE 8. OUTPUT message indicating engine stop value
Why this question appears here
82% 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_23.pdf
