Docsity

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

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.