Past-paper question · 2017 October-November · Paper 22 · Q1(d)(ii)

Question 1(d)(ii) 2017 · October-November · Paper 22 · 5 marks

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

Official answer for Question 1

Part (d)

(ii)

✓
IF MyMark >= 75 AND MyMark <=100

Question 5

✓
THEN
✓
MyGrade ← "Distinction"
✓
ELSE
✓
IF MyMark >= 35 AND MyMark <=74
✓
THEN
✓
MyGrade ← "Pass"
✓
ELSE
✓
IF MyMark >= 0 AND MyMark <=34
✓
THEN
✓
MyGrade ← "Fail"
✓
ELSE
✓
OUTPUT "Invalid value entered"
✓
ENDIF
✓
ENDIF
✓
ENDIF
✓
One mark for each of:
✓
•
✓
One correct range test
✓
•
✓
‘IF’ equivalent (nested or not) to three CASE range tests...
✓
•
✓
... with three corresponding assignments
✓
•
✓
Equivalent of CASE OTHERWISE with corresponding OUTPUT statement
✓
•
✓
Matching (three) ENDIFs (Or one if ELSIFs used)
✓
CASE
✓
9608/22

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(a
✓
a)
✓
Mar rk as follows s:
✓
•
✓
To search for a given value in the
✓
e array
✓
•
✓
and output t the positio
✓
on in the arr ray if the se arch value is found
✓
•
✓
if search value
✓
v
✓
und then ou
✓
utput “Not fo
✓
ound”
✓
2(b
✓
b)

Question 9

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

Mark scheme 9608_w17_ms_22.pdf →

Show text version of question

Question 1

Part (d)

(ii)

The following pseudocode is an example of a CASE structure.

CASE OF MyMark 75 to 100: MyGrade "Distinction" 35 to 74: MyGrade "Pass" 0 to 34: MyGrade "Fail" OTHERWISE: OUTPUT "Invalid value entered" ENDCASE

(ii)

Use pseudocode to write an IF statement with the same functionality.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[5]

Question 5

Question 2 begins on the next page.

Question 6

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_22.pdf

Keep practising this topic