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

Question 7(b) 2023 · October-November · Paper 32 · 4 marks

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

Official answer for Question 7

Part (b)

✓
Four from:

Question 4

✓
•
✓
JS code enclosed in HTML for use/to run in web browser
✓
•
✓
Use of the for…in loop (in JS)
✓
•
✓
Define a variable (var/const) for storing the (iterated) properties
✓
•
✓
Specify the object to examined/iterated
✓
•
✓
Enclose the code to be interrogated within brackets/{ }
✓
•
✓
Include code to count iterations of loop/code loops through/iterates
✓
through variable array of (stored) properties
✓
•
✓
Use code to pass results/results passed to HTML for display by
✓
browser/valid example e.g. document.getElementById("xx").innerHTML =
✓
xx;
✓
•
✓
use of console.log() to pass results to browser console accessed by user.
✓
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 7

Part (b)

Question 7

In JavaScript, an object is defined as a collection of properties which can be amended or deleted.

Part (b)

Describe how the properties of an object in JavaScript can be displayed using a loop.

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

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

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

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

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

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

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

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

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

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

[4]

Question 9

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