"); } else { $content_type = "text/html"; header("Content-type: text/html; charset=utf-8"); } ?> CS-081 Assignment 1

CS-081 Assignment 1

The Assignment

This assignment deals with lecture material covered in class during the first four class meetings. Review your class notes, consult chapters 1-3 of the textbook, and answer the following questions:

  1. List the names of web servers, and tell which operating systems each runs on.
  2. List the names of four web browsers, and tell which operating systems each runs on.
  3. What is an IP Address?
  4. Use the terms, “client,”, “server,” “request,” “response,” “IP address,” and “header” to tell how two computers can exchange messages using the Internet.
  5. What is a “port number,” and what is the standard port number used by web servers?
  6. Is '\' a “forward slash” or is it a “backward slash?”
  7. In the path, C:\Users\abcd1234\My Documents\My Website\flower.jpg :
    1. Is abcd1234 a directory, or is it a file?
    2. Is flower.jpg a directory, or is it a file?
  8. What kind of slashes (forward or backward) are used to separate the elements of a pathname on the Internet?
  9. What is the root of the file tree in the previous example?
  10. Select the one best letter from the following list to identify each of the items below.
    1. A start tag
    2. An end tag
    3. A self-closing tag
    4. An XHTML element
    5. The content of an element
    6. An attribute
    7. An attribute name
    8. An attribute value
    1. <p>This is a paragraph.</p>
    2. This is a Paragraph.
    3. <img src="images/flower.jpg" alt="A rose is a rose" />
    4. alt="A rose is a rose"
    5. alt
    6. "images/flower.jpg"
    7. <div>
  11. Each of the following items is not valid XHTML code. For each one, tell what is wrong and a possible way to make it valid.
    1. <p>This is a paragraph.
    2. <p class=special>This is a special paragraph</>
    3. <P>There is something wrong with this paragraph!</P>
    4. <div><p>This is the first paragraph in this div.</p> <p>This is the second one.</div></p>
    5. <img src="images/flower.jpg" alt="A rose is a rose">
  12. What is the tag name of the root element of any XHTML web page?

Submit The Assignment

Type your name and your answers into the body of an email message (no attachments, please!), and send it to me: Christopher.Vickeryatqc.cuny.edu by midnight of the due date.

The Subject line of all email you send me this semester must start, “CS-081.” Your email message for this assignment must be: “CS-081 Assignment 1.”