Docsity

Apache Web - HTML and Web Programming - Exam, Exams of Web Programming and Technologies

Toggle sidebar
bg1
Perfect Student Second Exam December 19, 2007
Student ID: 9999 Exam: 2711 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: Circle the letter of the one best answer for each question.
1. Which of the following is a significant difference between Windows and Unix for web
developers?
A. The Apache web server works only on Windows, not on Unix.
B. Dreamweaver cannot be used to develop web sites that will be hosted on Unix.
C. File and directory names are case-sensitive on Unix, but not on Windows; you have to do a case-
sensitive link check if you develop pages on Windows but they might be copied to a Unix-hosted
server.
D. Firefox works only on Unix, not Windows.
E. Windows is just another name for Unix; there is no difference between them at all.
2. What is the purpose of the css directory of a web site?
A. It holds JavaScript programs.
B. It holds XHTML Validation code.
C. It holds background images.
D. It holds stylesheets.
E. It is needed for compatibility with Apache and PHP.
3. What is the purpose of the images directory of a web site?
A. To hold the <img> tags for the site.
B. To hold the stylesheets for images.
C. To differentiate between JPEG and PNG images.
D. To hold the imaginary components of the DOCTYPE.
E. To hold photographic and graphical images used in the site.
4. What property settings would make a word look like this?
A. text-decoration:none;
B. text-decoration:underline;
C. text-decoration:overline;
D. text-decoration:line-trough;
E. None of the above: you can’t use CSS to draw a line through a word.
5. Which of the following selectors would be used to change the appearance of a link when the user
holds the mouse over it?
A. a:hover
B. link:mouseover
C. a:link
D. link:onhover
E. point-to:a
6. What attribute is required when using <a> tags?
A. height
B. src
C. href
D. alt
E. class
7. What attributes are required when using <img> tags?
A. height, width
B. alt, src
C. href, type
D. ref, def
E. head, body
pf3
pf4
pf5

Partial preview of the text

Download Apache Web - HTML and Web Programming - Exam and more Exams Web Programming and Technologies in PDF only on Docsity!

Perfect Student Second Exam December 19, 2007

Student ID: 9999 Exam: 2711 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: Circle the letter of the one best answer for each question.

  1. Which of the following is a significant difference between Windows and Unix for web developers? A. The Apache web server works only on Windows, not on Unix. B. Dreamweaver cannot be used to develop web sites that will be hosted on Unix. C. File and directory names are case-sensitive on Unix, but not on Windows; you have to do a case- sensitive link check if you develop pages on Windows but they might be copied to a Unix-hosted server. D. Firefox works only on Unix, not Windows. E. Windows is just another name for Unix; there is no difference between them at all.
  2. What is the purpose of the css directory of a web site? A. It holds JavaScript programs. B. It holds XHTML Validation code. C. It holds background images. D. It holds stylesheets. E. It is needed for compatibility with Apache and PHP.
  3. What is the purpose of the images directory of a web site? A. To hold the tags for the site. B. To hold the stylesheets for images. C. To differentiate between JPEG and PNG images. D. To hold the imaginary components of the DOCTYPE. E. To hold photographic and graphical images used in the site.
  4. What property settings would make a word look like this? A. text-decoration:none; B. text-decoration:underline; C. text-decoration:overline; D. text-decoration:line-trough; E. None of the above: you can’t use CSS to draw a line through a word.
  5. Which of the following selectors would be used to change the appearance of a link when the user holds the mouse over it? A. a:hover B. link:mouseover C. a:link D. link:onhover E. point-to:a
  6. What attribute is required when using tags? A. height B. src C. href D. alt E. class
  7. What attributes are required when using tags? A. height, width B. alt, src C. href, type D. ref, def E. head, body

