Past-paper question · 2023 October-November · Paper 32 · Q6(b)

Question 6(b) 2023 · October-November · Paper 32 · 2 marks

Original past-paper question for 6(B)
Original past-paper question for 6(B)
Original past-paper question for 6(B)
Reveal official mark-scheme answer Official mark-scheme answer for 6(B)

Official answer for Question 6

Part (b)

✓
Two from:

Question 2

✓
•
✓
While loop tests condition at the beginning of the loop
✓
− whereas do while tests the condition at the end of the loop
✓
•
✓
While loop only executes the code block if condition is true
✓
− whereas do while executes the code block even if condition is
✓
false/test fails
✓
•
✓
Code block in while loop may never be executed
✓
− whereas code block in do while is always executed at least once.
✓
Cambridge International AS & A Level – Mark Scheme
✓
9626/32
✓
October/November
✓
PUBLISHED
✓
2023
✓
Question
✓
Answer
✓
Marks
✓
•

Mark scheme 9626_w23_ms_32.pdf →

Show text version of question

Question 6

Part (b)

Question 6

Loops in JavaScript repeatedly execute blocks of code.

Part (b)

Contrast the use of while and do while loops in JavaScript code.

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

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

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

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

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

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

[2]

Question 8

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

Keep practising this topic