Past-paper question · 2017 October-November · Paper 21 · Q1(c)

Question 1(c) 2017 · October-November · Paper 21 · 4 marks

Original past-paper question for 1(C)
Original past-paper question for 1(C)
Reveal official mark-scheme answer Official mark-scheme answer for 1(C)Official mark-scheme answer for 1(C)Official mark-scheme answer for 1(C)

Official answer for Question 1

Part (c)

✓
CASE OF MyVar

Question 4

✓
1: CALL Proc1()
✓
2: CALL Proc2()
✓
3: CALL Proc3()
✓
OTHERWISE OUTPUT "Error"
✓
ENDCASE
✓
One mark for:
✓
•
✓
First line and ENDCASE
✓
•
✓
All clauses for 1, 2 and 3
✓
•
✓
'OTHERWISE' clause
✓
•
✓
OUTPUT statement
✓
9608/21

Question 9

✓
Cambridg
✓
ge Internatio
✓
onal AS/A Level
✓
L
  • Mar k Scheme
✓
Octobe
✓
er/Novembe
✓
er
✓
P
✓
PUBLISHED
✓
D
✓
201

Question 17

✓
Ques
✓
stion
✓
Answer r
✓
M
✓
Marks
✓
1( (d)
✓
Abi lity to recog
✓
gnise:
✓
M 2
  • selection statement
  • iteration statement
✓
s
  • assignme
✓
ent statemen
✓
nts
  • data decla
✓
arations / st tructures / d
✓
data types / use of vari ables or obj
✓
bjects
  • modular structure
✓
s
✓
/ fu
✓
unctions / p
✓
procedures / subroutine
✓
es
  • subroutine
✓
e paramete
✓
ers
  • Specific ty ypes of stat tement, e.g. . Input, Out put, File op erations
  • Code form
✓
mat
  • Operators s
✓
Ma rk as follow
✓
ws:
✓
Any y two from above,
✓
a
✓
or va
✓
alid alternat tive
✓
Acc cept by exa mple
✓
Ques
✓
stion
✓
Answer r
✓
M
✓
Marks
✓
2( (a)

Question 3

✓
One
✓
e mark for correct
✓
c
✓
Num
✓
mber column
✓
n
✓
One
✓
e mark for correct
✓
c
✓
Rem
✓
mainder colu
✓
umn
✓
One
✓
e mark for correct
✓
c
✓
Outp
✓
put
✓
2( (b)
✓
Ma rk as follow
✓
ws:

Question 3

  • For a (give
✓
en) range of
✓
o values
  • Counts the
✓
e number of
✓
o times one
✓
e number (n umerator) i s an exact d divisor of th
✓
he
✓
other
  • Outputs e ach numera
✓
ator (only)
  • Outputs th
✓
he count
✓
Acc cept by exa mple
✓
No mark for:
  • ...calculate
✓
e the remai nder
  • ...add one
✓
e to Numbe rFound
✓
9608/21

Question 9

✓
Cambridg
✓
ge Internatio
✓
onal AS/A Level
✓
L
  • Mar k Scheme
✓
Octobe
✓
er/Novembe
✓
er
✓
P
✓
PUBLISHED
✓
D
✓
201

Question 17

✓
Ques
✓
stion
✓
Answer r
✓
M
✓
Marks
✓
2( (c)

Question 10

✓
9608/21
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2017
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w17_ms_21.pdf →

Show text version of question

Question 1

Part (c)

Part (c)

The following pseudocode is an example of nested IF statements.

IF MyVar = 1 THEN CALL Proc1() ELSE IF MyVar = 2 THEN CALL Proc2() ELSE IF MyVar = 3 THEN CALL Proc3() ELSE OUTPUT "Error" ENDIF ENDIF ENDIF

Use pseudocode to write a CASE statement with the same functionality.

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

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

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

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

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

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

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

...............................................................................................................................................[4]

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 9608_w17_qp_21.pdf

Keep practising this topic