|
PassCall Test For
Candidates |
Definitions:
1. SGML element is a piece of text or a tag (opening or closing)
Example: the folloeing code:
<one>two<three four='five'>six seven</eight>
Contains FIVE SGML elements:
1. "<one>"
2. "two"
3. "<three four='five'>"
4. "six seven"
5. "</eight>"
2. An indented HTML code is a code that follows the following rules:
1. Every element is in a separate line
2. The lines after an opening tag <...> are indented with
one additional space
3. The line containing a closing tag </...> is indented with one
space less
4. Lines after a line that contain a text or a tag like <.../> are with the same
indentation as the line above
Example - Indentation of :
<tr><td align="middle" valign=bottom>this is<br/>another test</td><td>X</td></tr>
Is: <tr> <td align="middle" valign=bottom> this is <br/> another test </td> <td> X </td> </tr>
Question #1
How many SGML elements are in the following code?
<td bgcolor="#C0C0C0" align="left"><font face="Tahoma" size="3" color="#0000CC"><b>You are going to delete the following SITE (with all its tests) : </b></font></td>
Please save the answer in "ans1.txt"
Question #2 In the following code:
<p><font color="#0000CC"><b>Are you sure?</b></font></p></td></tr><tr><td bgcolor="#C0C0C0"> </td>
Perform the following changes one by one:
1. Move the fifth element before the first
2. Move the third element to
the end
3. Copy the last-third element (one before the one before the last)
after the first
4. Reverse the order of the fourth through the eighth
elemets
Question #3
TODO: create an indented version of the HTML code below:
<html><head><title>q3-4</title></head><body><table><tbody><tr bgcolor=lime><td valign=top>this is a test</td><td align="right">welcome<table><tr bgcolor=silver><td>a</td><td>bb</td></tr><tr bgcolor=yellow><td>ccc</td><td>dddd</td></tr></table><p>to the fantastic game</p></td></tr><tr bgcolor=gray><td align="middle" valign=bottom>this is<br/>another test</td><td><font color=white>this is<br/>not a test<br/>at all!</font></td></tr></tbody></table></body></html>
Please save the answer in "ans3.htm"
Question #4
Change the answer of question 3 to produce the following view:
Please save the answer in "ans4.htm"