Past-paper question · 2018 May-June · Paper 04 · Q3

Question 3 2018 · May-June · Paper 04 · 20 marks

Original past-paper question for 3
Original past-paper question for 3
Reveal official mark-scheme answer

The answer for this question is in the official mark scheme.

Show text version of question

Question 3

Open the file JSexample.html in your browser. Re-save the file in your TTS folder. You are required to display the balloon images in the cell shown.

Open the file in your text editor and insert JavaScript code to display the correct colour balloon for each button pressed.

Annotate the script with appropriate comments.

Changing the colours of the balloons

This example should show how JavaScript can change the source attribute (src) of an image. Complete the example by entering the code to display the correct colour balloon in the cell when each button is clicked.

id = balloon – placeholder

Click the colour to show the balloon in the cell

Red Green Blue

[20]

Question 5

TTS want to take the pressure off their telephone support by creating an online chat service and online help pages for the company website. Give your answers to the following questions in the Task4.rtf document.

Topic relevance

Why this question appears here

98% assigned-topic match · Programming for the web

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9626_s18_qp_04.pdf

Keep practising this topic