Midterm 2090 Comp 102
Midterm 2090 Comp 102
2. A browser is an example of
A. a general-purpose application. B. a system application.
C. a specialized program. D. a utility program.
4. Which storage type holds data and programs even after electric power to the computer
system has been turned off?
A. ROM B. RAM C. Primary Memory D. Secondary Memory
6. The HTML element that identifies the main part of the document and holds the content:
A. head B. html C. body D. !DOCTYPE html
7. The HTML tag that adds a line break within the flow of the text is:
A. <b> B. <hr> C. <br> D. <pre>
8. The attribute which provides the address of the page or resource to the browser is:
A. src B. title C. href D. data
10. The element that is used to apply the background-color property for coloring the
background of the whole page is:
A. html B. p C. body D. div
Page 1
(b) Perform the following arithmetic operation in binary using signed 2’s
complement representation for negative numbers:
(-45) – (-34)
Question 2: (8 Marks)
(a) Fill in the spaces
1. The . . . . . . . . . . element is used to create a logical grouping of content or elements on
the page or to break a page into sections.
2. The . . . . . . . . . . and . . . . . . . . . . attributes are used to stretch a cell to cover several rows
and columns, respectively.
3. . . . . . . . . . . URLs are used when pointing to a document out on the web,
whereas . . . . . . . . . . URLs are used when linking to another document on your own page.
4. The spanning attributes are used in the . . . . . . . . . . or . . . . . . . . . . element.
5. The HTML markup to change the background color of a div element is. . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . ..
6. The HTML attribute and its value for opening a hyperlink in a new window are . . . . . . . . . .
. . . . . . . . . . . . . ..
(b) Each of the following markup is wrong. Explain why, and then correct it.
1) <img “birthday.jpg”>
2) <em> Congratulations! <em>
3) <a href=”file.html”>linked text</a href=”file.html”>
4) <p>This is a new paragraph<\p>
Find at least FOUR errors in this table markup:
<caption>MBC2 Schedule</caption>
<table>
Thursday Night
<tr></tr>
<th>6:30</th>
<th>8:30</th>
<th>10:30</th>
<tr>
<td> Mission Impossible - Rogue Nation </td>
<td> Mission Impossible - Fallout </td>
<td> Black Widow </td>
<tr>
<colspan="2"> Tom Cruise </colspan>
<td> Scarlett Johansson </td>
</tr>
</table>
Page 2