Past-paper question · 2024 May-June · Paper 31 · Q1(c)

Question 1(c) 2024 · May-June · Paper 31 · 1 mark

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 answer for Question 1

Part (c)

✓
One from:

Question 1

✓
A while loop is used when the number of iterations is not known/undetermined // a for loop is used when the number
✓
of iterations is known beforehand/already determined
✓
A while loop continues as long as a condition is true/until a condition is met // the number of iterations in a for loop is
✓
pre-determined by the iteration statement/uses a counter.
✓
9626/31
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2024
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_s24_ms_31.pdf →

Show text version of question

Question 1

Part (c)

Question 1

JavaScript uses loops to execute a block of code using Iterative methods.

Part (c)

Explain why a while loop might be used instead of a for loop in JavaScript code.

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

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

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

[1]

Question 3

Topic relevance

Why this question appears here

98% assigned-topic match · Programming for the web

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 9626_s24_qp_31.pdf

Keep practising this topic