Web Technologies (OCR A Level Computer Science): Exam Questions

Exam code: H446

46 mins12 questions
11 mark

A website sells tickets for sporting events. The website uses HTML, CSS and JavaScript.

Users are able to search for and find the ticket website using a search engine. Search engines can use indexing and ranking.

A search engine can use the PageRank algorithm to determine a website’s ranking. The PageRank algorithm utilises a damping factor.

State what is meant by the term ‘damping factor’.

25 marks

The robot provides a web-based interface for users. The home screen webpage for this interface is shown in Fig. 4.

Robot interface screen showing three directives: serve trust, protect data, uphold standards. Includes links for updates and login with a password field.

Complete this HTML code that will display the webpage shown in Fig. 4.

<html>

   <head>

       <title>Robot User Interface</title>

   </head>

   <body>

       <h1>Robot prime directives</h1>

       ………………………………………

       <li>Serve the company trust</li>

       <li>Protect data</li>

       <li>Uphold standards</li>

       ………………………………………

   <a ………………………… = "updates.html">Updates</a>

   <p>……………………………………</p>

   <form action="dologin.php">

        Password

        <input type = "……………………………" name="pw">

        <input type = "……………………………">

        </form>

        </body>

 </html>
33 marks

The robot provides a web-based interface for users. The home screen webpage for this interface is shown in Fig. 4.

Robot interface screen showing three directives: serve trust, protect data, uphold standards. Includes links for updates and login with a password field.

Write CSS code that could be used in an external stylesheet to format all text using the tag <h1> as white with a red background.

44 marks

A website sells tickets for sporting events. The website uses HTML, CSS and JavaScript

Users are able to search for and find the ticket website using a search engine. Search engines can use indexing and ranking.

Describe how a website is indexed by a search engine.

54 marks

A website sells tickets for sporting events. The website uses HTML, CSS and JavaScript.

The website charges a booking fee of £2.99 on each ticket sold. In addition, if the tickets are purchased from outside of the UK, £4.99 is added to the booking fee. The booking fee is calculated using a JavaScript function named bookingfee().

Complete the definition of the bookingfee() function below.

function bookingfee(numtickets, country) {
    var nonUKprice = 4.99; 
    var perTicketPrice = ………………………………………; 
    var total = 0; 
    if (country!="UK") { 
        total = total + ………………………………………; 
     } 
     total = total + (……………………………………… * perTicketPrice); 
     ……………………………………… total; 
}
63 marks

The JavaScript function in Question 6 is used to show users the booking fee. When users click to buy the tickets, the booking fee is calculated again on the server.

Explain why server side processing is used to recalculate the booking fee.

72 marks

Explain one advantage of client side processing to either the customer buying the tickets, or to company who own the website.

82 marks

Users are able to search for and find the ticket website using a search engine. Search engines can use indexing and ranking.

A search engine can use the PageRank algorithm to determine a website’s ranking. The PageRank algorithm utilises a damping factor.

Give two other factors that affect the output value given by the PageRank algorithm for a website.

93 marks

A robot provides a web-based interface for users. The home screen webpage for this interface is shown in Fig. 4.

Robot User Interface displaying prime directives: serve company trust, protect data, uphold standards. Includes links for updates, login, and password submission.
Fig.4

Write CSS code that could be used in an external stylesheet to format all text using the tag as white with a red background.

103 marks

A website sells tickets for sporting events. The website uses HTML, CSS and JavaScript.

One page in the website contains a hyperlink on an image. When the image stored as “ticket.png” is clicked, the user is hyperlinked to the page stored as “booking.htm”.

Write the HTML code to implement this hyperlink.

1112 marks

A company wants more customers to be able to find their website on the internet.

Discuss why search engine indexing and page ranking will be important in achieving this.

You should include the following in your answer:

  • what search engine indexing means and what information is collected

  • what PageRank means and possible factors that can affect a PageRank score of a website

  • possible ways for the company to improve the PageRank score of pages on its website.

124 marks

The company would like to start selling their products on their website. They will use both client side and server side processing to do this.

Tick (✓) one box on each row to identify whether each task would be best performed on the client side or the server side.

Task

Client Side

Server Side

Loading the website HTML code

Applying CSS styles to a website

Running JavaScript code to check that the customer surname has been entered on the order form

Running queries on the database to check if an item is available in stock