Past-paper question · 2015 May-June · Paper 22 · Q2(a)(iv)

Question 2(a)(iv) 2015 · May-June · Paper 22 · 1 mark

Original past-paper question for 2(A)(IV)
Original past-paper question for 2(A)(IV)
Original past-paper question for 2(A)(IV)
Reveal official mark-scheme answer Official mark-scheme answer for 2(A)(IV)Official mark-scheme answer for 2(A)(IV)

Official answer for Question 2

Part (a)

(iv)

(iv)

Logic (error) (Accept logical)

[1]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International AS/A Level – May/June 2015
✓
9691

Question 22

Mark scheme 9691_s15_ms_22.pdf →

Show text version of question

Question 2

Part (a)

(iv)

Question 2

The pseudocode below is intended to calculate the sum of a sequence of integers input.

The dummy value −1 ends the input.

DECLARE x : INTEGER DECLARE Result : INTEGER x ← 0 Result ← 0 WHILE x <> -1 INPUT x Result ← Result + x ENDWHILE OUTPUT Result

Question 3

(iv)

State the type of error.

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

[1]
Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Programming basics

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

Keep practising this topic