Information Technology 9626 · 21

Programming for the web

166 questions. Open a question to solve it and check the official answer.

2019 October-November · Paper 4 · Q4(c)

Programming for the web · 9 marks

(c) Descriptions of each image must replace the text ‘Scroll through our breathtaking scenery’. Amend the JavaScript to display the appropriate text from the following list under …

2019 May-June · Paper 31 · Q2(a)

Programming for the web · 4 marks · official answer ready

(a) Explain, in detail, why, when using the sort() function, the list in Fig. 2.1 is sorted correctly, but the list in Fig. 2.2 is not. Before sorting After sorting Before sorting…

2019 May-June · Paper 31 · Q2(b)

Programming for the web · 2 marks · official answer ready

(b) Write a line of JavaScript code that could be used to sort the list of insects in Fig. 2.1 into descending order. .............................................................…

2019 May-June · Paper 31 · Q3

Programming for the web · 0 marks

3 An online retailer uses a simple form on its website to enable customers to contact its After Sales department by email. The form looks like this: Send an email to aftersales@my…

2019 May-June · Paper 32 · Q3

Programming for the web · 0 marks · official answer ready

3 An author has written the source code of a web page that will be used when a person applies for a driving licence. The code, shown in Fig. 3.1, is intended to check that a perso…

2019 May-June · Paper 32 · Q15(a)(i)

Programming for the web · 21 marks

(i) Draw an activity network diagram to represent the data in the table shown in Fig. 5.1. [5]

2019 May-June · Paper 32 · Q15(b)(i)

Programming for the web · 17 marks

(i) Describe the shortest route that a packet can take from router A to router H. .................................................................................................…

2019 May-June · Paper 32 · Q15(b)(ii)

Programming for the web · 18 marks

(ii) Calculate the shortest time taken for router A to receive an acknowledgement from router H confirming that H is reachable. ...................................................…

2019 May-June · Paper 32 · Q15(c)(i)

Programming for the web · 18 marks

(i) Assuming that the packets visit each router only once, calculate the longest time it could take for router A to receive an acknowledgement from router H confirming that H is r…

2019 May-June · Paper 32 · Q15(c)(ii)

Programming for the web · 17 marks

(ii) Describe the route that the packets would take. ..............................................................................................................................…

2019 May-June · Paper 32 · Q15(d)(i)

Programming for the web · 17 marks

(i) Describe where J would be placed to reduce the travel time to a minimum. ......................................................................................................…

2019 May-June · Paper 32 · Q15(d)(ii)

Programming for the web · 42 marks

(ii) Calculate the new minimum time that it would take for A to receive an acknowledgement that H was reachable. ..................................................................…

2019 May-June · Paper 32 · Q21

Programming for the web · 16 marks

21 Fig. 3.1 Testing has shown that the code contains a number of errors of different types which must be corrected before the code will perform as expected. 5 Identify the line nu…

2019 May-June · Paper 33 · Q2(a)

Programming for the web · 4 marks · official answer ready

(a) Explain, in detail, why, when using the sort() function, the list in Fig. 2.1 is sorted correctly, but the list in Fig. 2.2 is not. Before sorting After sorting Before sorting…

2019 May-June · Paper 33 · Q2(b)

Programming for the web · 2 marks · official answer ready

(b) Write a line of JavaScript code that could be used to sort the list of insects in Fig. 2.1 into descending order. .............................................................…

2019 May-June · Paper 33 · Q3

Programming for the web · 0 marks

3 An online retailer uses a simple form on its website to enable customers to contact its After Sales department by email. The form looks like this: Send an email to aftersales@my…

2019 May-June · Paper 4 · Q5

Programming for the web · 10 marks

5 Open the file Task5.html in a browser. Clicking the Start button is supposed to prompt for two numbers and display their sum in an alert. Test the web page by entering numbers w…

2019 May-June · Paper 4 · Q7

Programming for the web · 0 marks · official answer ready

7 Save your Evidence Document. 8 reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been in…

2019 February-March · Paper 04 · Q5

Programming for the web · 15 marks

5 Open the file CountDownTask.html in both a browser and a text editor. Much of the JavaScript in the CountDownTask file has been completed and there are comments included to expl…

2019 February-March · Paper 32 · Q1

Programming for the web · 0 marks

1 Errors in JavaScript code can cause the code to fail to execute when run by a web browser. The code shown is intended to display a table on a web page when run in a web browser.…