Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CS-101 Section 4 Midterm Exam - Prof. Michael R. Kowalczyk, Exams of Computer Science

A midterm exam for a computer science course focusing on html and css. It includes multiple choice and written answer questions. The multiple choice questions cover topics such as absolute positioning, image formats, css and xhtml fragments, link elements, and xhtml markup. The written answer questions require creating xhtml and embedded css code for a webpage with specific requirements.

Typology: Exams

2009/2010

Uploaded on 02/25/2010

koofers-user-126
koofers-user-126 🇺🇸

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS-101 Section 4 Midterm v1.1B Name:_______________________
<!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>My cool page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
</style>
</head>
<body>
</body>
</html>
pf3
pf4

Partial preview of the text

Download CS-101 Section 4 Midterm Exam - Prof. Michael R. Kowalczyk and more Exams Computer Science in PDF only on Docsity!

CS-101 Section 4 Midterm v1.1B Name:_______________________

My cool page

Multiple Choice (5 points each – 50 points total)

1) What is the primary purpose of absolute positioning?

d) Setting up a hyperlink with an absolute URL c) Changing the placement of elements within a webpage a) Fixing your website's position in a search engine's rankings b) Changing the position of pixels within an inline image

2) Which image format is not appropriate for the web?

a) .jpg d) .png c) .gif b) .bmp

3) Under the following CSS and XHTML fragments, how would the text appear?

CSS Fragment: div { color: red; } blockquote { color: blue; }

XHTML Fragment:

hello
world

d) hello is blue and world is blue a) hello is blue and world is red c) hello is red and world is red b) hello is red and world is blue

4) What is the link element best used for?

c) Indicating what external CSS file should be used to style a page d) Making a linked list data structure, particularly one with head and tail nodes b) Dynamically linking a webpage to the XHTML or CSS validator a) Creating a hyperlink to a webpage

Written Answer (50 points total)

1 (5 points) Write a line of XHTML inside the following div to make a clickable hyperlink to http://www.google.com

2 (5 points) Convert the hexadecimal number a3 to decimal.

3) (5 points) In plain English (one word), what color does #a300a3 represent?

4) (35 points) Make this webpage by filling in XHTML and embedded CSS on the first page of this exam. The GO text is a hyperlink that goes to the page blah.html, which resides in the same directory as the current .html file. The border of the box is green in color. The text on the left has no positioning applied, and assume “Page” is a major heading.