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

Question 12 2019 · October-November · Paper 32 · 3 marks

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

Official answer for Question 12

✓
Correct order should be:

Question 5

✓
5 6
✓
3 9
✓
2 7
✓
1 8

Question 4

Question 5

✓
Download and install ‘app’ on the smartphone

Question 6

✓
Identify the problem with the code by running the ‘app’

Question 3

✓
Create a theory as to which lines/areas/blocks/sections of code are
✓
causing the unreliability

Question 9

✓
Test the theory to see if the unreliability can be replicated elsewhere

Question 2

✓
Create a plan to correct the code

Question 7

✓
Suggest corrections that could correct the unreliability

Question 1

✓
Check that the plan will solve the unreliability issue

Question 8

✓
Test the suggested corrections

Question 4

✓
Write a report on the results of the testing
✓
1 st and 2 nd correct – 1 mark
✓
3 rd and 4 th correct – 1 mark
✓
5 th and 6 th correct – 1 mark
✓
7 th and 8 th correct – 1 mark
✓
9 th correct – 1 mark.
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_w19_ms_32.pdf →

Show text version of question

Question 12

</html>

Explain, giving reasons, why no output is produced when this JavaScript is executed by a web browser as part of a web page.

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

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

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

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

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

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

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

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

[3]

Question 5

Question 6

4 A web page uses JavaScript code to display a list of food crops.

Line numbers are provided only for your convenience when referring to the code.

1 <html> 2 <body> 3 <p id="foodcrops"></p> 4 <script> 5 var crops = ["corn", "rice", "maize", "sugarcane"]; 6 var i = 0; 7 var show = ""; 8 while (crops[i]) { 9 show += crops[i] + "<br>"; 10 i++; 11 } 12 document.getElementById("foodcrops").innerHTML = show;

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

Keep practising this topic