0% found this document useful (0 votes)
41 views2 pages

Midterm 2090 Comp 102

The document is a midterm exam for a computer science course. It contains 10 multiple choice questions testing knowledge of computer hardware, operating systems, HTML, and binary arithmetic. It also contains 2 other questions - one asking to fill in blanks about HTML elements and attributes, and another asking to correct errors in HTML code examples.

Uploaded by

NRX
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views2 pages

Midterm 2090 Comp 102

The document is a midterm exam for a computer science course. It contains 10 multiple choice questions testing knowledge of computer hardware, operating systems, HTML, and binary arithmetic. It also contains 2 other questions - one asking to fill in blanks about HTML elements and attributes, and another asking to correct errors in HTML code examples.

Uploaded by

NRX
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Computer Science Division Level 1 - Spring Semester

Department of Mathematics Course: COMP 102


Faculty of Science Time allowed: 45 minutes
Date: March 31, 2022 Total: 15 Marks
Midterm Exam
Name: _____________________________ Group: ______________
Question 1: (7 Marks)
(a) Circle the correct answer
1. The programs that coordinate computer resources, provide an interface, and run
applications are known as
A. Application programs. B. Storage systems.
C. Operating systems. D. Utility programs.

2. A browser is an example of
A. a general-purpose application. B. a system application.
C. a specialized program. D. a utility program.

3. Which of the following types of computers is NOT as powerful as a supercomputer, but


is still capable of great processing speeds and data storage?
A. Mainframe. B. Midrange. C. Tablet. D. Laptop.

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

5. How many bytes can a 32-bit-word computer access at one time?


A. 1 B. 8 C. 4 D. 16

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

9. The element that is used to identify an entire description list is:


A. dt B. ul C. dl D. li

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy