Question 15(b) 2022 · October-November · Paper 32 · 11 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 15
Part (b)
Question 15
</html>
Fig. 9.1
When run in a web browser the HTML code outputs the heading in line 5 on the page. The browser executes the JavaScript code shown in lines 9 to 12.
The expected output of the code on the web page is shown in Fig. 9.2 but the actual output is shown in Fig. 9.3.
Fig. 9.2 Fig. 9.3
Question 11
Explain why the error in line 10 prevents the JavaScript code from outputting:
This is “Cambridge International IT 9626 Paper 3”
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
....................................................................................................................................................
Part (c)
JavaScript programmers often wish to control when sections of their code are executed.
Compare the use of setTimeout() and setInterval() for delaying the execution of JavaScript code.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
Please turn over for Question 10.
Question 12
10 Image editing software has tools for altering digital images.
Explain why a graphic designer might use each of the following tools to alter a digital image.
Part (b)
flatten tool
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge Local Examinations Syndicate (UCLES), which is a department of the University of Cambridge.
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_w22_qp_32.pdf
