Past-paper question · 2025 October-November · Paper 33 · Q7

Question 7 2025 · October-November · Paper 33 · 0 marks

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

Official answer for Question 7

✓
Six from:

Question 6

  • JS code embedded within HTML
✓
− inside < / script> tags
  • ALP3 is given id in line 4
  • Array qp holds the text for display / ["A Level", "IT", "9626", "Paper", 3]
  • Variable paper declared / initialised to empty / blank / null / zero
  • for in used to loop / iterate through array
  • Variable x used to count / hold array items during loop iterations
  • Variable paper used to construct / hold array item plus line break
✓
− BR used to force line break on web page
  • Contents of variable paper written / passed back to HTML…
✓
using document.getElementById("ALP3").innerHTML =
✓
paper
✓
− HTML element with id ALP3
✓
− initiated before script as blank
✓
− JS changes its content to contents of variable paper
✓
− displayed on web page
  • Iterates through array until no more items left
✓
− JS script / code terminates / stops
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_w25_ms_33.pdf →

Show text version of question

Question 7

The JavaScript code in Fig. 7.1 is executed when it is loaded into a web browser.

The line numbers are for reference only.

1 <html> 2 <body>

Question 3

4 <p id="ALP3"></p>

Question 5

6 <script>

Question 7

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

Keep practising this topic