Past-paper question · 2019 October-November · Paper 32 · Q3




Question 3 2019 · October-November · Paper 32 · 0 marks
Reveal official mark-scheme answer




Official answer for Question 3
✓
Three from:
Question 3
✓
Line 7 contains a syntax error
✓
”Peter” is enclosed in quotes that are the same as the quotes for the string
✓
(Strings in JavaScript can contain quotes but) the quotes in a string must not
✓
be the same as the enclosing quotes
✓
Any syntax error causes the script to fail/not run
✓
No error message is produced.
✓
Question
✓
Answer
✓
Marks
Show text version of question
Question 3
JavaScript uses strings to store data.
This script is intended to display the contents of three variables on a web page.
Line numbers are provided only for your convenience when referring to the code.
1 <html> 2 <body>
Question 3
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_w19_qp_32.pdf
