CS-101 Section 4 Midterm Practice: Web Development - Prof. Michael R. Kowalczyk, Exams of Computer Science

A midterm practice exam for a cs-101 course focusing on web development. It includes multiple choice and written answer questions covering topics such as html, css, and xhtml. Questions cover topics like identifying causes for webpage changes not appearing, validating embedded css, using h1-h6 elements, and more.

Typology: Exams

Pre 2010

Uploaded on 02/24/2010

koofers-user-r7o
koofers-user-r7o 🇺🇸

1

(1)

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS-101 Section 4 Midterm practice 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 Practice: Web Development - Prof. Michael R. Kowalczyk and more Exams Computer Science in PDF only on Docsity!

CS-101 Section 4 Midterm practice Name:______________________

My cool page

Multiple Choice (5 points each – 50 points total)

1) Suppose you made changes to a web page but the change doesn't show up in the browser. What is a possible cause?

a) The browser is showing a cached version b) You forgot to save the changes c) You changed your local copy but the browser's URL is set to the online version d) Any of the above

2) How do you validate embedded CSS?

a) Use the CSS validator on the .css file containing the embedded CSS b) Use the CSS validator on the .html file containing the embedded CSS c) Use the HTML validator on the .css file containing the embedded CSS d) Use the HTML validator on the .html file containing the embedded CSS

3) Which is the most appropriate use of h1 through h6?

a) Defining the hierarchical structure of different sections of a webpage, as in an outline b) It is the best way to make text different sizes c) There really is no practical use for h1 through h d) The h1 is good for headings, but none of the others should ever be used

4) What is the span element best used for?

a) Applying a CSS rule to a particular span of text b) Changing the space between each line of text in a paragraph c) Eliminating the possibility of receiving spam for email addresses listed on a webpage d) Measuring the span of a webpage

5) What is wrong with the following table?

Car Efficiency

Corolla 43 MPG

Echo 48 MPG

a) It should not have the tr elements in this case b) The td and th elements should be switched c) It is missing a tr element d) There is nothing wrong with this table

Written Answer (50 points total)

1) (5 points) Write a line of XHTML inside the following div to display the image "funny.jpg" which is in the images subdirectory.

2) (5 points) Convert the decimal number 65 to hexadecimal

3) (5 points) Give a hexadecimal representation for dark blue-green

4) (35 points) Make this webpage by filling in XHTML and embedded CSS on the first page of this exam. The this site text is a hyperlink that goes to http://cs.nmu.edu. The border of the box at the left is yellow in color, and its background is gray. Assume “This is my page” is a major heading.