Programming for the web
166 questions. Open a question to solve it and check the official answer.
Programming for the web · 0 marks
4 (a) TTS have been provided with 3 versions of online chat dialogue boxes as shown below. You are required to recommend which version to use. Evaluate each chat dialogue box and …
Programming for the web · 0 marks
(i) List the three pop-up boxes available in JavaScript.
Programming for the web · 0 marks
(ii) List the three logical operators available in JavaScript.
Programming for the web · 0 marks
(iii) List two different kinds of loops available in JavaScript. The company website will include an animation to make clients aware of the new features.
Programming for the web · 6 marks · official answer ready
6 Many computer users often confuse the terms the ‘internet’ and the ‘World Wide Web’. Explain what is meant by the term the ‘World Wide Web’. ....................................…
Programming for the web · 2 marks · official answer ready
(a) Explain the term ‘primitive’ when used in this context. .......................................................................................................................…
Programming for the web · 3 marks · official answer ready
(b) Describe three primitive data types used in JavaScript. 1 .....................................................................................................................…
Programming for the web · 4 marks · official answer ready
3 Variables are used in JavaScript to hold values. Explain how a variable is created in JavaScript code. ..........................................................................…
Programming for the web · 5 marks · official answer ready
6 Tamsin is evaluating CPU hardware for use in a new tablet computer. She uses the charts in Fig. 1 to help her make a decision between using CPU 1 or CPU 2 in the new tablet. Tim…
Programming for the web · 5 marks · official answer ready
(a) Describe what each statement in the ‘for’ loop does and the results that are output when the code is executed. ................................................................…
Programming for the web · 6 marks · official answer ready
(b) Rewrite the ‘loop’ code as a DO WHILE loop to display the same results. .......................................................................................................…
Programming for the web · 4 marks · official answer ready
(c) The JavaScript code is deemed to be ‘client-side’ code. Explain why the use of ‘client-side’ code can cause problems. .........................................................…
Programming for the web · 6 marks · official answer ready
2 The use of JavaScript within the HTML code of a web page allows the page to react to user intervention. The code below contains a function named checkreadpagefunction that will …
Programming for the web · 8 marks · official answer ready
6 Drivers who are 16 years of age or older can apply for a driving licence online. The government web page code requires applicants to enter their age and then checks if they are …
Programming for the web · 8 marks · official answer ready
4 Helen is the manager of a company which sells cars. She is going to produce a blog about the success of the company. She will use word processing, spreadsheets, databases and ot…
Programming for the web · 6 marks
11 A shop is open between 12 noon and 10 pm. While the shop is closed in the morning, a message saying “Sorry, we are closed” is displayed. After the shop has closed in the evenin…
Programming for the web · 6 marks · official answer ready
3 Frank is a web designer who writes his own code and uses JavaScript on his webpages. He wants to print his name on every page. He creates two versions of the code to run his Jav…
Programming for the web · 4 marks · official answer ready
(c) Describe how a QR code may put the user at risk from malicious code. ..........................................................................................................…
Programming for the web · 8 marks · official answer ready
9 JavaScript is a programming language used in webpages. Fig. 2 shows a table created with JavaScript in a webpage. 1 2 3 4 5 6 7 8 9 10 Fig. 2 The code that created the table is …
Programming for the web · 6 marks · official answer ready
3 Frank is a web designer who writes his own code and uses JavaScript on his webpages. He wants to print his name on every page. He creates two versions of the code to run his Jav…
