Question 4(b) 2019 · October-November · Paper 23 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (b)
Question 4
Show text version of question
Question 4
Part (b)
Question 4
The following pseudocode algorithm uses nested IF statements.
IF Response = 1 THEN X X + Y ELSE IF Response = 2 THEN X X – Y ELSE IF Response = 3 THEN X X * Y ELSE IF Response = 4 THEN X X / Y ELSE OUTPUT "No response" ENDIF ENDIF ENDIF ENDIF
Part (b)
Re-write the pseudocode algorithm using a CASE statement.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
Question 10
Why this question appears here
98% assigned-topic match · Programming › Programming concepts
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 2210_w19_qp_23.pdf
