Exam3Spr2009-3pm

Exam3Spr2009-3pm - CS1315 Spring 2009 April 17 3pm Name_ DO...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS1315 Spring 2009 April 17 3pm Name_______________________ 1 of 5 DO NOT WRITE IN THIS BOX. FOR GRADING USE ONLY. Page Points Earned Points Lost Graded by: Page 2 (28 pts) Page 3 (24 pts) Page 4 (28 pts) Page 5 (20 pts + 1) Total (101)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
HTML & WEB PAGE PROCESSING 1. <img src="me.jpg" width="100" height="100"> is someone's attempt at an image tag. If this is meant to be valid XHTML, what is missing? (a) depth attribute (b) alt attribute (c) closing slash / (d) 2 of the above are missing (e) none of the above are missing 2. A large heading is created by using this tag. (a) <h1> </h1> (b) <body> </body> (c) <head> </head> (d) <title> </title> 3. What the proper filename extension (ending) used for a style sheet for a website? (a) .html (b) .jss (c) .css (d) .style 4. When using urllib to connect to a website from jython, which function below actually reads in the HTML content? (a) urllib.urlget(url) (b) urllib.close(url) (c) urllib.capture(url) (d) urllib.read(url) 5. Which function should be used when your code is finished with the URL? (a) urllib.urlget(url) (b) urllib.close(url) (c) urllib.capture(url) (d) urllib.read(url) 6. javascript can be used to open up another browser window. (a) True (b) False 7. When using jython code to generate a web page, what will the following function do? def makeCode(name): return "<h1>" + name + "</h1>" (a) generate a line of HTML to display someone's name at the top of the browser window (b) generate a line of HTML to display someone's name as a heading on the web page itself (c) generate a line of HTML to display someone's name as a definition list term (d) generate a line of HTML to display someone's name as a background image
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Exam3Spr2009-3pm - CS1315 Spring 2009 April 17 3pm Name_ DO...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online