Programming for the web
166 questions. Open a question to solve it and check the official answer.
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 …
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…
Programming for the web · 4 marks · official answer ready
(a) Explain how if...else statements are used to do this. .........................................................................................................................…
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. ...........................................................…
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…
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…
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. ................................................................…
Programming for the web · 6 marks · official answer ready
(b) Describe the use of logical operators in conditional statements in JavaScript code. ...........................................................................................…
Programming for the web · 2 marks · official answer ready
(a) web server ................................................................................................................................................... ................…
Programming for the web · 1 mark · official answer ready
(a) Describe the purpose of strings in JavaScript. ................................................................................................................................…
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…
Programming for the web · 12 marks
(a) layer tool ................................................................................................................................................... ................…
Programming for the web · 11 marks
(b) flatten tool ................................................................................................................................................... ..............…
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…
Programming for the web · 2 marks · official answer ready
(a) web server ................................................................................................................................................... ................…
Programming for the web · 2 marks · official answer ready
(a) the == operator ................................................................................................................................................... ...........…
Programming for the web · 2 marks · official answer ready
(b) the !== operator ................................................................................................................................................... ..........…
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. ...................................................................................…
Programming for the web · 3 marks · official answer ready
(b) Explain why the use of confirm() may cause problems on web pages. .............................................................................................................…
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. ..........................................…
