Information Technology 9626 · 21

Programming for the web

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

2023 October-November · Paper 33 · Q7(b)

Programming for the web · 1 mark · official answer ready

(b) JavaScript has its own group of reserved keywords which cannot be used as names for variables, labels or functions. Describe one other group of reserved words that should not …

2023 May-June · Paper 04 · Q1

Programming for the web · 17 marks

1 second = 1000 milliseconds. Open Animate.js in a text editor. Amend the StopMotionAnimation.html page to use the Animate.js script. Complete the Animate() function and the Timer…

2023 May-June · Paper 32 · Q1(a)

Programming for the web · 4 marks · official answer ready

(a) Explain how if...else statements are used to do this. .........................................................................................................................…

2023 May-June · Paper 32 · Q1(b)

Programming for the web · 3 marks · official answer ready

(b) The ternary operator could be used instead of if...else. Explain why the ternary operator could be used to do this. ...........................................................…

2023 February-March · Paper 04 · Q15

Programming for the web · 45 marks

15 Name the ranges as shown here. Name Range I J data C5:G14 times B5:B14 days C4:G4 Time period Select time Morning In cell J4 add a drop down list to select a time period as per…

2023 February-March · Paper 04 · Q15(c)

Programming for the web · 36 marks

15 Name the ranges as shown here. Name Range I J data C5:G14 times B5:B14 days C4:G4 Time period Select time Morning In cell J4 add a drop down list to select a time period as per…

2023 February-March · Paper 32 · Q8(a)

Programming for the web · 4 marks · official answer ready

(a) Describe the use of the switch operator, such as switch(name), in JavaScript code to select different actions. ................................................................…

2023 February-March · Paper 32 · Q8(b)

Programming for the web · 6 marks · official answer ready

(b) Describe the use of logical operators in conditional statements in JavaScript code. ...........................................................................................…

2022 October-November · Paper 31 · Q1(a)

Programming for the web · 2 marks · official answer ready

(a) web server ................................................................................................................................................... ................…

2022 October-November · Paper 32 · Q9(a)

Programming for the web · 1 mark · official answer ready

(a) Describe the purpose of strings in JavaScript. ................................................................................................................................…

2022 October-November · Paper 32 · Q9(b)

Programming for the web · 0 marks · official answer ready

(b) The programmer’s first attempt at the HTML and JavaScript code is shown in Fig. 9.1. Line numbers are shown only for your use when referring to the code. 1 2 3 4 5 This is "Ca…

2022 October-November · Paper 32 · Q15(a)

Programming for the web · 12 marks

(a) layer tool ................................................................................................................................................... ................…

2022 October-November · Paper 32 · Q15(b)

Programming for the web · 11 marks

(b) flatten tool ................................................................................................................................................... ..............…

2022 October-November · Paper 32 · Q15(c)

Programming for the web · 5 marks

(c) JavaScript programmers often wish to control when sections of their code are executed. Compare the use of setTimeout() and setInterval() for delaying the execution of JavaScri…

2022 October-November · Paper 33 · Q1(a)

Programming for the web · 2 marks · official answer ready

(a) web server ................................................................................................................................................... ................…

2022 May-June · Paper 31 · Q8(a)

Programming for the web · 2 marks · official answer ready

(a) the == operator ................................................................................................................................................... ...........…

2022 May-June · Paper 31 · Q8(b)

Programming for the web · 2 marks · official answer ready

(b) the !== operator ................................................................................................................................................... ..........…

2022 May-June · Paper 32 · Q4(a)

Programming for the web · 2 marks · official answer ready

(a) Describe the purpose of two elements of the dialog box that appears when confirm() is used. ...................................................................................…

2022 May-June · Paper 32 · Q4(b)

Programming for the web · 3 marks · official answer ready

(b) Explain why the use of confirm() may cause problems on web pages. .............................................................................................................…

2022 May-June · Paper 32 · Q4(c)

Programming for the web · 3 marks · official answer ready

(c) Explain how the result of the user interaction from confirm() is reported back to the JavaScript code for use in the remaining code. ..........................................…