Question 6(a) 2023 · October-November · Paper 32 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 6
Part (a)
Question 4
- Loops through a block of code a number of times
- Requires (at least/usually) three expressions/statements in the syntax
- Incrementing the variable at end of iteration/loop is optional
- Loop continues until condition is met
- Loop will/may continue forever if condition not met
- If evaluate statement (which is expression 2) is omitted then a Break
Show text version of question
Question 6
Part (a)
Question 6
Loops in JavaScript repeatedly execute blocks of code.
Part (a)
Describe how a for loop works in JavaScript code.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
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
