CSIS-201: Web Design Exam 1 Name:__________________________________ 1. What does HTML stand for? Hypertext Markup Language 2. What does HTTP stand for? Hypertext Transfer Protocol 3. What does URL stand for? Uniform (or Universal) Resource Locator 4. What does XML stand for? Extensible Markup Language 5. What does DNS stand for? Domain Name System 6. What is the difference between HTML and XHTML? XHTML is a version of HTML that is compatible with XML. Single tags must be closed. Documents must start with special XML tags. 7. What is the difference between HTTP and HTTPS? HTTPS is a secure version of HTTP. Web pages are encrypted before they are sent over the WWW. 8. Which of the following are NOT URLs? Circle each one that is NOT a URL? They are all URLs. email and ftp are part of the WWW. Almost all the content and services on the WWW have URLs so that the world can locate them.. http://ares.cs.siena.edu http://www.siena.edu/index.asp mailto:mackin@siena.edu http://algore.blogspot.com ftp://ftp.rpi.edu/files/ http://hot.com 9. Given the following URL, http://edge.cs.mit.edu/research/dna/human.txt Which protocol is being used? http What is the name of the host/web server? edge What is the name of the file? human.txt What is the name the high-level domain? What is the folder path to the file? .edu research/dna/ Page 1 of 9 10. Given the following information about a website: What is the absolute URL to page1.html? http://www.site.com/page1.html Web server is located at http://www.site.com The root html directory of the web server has the following folder structure What is the absolute URL to page3.html? http://www.site.com/folder1/page3.html What is the absolute URL to page4.html? http://www.site.com/folder1/folder4/page4.html What is the absolute URL to page8.html? http://www.site.com/folder1/folder5/folder8/page8.html If you were editing page1.html and you wanted to add a hyperlink to page2.html, what relative URL would you use? page2.html If you were editing page1.html and you wanted to add a hyperlink to page5.html, what relative URL would you use? /folder1/folder5/page5.html If you were editing page3.html and you wanted to add a hyperlink to page9.html, what relative URL would you use? /folder5/folder7/folder8/page9.html (bonus question) If you were editing page10.html and you wanted to add a hyperlink to page9.html, what relative URL would you use? ../../folder1/folder5/folder7/folder8/page9.html Page 2 of 9 11. You have been asked to design a website for the Math Department. You must create the directory structure and the html files for storing faculty biographies. The Math Dept. requires that the following URL’s to point a biography page for each faculty member. http://www.math.siena.edu/rogers/ http://www.math.siena.edu/kenney/ http://www.math.siena.edu/bloom/ http://www.math.siena.edu/putnick/ http://www.math.siena.edu/hurley/ http://www.math.siena.edu/rousseau/ http://www.math.siena.edu/joint/matthews.html http://www.math.siena.edu/joint/nolan.html http://www.math.siena.edu/joint/egan.html http://www.math.siena.edu/adjuct/partime/baker.html http://www.math.siena.edu/adjuct/partime/miller.html http://www.math.siena.edu/adjuct/fulltime/williams.html How many folders will you need to create in the root html directory of the web server? Count only the folders that you would create in the root html directory? 8 How many additional sub-folders will need to be created? 2 How many biography pages must be named index.html so that each of the URLs above point to a biography page? 6 Finally, show the complete folder hierarchy. Indicate every folder, sub-folder and html file that you need to create so that each of the URLs above point to a biography page. root_html/ rogers/ index.html hurley/ index.html kenney/ index.html putnick/ index.html bloom/ rousseau/ index.html adjunct/ index.html partime/ baker.html baker.html joint/ fulltime/ matthews.html nolan.html egan.html williams.ht ml Page 3 of 9 13. Given an example of a communication substrate used to connect computers on the Internet? Ethernet, Token-ring, Satellite, High-frequency radio (wireless), USB 14. Fill in the blanks with the following terms (some of the term will not be used): a network, an extranet, a gateway, an inter-network, a firewall, an intranet, a router network is two or more connected computers. inter-network is two or more connected networks. intranet is a network contained within an organization. firewall is a collection of programs and hardware that filters incoming and outgoing Internet traffic extranet is network that allows access to the Internet. 15. Is the World Wide Web a subset of the Internet (circle one)? TRUE or FALSE 16. Which of the following are more closely associated with the Internet rather than the WWW? (circle all that apply) FTP TCP/IP Search Engine Web Page Email Address Packet Switching Website E-commerce Network Router TCP/IP and Packet Switching are the core characteristics of the Internet. Network Router is hardware that makes it work. 17. Which of the following are more closely associated with the WWW rather than the Internet? IP Address URL Telnet/SSH Ethernet Card Web Browser Wireless Access Point CAT-5 Cable HTML Documents DNS Server The circled items are definitely part of the WWW more than the Internet. IP Addresses is debatable. 18. What was the name or abbreviation of the Military Agency DARPA that created the original infrastructure of the Internet? 60’s 19. In what decade was the Internet born, i.e., computers became seamlessly connected across the USA? Page 4 of 9 20. In what decade did the entire Internet switch to 80’s a common standardized protocol? didn’t be come the standard until the 80’s 21. From question 20, what was the name (abbreviation) of the standardize protocol? TCP/IP invented in the 70’s 22. Who invented HTML? (circle one) (a) Vinton Cerf (d) nobody (b) Paul Barans (e) Group of 12 MIT students (c) Ada Lovelace (f) None of the above 23. Approximately how many servers/hosts are currently connected to the Internet? (a) 30,000 (d) 30,000,000 (b) 300,000 (e) 300,000,000 (c) 3,000,00 (f) 3,000,000,000 24. List 5 separate things that you would need to host your own website with your own URL, i.e., www.myname.com. 1. Computer (with static IP address) or access to one 2. Internet Access for your computer 3. Web server software 4. Registration for your domain name 5. Web pages (or software to create web pages is acceptable) 25. From question #25, which one of the things could cost the most to obtain/maintain? Explain your answer in detail. The computer could be costly, but if you had enough traffic to justify a fast server than you are probably going to need to spend even more on a good internet connection ($200/month or more). Over time, this will likely be more costly than buying, maintaining, and upgrading your server. But a computer could be the most costly expense, so it is acceptable. Also, web design software is acceptable. 26. From question #25, which one of the things would cost the least (potentially free)? Explain your answer in detail. Web server software can be downloaded for free. Creating web page may only cost you time. Page 5 of 9 27. Explain in detail how a web browser can locate and transfer a web page located on another computer on the Internet even though the IP Address of that computer is not known. The web browser sends out a request for a URL. This request is sent to the local DNS Server of your network. If the local DNS server does not know the IP Address of the URL, it forwards the request to a higher level DNS server (regional). This process continues until some DNS Server recognizes the domain of the URL. The request is eventually forwarded to the DNS Server responsible for the domain. This DNS Server can then direct it to the local DNS Server where the web server is located. This DNS Server will likely know the IP Address of the web server where the web page can be fetched. 28. If you were to register a domain name, i.e., www.yourname.com, what basic steps must be completed before your website will be “visible” at www.yourname.com? 1. Register your domain name with an authority for a top-level high-level domain (i.e., .edu, .com, .org, etc.) 2. Update your local DNS Server so that your domain name is associated with your computer’s IP Address, or contact your ISP and ask them to do it. 29. Draw a detailed picture of how a computer in RB330 is physically connected to (1) the file server, (2) the web server, (3) the other computers, and (4) the Internet. Label each server with the correct name and draw your diagram as accurately as possible. Page 6 of 9 Any picture that resembles this one is good. Roger Bacon 330 Mr. Swarner’s Office Network jacks where you can plug computers into the network Routers installed on a rack Turing Domain Controller DNS Server File Server Network Closet Ares(www) Web Server PHP Server Network cables packed together in bundles; inside the ceiling and walls Other Routers throughout campus Internet Internet Connection Time Warner Business Class Roger Bacon 306 Campus DNS Server/Network Bridge Somewhere in Hines Hall Page 7 of 9 30. Explain a logical reason why it takes 15 hops to connect to a web server at RPI from Siena (five miles apart), whereas it takes only 12 hops to connect to a web server at Stanford, which is thousands of miles away. Because RPI and Siena have completely different Internet Service Providers, whose networks are not locally connected. Or, because Stanford and Siena use Internet Service Providers, whose networks are more directly connected. 31. Even though most people use search engines to find content on the WWW, why is it still important for the WWW to include hubs. Recall that a hub is a website devoted to a particular topic that includes links to other related websites. In other words, why do we still need hubs even though most Internet users rarely use them? Because Search Engines use hubs to identify and classify websites. Without hubs Search Engines would not work so good. In fact, Search Engines are failing because web designers are not creating hubs as they did in the past. 32. Given the following html code: <html> <head><title>44</title></head> <table> <tr><td>11</td><td>12</td> <td>13</td></tr> <tr><td>21</td><td>22</td><td>23</td></tr> <tr><td>31</td><td>32</td><td>33</td></tr> <tr><td>41</td><td>42</td><td>43</td></tr> </table> </html> How many rows are in the table above? 4 How many columns are in the table above? 3 Where will the number 44 be displayed? (circle one) (a) At the top of the html page (b) At the bottom right of the table (c) In the title bar of the web browser (d) It will not be displayed at all anywhere What essential html tag is missing from the code above? <body> Page 8 of 9 33. What defines a webpage? (circle one) (a) It’s the contents of a single HTML document. (b) It’s what you see when you open an HTML document in a web browser. (c) It’s the content of a collection of HTML documents available at a given URL. (d) It’s all of the content that could be displayed or delivered when you open a URL in a web browser. 34. What defines a website? (circle one) (a) It’s a collection of connected web pages on a given web server. (b) It’s a collection of web pages at a given base URL, i.e., http://www.siena.edu/ (c) It’s a collection of connected web pages devoted to a particular topic created by a certain author or group of authors. (d) It’s a collection of web pages that can be accessed by a given homepage. 35. List three different things that typically appear in the head tag of an html document? 1. <title> tag 2. <meta> tag with information such as author, subject, keywords 3. JavaScript code 36. Given the following html code <a href = “../mypage.html”>My</a> favorite news channels are cnn <a href = “http://www.cnn.com”>and</a> <a href = “http://www.foxnews.com”>fox</a>. For each hyperlink, what is the URL, what specific text activates the link, and is the hyperlink absolute or relative. 1 ../mypage.html Text My Check one Absolute Relative X 2 http://www.cnn.com and X 3 http://www.foxnews.com fox X URL Page 9 of 9