Exam ID: 2711 CS-081/Vickery Page 2 of 5

  1. What is the aspect ratio of an image? A. 3. B. Its height C. Its width D. Its height divided by its width E. Its size, in pixels
  2. What is the intrinsic size of an image? A. Its height and width, in pixels B. Its height and width, in square inches C. Its height and width, in cubic centimeters D. Its height and width, in pixels per inch E. Its height and width, in bits per pixel
  3. Which would be the best file format to use for a picture of a flower on the web? A. JPEG B. PNG C. PDF D. MP E. DOC
  4. Which would be the best file format to use for an image that consists of a color that fades to transparency? A. JPEG B. PNG C. PDF D. MP E. DOC
  5. What is the basis for your answer to Question 11 A. Able to represent millions of colors; lossy compression B. Small file size; support for transparency C. Designed for printing; designer can specify exact fonts to use D. No Digital Rights Management (DRM); good audio compression E. Widely used in office environments; can be customized using Visual Basic (VB).
  6. Assuming an XHTML element has a background image, what does this CSS property specification do? background-position:25%; A. It positions a background image so its left edge is at the point 25% from the left edge of the element. B. It positions a background image so the point 25% from its left edge is at the point 25% from the left edge of the element. C. It positions the leftmost 25% of the image outside the element. D. It positions the leftmost 25% of the element outside the image. E. It makes the background image occupy just the leftmost 25% of the element.
  7. All elements are always rendered using the block display property. A. True: there is no way to change this. B. False: they are always rendered using the inline property. C. False: they are always rendered using the span property. D. False: their display property can be changed using CSS. E. False: rendering is done by the server, not by the browser.
  8. How can you create a menu tab with rounded corners? A. Use a tag B. Use a tag C. Use a tag D. Use a background image with the shape you want. E. Use tables.

Exam ID: 2711 CS-081/Vickery Page 4 of 5

  1. What happens if you float all the items in a list to the left? A. They all end up in a single horizontal row. B. They are arranged vertically, but each one moves to the left margin. C. Any content following the list appears to the left of the list. D. The list items appear to the left of the bullets or numbers. E. Nothing happens: lists can’t be floated to the left.
  2. How can you make a box not move in the window even if the user scrolls the window up and down? A. scroll:none; B. position:relative; C. attachment:background; D. float:clear; E. position:fixed;
  3. What does clear:both do? A. It makes two elements transparent. B. It removes the background image from two elements. C. It’s supposed to be clear:broth, and tells the browser the page uses “tag soup” (quirks mode). D. It causes an element to appear below anything that has either float:left or float:right. E. Nothing, unless you put angle brackets around it: .
  4. Which of the following is not an type? A. text B. textarea C. checkbox D. radio E. submit
  5. What does produce? A. A form that requires the user to enter a password in order to view it. B. A text box that does not show what the user types into it. C. A checkbox that tells the server to look up the user’s password. D. An element that tells the browser to prompt the user to enter his/her password. E. An element that sets the user’s password to the value he/she enters.
  6. How does a label get associated with an input element? A. It has to appear next to it on the page. B. Use CSS to make them both have the same color and font-family. C. The label has to be inside the input element. D. The input element has to be inside the label element. E. The for attribute of the label has to match the id attribute of the input element.
  7. What is the difference between the GET and POST methods? A. GET is used to retrieve information from the server, and POST is used to send information to the server. B. GET is used to retrieve information from the browser, and POST is used to send information to the browser. C. GET is used to retrieve information from the server, and POST is used to send information to the browser. D. GET is used to retrieve information from the browser, and POST is used to send information to the server. E. GET sends the form data in the URL, and POST sends the form data in the body of the request message.

Exam ID: 2711 CS-081/Vickery Page 5 of 5

  1. What is the action attribute used for? A. To specify the script file that will process a form’s data. B. To tell the browser what to do when the user clicks on a checkbox or radio button. C. To tell the server how many parameters there are. D. After turning on the backlight and web cam, cause the browser to display a message informing the user that she or he should start typing. E. It provides an alternative way to specify what a page should do instead of using CSS and JavaScript.
  2. What is a radio group? A. Actors who perform on the radio. B. Musicians who perform on the radio. C. A set of items, at least one of which must be clicked on. D. A set of items, not more than one of which may be clicked on. E. A set of items that all turn on if one is clicked.
  3. How are form data sent to the form processor? A. As links to other web pages B. As name-value pairs C. Using CSS properties D. Using XHTML tags E. By pony express.
  4. Where do