December
1999 QUESTION 2 Total Marks: 15 Marks |
Click here to
access other questions
SUGGESTED SOLUTIONS |
(a) |
A minimum web page must include just a few HTML tags.What are these?Explain the purpose of each. One mark for each of the following,if any reasonable explanation is included.If explanations are too brief or entirely lacking,award no more than two marks over all. <HTML>encloses
entire document;marks it as HTML. <HEAD>delimits
the document header,which contains title and other control information.
<TITLE>contains
the name of the document,for use in bookmarks,window titles,etc. <BODY>delimits the body;the main part of the document.
|
[4] |
(b) |
In practice,any useful web page will have more content than the minimum.Describe carefully three other features that may appear in a web page.These may be HTML content,or other material. There are many possible ways to answer this.Some valid answers are as follows.Up to two marks for each valid feature: Images (pictures/diagrams)Most browsers support a number of image formats (1), and the HTML tag <IMG>signals their inclusion (1). Hyperlinks Web pages provide the opportunity to jump to other pages (1),by clicking on text or images (1). Forms A page may have fields in which the user may type input (1),and then press a button to submit that input to the server (1).
|
[6] |
(c) |
Some web pages are dynamically created,in response to user requests,using the Common Gateway Interface (CGI).Explain what happens when a client asks for a URL that points to a CGI application,and describe one such application you are familiar with. The WWW client sends a request to the HTTP server,giving the name and location of the CGI application,and any necessary parameters (1). The HTTP server starts the application,passing the parameters as required (1). When the CGI application terminates,all output produced by the application is returned to the client (1). Award up to two marks for an example such as: Example is a directory service.User inputs the name of the person being sought (1).The CGI application runs a database query,and constructs an HTML page containing the rows returned (1). |
[5] |