1.3.4 Web Technologies
1.3.4 Web Technologies
Laser Tag is a game where teams of players move round an arena shooting each other with infrared guns.
Players wear sensors that keep track of how many times they have been hit by the laser. This is known as being
‘tagged’.
[4]
[2]
(ii) Explain why it is usually the case that JavaScript is interpreted rather than compiled.
[2]
All pages in the site contain the following tag in the head section.
Describe one advantage of storing the CSS in an external file rather than it being embedded within HTML files.
[3]
(b). The exam board wants to limit access to those students with a school email account (i.e. one ending .sch.uk).
When students sign up JavaScript is used to check that the email address they have entered is from a school
account. The address is checked again when it reaches the server before login details are sent to the address.
Explain why it is important to check the email address with JavaScript and again when it reaches the server.
[3]
the site's owner wants to add the photo UKstamps.jpg in place of the comment
[2]
(b). Where the comment is, the site's owner wants to add the text:
Find out more about UK stamps as a link to the UK Stamp Collectors Guild website which has the URL:
http://ukstampcollectorsguild.co.uk
[2]
[1]
[1]
(d). The site needs a light green (web colour lightGreen) background.
Explain what change needs to be made to the current page in order to do this.
[3]
Elegant Bags puts its website on its servers which are given a public IP address. It also purchases the domain
name elegantbagsonline.co.uk.
The company's handbags come in a variety of materials. It would like visitors to its website to be able to select
different materials in their browser and for the image shown to then instantly change to one of a handbag made
of the selected material.
Explain how the website developer would implement this. You are not expected to write any code.
[4]
1 [2]
2 [1]
4 [1]
Explain the difference between a HTML id attribute and a HTML class attribute.
[2]
The introduction text should be dark red (using the named colour darkRed).
[6]
(i) State the name of the language used between the script tags.
[1]
Some users have reported that there is a bug and the site says the shop is closed when they log on
between 9 and 10 in the morning.
[1]
(iii) Give one disadvantage of this code being run client side rather than server side.
[1]
Total 8
Total 6
(1 per –)
b 2 <a href="http://ukstampcollecto
rsguild.co.uk">Find out More
about UK stamps</a>
(1 per –)
(1 per –)
Total 9
4 Page will include JavaScript (which 4 Allow alternative solution using JQuery or
allows page content to be dynamic) other library / plug-ins.
(AO2.2)
Accept AJAX can be used to prevent all
(1 per -, Max 1) images having to be pre-loaded.
Plus
Credit ‘replaces / changes previous picture
When a material is selected with new picture’ with BP 3 and 4 (i.e. 2
(JavaScript) code can be marks)
executed…(AO3.1)
…the appropriate picture is Examiner's Comments
shown…(AO3.1)
…and hides the original picture. Many candidates gained credit for correctly
(AO3.1) identifying that the change of image could
(1 per -, Max 3) be implemented using Javascript (or
similar). However, as with the previous
question many candidates then found it
difficult to explain how this could be
implemented. Too many candidates
rewrote the content of the question.
Total 4
5 1. Creates / declares / defines a variable 4 For point 1 accept ‘blank value’ for empty
(called total) (1) and assigns it an empty / string
blank (string). (1)
AO3.3 For point 4 accept add instead of
2. A loop that iterates 200,000 times. (1) concatenates only if it is clear it is building
a string and not adding a numeric value.
3. - Accept ‘append’.
Total 4
Examiner’s Comments
Few candidates scored more than two
marks on this question. There was a
general lack of attention to detail resulting
in fundamental mistakes e.g. missing close
bracket }; equals (=) instead of colon (:)
when setting attributes.
(AO1.1)
Examiner’s Comments
Well attempted by most candidates with
many scoring two out of a possible three
marks. Some candidates did not gain credit
in iii) because they cited ‘...time taken to
process’ as a disadvantage.
(Max 1)
Total 11