You are on page 1of 3

King Saud University

College of Computers sciences and Information


Information Technology Department
________________________________________________________________________
Web Programming Engineering – IT 311
First Semester – 2008/2009

Quiz # 1 100

Name: ……………………………………………….
ID: …………………………… Section: ………………………….
________________________________________________________________________

Q1: Short answers [40 points]:

a) Experimental MIME types are preceded by: (2)

x-
b) The two modes a web browser works in are called: (6)
Quirks
Standard

c) 403 response means: (3)

Client error.

d) What do name servers do? Why do we need them? (8)

Name servers convert domain names into IP addresses; we need them because it is hard
on humans to memorize IP addresses.

e) What is a query string? Give an example. (8)

Query string is passing parameters to the server via the URL, when we search the web
using Google the keywords are passed in the URL.

http://www.google.com/search?q=keyowrd1

f) Given the following HTTP request: (9)


POST /path/script.cgi HTTP/1.1

Identifying its main sections:

Method: POST
Domain part of the URL: / path/script.cgi
HTTP version: HTTP/1.1

g) Name two self-closing tags. (4)

<br />
<img />
<hr />

Q2: Point out at least three XHTML validation errors in the XHTML page below
[15 points]. Each error is 5 points, total 15

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>This is my web page</title>
</head>
<body>
<h1>Welcome to <strong>my web page</h1></strong> (improper tags nesting)
<ul id = the-list> (missing quotes in the attribute value)
<li>One (missing closing tag)
<li>Two
</ul>
</body>
</html>

Q3: Assume the following snippet is embedded in a XHTML file. Draw a picture of
the table as it would rendered by a browser [45 points].

<table border="1">
<caption>Data</caption>
<tr>
<td> 87 </td>
<td colspan="2"> 73</td>
</tr>
<tr>
<td> 9 </td>
<td rowspan = “2”> 23 </td>
<td> 94 </td>
</tr>
<tr>
<td> 65 </td>
<td> 67 </td>
</tr>
</table>

Data
87 73
9 23 94
65 67

Grading scheme as follows:


Caption: 5 points
Single data cell (5): 4 points each, total 20
Merged data cells (2): 10 points each, total 20

You might also like