Past-paper question · 2021 October-November · Paper 33 · Q10

Question 10 2021 · October-November · Paper 33 · 6 marks

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

Official answer for Question 10

✓
Six from e.g.:

Question 6

✓
Use of ‘throw’ to trap error/exception by testing block of code
✓
Use of ‘try’ to determine program flow when error occurs/handle the
✓
error/using nested blocks of code
✓
Use of ‘catch’ to allow execution of code after an error/generate custom error
✓
message via e.g. ‘message.innerHTML’/catch error in ‘err’
✓
Use of ‘finally’ to execute code after catch/try/catch regardless of result from
✓
these
✓
Use of ‘error‘ object to provide information about the error
✓
‘Error’ returns name with message about error for use in custom error
✓
handling
✓
Example of return from ‘error’ e.g. EvalError/ RangeError/ReferenceError/
✓
SyntaxError /TypeError/URIError.
✓
9626/33
✓
Cambridge International AS & A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2021
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_w21_ms_33.pdf →

Show text version of question

Question 10

JavaScript is an interpreted language that can be used on web pages. Runtime errors, called exceptions, can occur during the execution of JavaScript code.

Explain how exceptions can be handled during the execution of JavaScript code.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[6]

Question 13

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

Keep practising this topic