Question 3 2017 · May-June · Paper 33 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 3
Question 6
Show text version of question
Question 3
Frank is a web designer who writes his own code and uses JavaScript on his webpages. He wants to print his name on every page. He creates two versions of the code to run his JavaScript on the webpage. These versions are represented here:
Version 1:
<script language="JavaScript"> document.write ("<p>My name is <b>Frank </b> </p>"); </script>
Version 2:
<script language="JavaScript" src="FranksJavaScriptcode.js"> </script>
where the instructions for writing Frank’s name are in the file called “FranksJavaScriptcode.js”
Explain why Frank prefers to use Version 2 of the code.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
......................................................................................................................................................[6]
Question 6
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_s17_qp_33.pdf
