Question 12(c) 2016 · October-November · Paper 21 · 9 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 12
Part (c)
Question 12
Is TicketType = 'E' ? Complete the flowchart by putting the appropriate statement number in each flowchart symbol. Statement 5 has been done for you.
Question 3
Start
Question 5
Stop
Question 4
Part (c)
The program design is to be amended. The value input by the user for the ticket type is to be
validated. Part of the amended flowchart is shown below. Start Loop INPUT TicketType Is TicketType E or S ? No Yes Write pseudocode to use a pre-condition loop for this validation. ................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ...............................................................................................................................................[3]
Question 6
Question 2
• Channel 1 transmits a sequence of binary values from a sensor • Channel 2 transmits at regular intervals to indicate whether the sensor is switched on or off: • 0 indicates switched off • 1 indicates switched on
Pseudocode for the program is as follows: 01 BitCount 0 02 Status2 READ(2) 03 WHILE Status2 = 1 04 05 FOR ReadingCount 1 TO 6 06 ThisBit READ(1) 07 IF ThisBit = 1 08 THEN 09 BitCount BitCount + 1
Question 10
ENDIF
Question 11
IF BitCount = 5
Question 12
THEN
Why this question appears here
82% assigned-topic match · Programming › Constructs
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_w16_qp_21.pdf
