Programming for the web
166 questions. Open a question to solve it and check the official answer.
Programming for the web · 6 marks · official answer ready
2 Web pages can be made more attractive and easier to read by using colours. All major web browsers support the use of HSL to specify the colours used in web pages. Explain how HS…
Programming for the web · 6 marks · official answer ready
(a) Describe how white box testing is used to test the code. ......................................................................................................................…
Programming for the web · 1 mark · official answer ready
(b) Describe one way that JavaScript code can add interactivity to a web page. ....................................................................................................…
Programming for the web · 5 marks · official answer ready
(c) HTML events occur when users interact with a web page. Describe how JavaScript code can be made to react to an HTML event. ....................................................…
Programming for the web · 2 marks · official answer ready
(a) Describe what is meant by an Iterative method. ................................................................................................................................…
Programming for the web · 2 marks · official answer ready
(b) Explain how a do/while loop differs from a while loop. ........................................................................................................................…
Programming for the web · 1 mark · official answer ready
(c) Explain why a while loop might be used instead of a for loop in JavaScript code. ..............................................................................................…
Programming for the web · 1 mark · official answer ready
(i) operand ........................................................................................................................................... ...........................…
Programming for the web · 1 mark · official answer ready
(ii) operator precedence ........................................................................................................................................... ..............…
Programming for the web · 1 mark · official answer ready
(iii) assignment operator ........................................................................................................................................... .............…
Programming for the web · 1 mark · official answer ready
(iv) literals ........................................................................................................................................... .........................…
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 · 4 marks · official answer ready
(a) Describe how a for loop works in JavaScript code. .............................................................................................................................…
Programming for the web · 2 marks · official answer ready
(b) Contrast the use of while and do while loops in JavaScript code. ..............................................................................................................…
Programming for the web · 1 mark · official answer ready
(a) Describe how an object may be given a new property. ...........................................................................................................................…
Programming for the web · 4 marks · official answer ready
(b) Describe how the properties of an object in JavaScript can be displayed using a loop. .........................................................................................…
Programming for the web · 1 mark · official answer ready
(i) operand ........................................................................................................................................... ...........................…
Programming for the web · 1 mark · official answer ready
(ii) operator precedence ........................................................................................................................................... ..............…
Programming for the web · 1 mark · official answer ready
(iii) assignment operator ........................................................................................................................................... .............…
Programming for the web · 1 mark · official answer ready
(iv) literals ........................................................................................................................................... .........................…
