Question 8(b) 2012 · October-November · Paper 22 · 25 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 8
Part (b)
Question 8
Question 5
(ii)
Explain why 487HIRE is an invalid car registration. For
Examiner's Use
State the line number of your code in part (e)(i) which detects that it is invalid.
Line Number
Part (f)
Eventually the software will be subject to alpha testing and beta testing.
Soni is planning each of these testing stages for this software.
Explain who will do the testing, when the testing would be carried out and what will be the purpose of each testing stage.
(i)
Alpha testing
who
when
purpose
(ii)
Beta testing
who
when
purpose
Question 6
2 Super Cars owns a rectangular car park with 25 rows; each row has 4 parking spaces. For Each car is always parked in the same space. Examiner's Use The array ParkingSpace[25,4] stores the car registrations. Soni uses a flowchart to help him design a module to populate the array with the car registrations. Input is terminated using the rogue value “00HIRE”.
Row ← 1
No Row <= 25? To rest of program
Yes
Position ← 1
No Position <= 4?
Yes
Input CarReg
No CarReg <> “00HIRE”? To rest of program
Yes
ParkingSpace[Row, Position] ← CarReg
Position ← Position + 1
Row ← Row + 1
Question 7
Part (b)
From the flowchart write the module code, using nested WHILE loops. For
Ensure that your code demonstrates good programming practice. Examiner's Use
Row ← 1
No Row <= 25? To rest of program
Yes
Position ← 1
No Position <= 4?
Yes
Input CarReg
No CarReg <> “00HIRE”? To rest of program
Yes
ParkingSpace[Row, Position] ← CarReg
Position ← Position + 1
Row ← Row + 1
Question 9
Programming language For Examiner's Use Code
Question 10
Why this question appears here
71% 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 9691_w12_qp_22.pdf
