



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These are the Exam of HTML and Web Programming which includes Measurement, Cell Phone Turned, Measurement, Overflow Property, Chop Off, User Scrolls, Margin, Padding, Content-Spacing etc.Key important points are: Dom Tree Development, Day-Time-Direction, Javascript, Internet Explorer, Apache, Web Page, Username, Exclamation, Lower Case, Interpreting
Typology: Exams
1 / 5
This page cannot be seen from the preview
Don't miss anything!




Exam ID: 3193 CS-081/Vickery Page 1 of 5
NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives aid on any exam or quiz.
INSTRUCTIONS: For each question, circle the answer of the one best choice****. All questions count equally.
Exam ID: 3193 CS-081/Vickery Page 2 of 5
How could this piece of XHTML code be made valid?
There were some mistakes the first one the second one the third one A. Nothing, it is already valid. B. There should be only three tags, not four. C. Change all the and tags to and tags, and change the current and to and . D. The and tags should be and . E. The and tags should be and .
A. The value of this img attribute is images/peaches.jpg B. The value of this img tag is Peaches Picture. C. This img attribute has a src and an alt tag. D. This img tag has two attributes, named src and alt. E. These peaches are indescribeably delicious.
This Is a Tale Of Woe Once upon a time there was a Woe. A. The title is too long. B. The first and last tags should be and . C. The and tags should be capitalized. D. The h1 element should be in the head, not the body. E. The body should come after the head, not before it.
For questions 9 through 11 , assume a Windows computer named transparentRocks.com is running a web server with the document root at C:\Apache\htdocs. (Note that this is different from the lab setup.) And assume there is a web page at C:\Apache\htdocs\MySite\index.php on that computer.
What is the actual path to the picture on the Windows computer? A. Document_Root/images/peaches.jpg B. C:\images\peaches.jpg C. C:\MySite\peaches.jpg D. C:\Apache\htdocs\MySite\images\peaches.jpg E. C:\Apache\htdocs\MySite\peaches.jpg
Exam ID: 3193 CS-081/Vickery Page 4 of 5
What does the Javascript expression window.open(“peaches.jpg”, “Peaches”) do? A. It displays a popup window with a picture in it. B. It displays a popup window with the word Peaches in it. C. It puts a picture in the window containing the script. D. It tells the server to look in the Peaches directory for a picture. E. It creates a link the user can click on in order to see a picture.
Can you be sure that the Javascript expression in the previous question will actually work? A. No, the user might have Javascript disabled. B. No, the user might have Popups blocked. C. No, the user’s browser might not support Javascript. D. All of the above E. Yes, it always works.
How to you connect a web page to a style sheet? A. Use an tag in the of the page. B. Use a tag in the of the page. C. Use a tag in the of the page. D. Use a tag in the of the page. E. Use a
Exam ID: 3193 CS-081/Vickery Page 5 of 5
What is wrong with this rule? h1 {background-color: white; color: #fff; } A. The text will be invisible because the colors are the same. B. You can’t mix color names and hexadecimal representation in the same rule. C. The name of the second property should be “foreground-color” rather than “color.” D. There should be a # before the h E. The h1 should be .
What does background-attachment: fixed; do? A. It makes the background image remain stationary even if the contents scroll. B. It makes the background of the element scroll along with the contents. C. It prevents the background of the element from blocking the foreground. D. It fixes an error in Internet Explorer. E. It sings an Opera.
Background images can only be applied to an entire web page, not to individual elements like headings or paragraphs. A. True B. False
Once a web page has been displayed, its appearance cannot be changed unless it is reloaded from the server. Circle all correct answers for this one. A. False because PHP can be used to change the appearance after the page has been displayed. B. False because Javascript can be used to change the appearance after the page has been displayed. C. False because the user might change the text size after the page has been displayed. D. False because the user might change the browser window size after the page has been displayed. E. False because the user might change the color settings on the monitor after the page has been displayed.
What is the decimal equivalent of hexadecimal 12? A. 10 B. 12 C. 14 D. 16 E. 18
What does the Javascript statement x = 3; do? A. It changes the value of a variable named x to the value 3. B. It passes the value 3 to a function named x. C. It tests whether x is equal to 3 or not. D. It tells Firebug that x and 3 are interchangeable. E. It causes the web page to have three lines more than it did before.
What can the tag be used for? A. To change a Javascript object into a variable. B. To change a Javascript object into a function. C. To call a Javascript function when an event occurs. D. To simulate tabbed browsing. E. To includes a Flash movie in a page.