Past-paper question · 2020 October-November · Paper 33 · Q5(a)

Question 5(a) 2020 · October-November · Paper 33 · 0 marks

Original past-paper question for 5(A)
Reveal official mark-scheme answer Official mark-scheme answer for 5(A)

Official answer for Question 5

Part (a)

✓
Six from:

Question 6

✓
Script embedded in HTML code/in body of HTML code
✓
…. between <script> </script> tags
✓
Variables x and y declared
✓
Values stored in x and y/x stores 12 and y stores 6
✓
window.alert(x + y); function adds/sums x and y to produce 18
✓
window.alert(x + y); function creates/displays an alert box (on web page)
✓
Appears as popup (window)
✓
User must press OK to clear.

Mark scheme 9626_w20_ms_33.pdf →

Show text version of question

Question 5

Part (a)

The JavaScript code shown in Fig. 5.1 adds together 12 and 6 to produce the result 18. Line numbers are shown only for reference purposes.

1 <html> 2 <head> 3 </head> 4 <body> 5 <br>

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

Keep practising this topic