Past-paper question · 2013 October-November · Paper 23 · Q2(e)
Question 2(e) 2013 · October-November · Paper 23 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (e)
Part (e)
e.g. VB6
✓
Dim EquipID As Integer
✓
EquipID = InputBox (“Enter Equipment ID; “)
✓
Select Case EquipID
✓
Case 1 To 2000
✓
MsgBox(“Physics Lab”)
✓
Case 2001 To 4000
✓
MsgBox(“Biology Lab”)
✓
Case 4001 To 8000
✓
If EquipID Mod 10 = 0 Then
✓
Console.WriteLine(“Chemistry Lab – locked cabinet”)
✓
Else
✓
Console.WriteLine(“Chemistry Lab”)
✓
End If
✓
Case Else
✓
Console.WriteLine(“Invalid Equipment ID”)
✓
End Select
✓
–
✓
CASE/SELECT header
✓
–
✓
correct CASE labels (NO = )
✓
–
✓
dealing with sub-condition
✓
–
✓
method of finding values ending in 0
✓
–
✓
ending CASE/SELECT
[5]
Show text version of question
Question 2
Part (e)
Part (e)
In a high-level programming language write code that carries out the selections using a For
CASE/SELECT statement. Examiner's Use
Programming language
Code
[5]
Question 11
Question 3 begins on page 12.
Question 12
Topic relevance
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_w13_qp_23.pdf
