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

34 mins11 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’.

Did this page help you?

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>

Did this page help you?

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.

Did this page help you?

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.

Did this page help you?

54 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.

Did this page help you?

64 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; 
}

Did this page help you?

73 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.

Did this page help you?

82 marks

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

Did this page help you?

92 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.

Did this page help you?

103 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.

Did this page help you?

113 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.

Did this page help you?