CS1315-Exam3-Spr-2009-Practice

CS1315-Exam3-Spr-2009-Practice - Practice problems Exam 3...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Practice problems Exam 3 CS1315 HTML & WEB PAGE PROCESSING 1. Which of the following is not a valid HTML markup tag? (a) <p> (b) <h1> (c) <end> (d) <body> 2. The page's bookmark name and also the label that is displayed within the top of a browser window (and not on the web page proper) is given by this tag pair: (a) <h1> </h1> (b) <body> </body> (c) <head> </head> (d) <title> </title> 3. An image is inserted into a web page in HTML by using the following tag: (a) <img> (b) <jpg> (c) <photo> (d) <pic> 4. We can display a degree symbol as in 98 F as you would use after a temperature in a web page by using this HTML code: (a) ° (b) &smallCircle (c) <degree> (d) \d 5. This HTML tag is used to indicate in which version of HTML you are writing your web page. (a) <p> (b) <img> (c) <a href> (d) <doctype> 6. Which Python module helps when you want to read in a web page and search it? (a) os (b) random (c) time (d) urllib 7. What is true about modules? (a) they allow us to incorporate certain capabilities only when we need them (like connecting to a web page, creating random numbers, etc) (b) they conveniently collect functions with a related purpose (c) they require an import line (d) all of the above 8. When using urllib to connect to a website from jython, which function actually creates the connection to that website, but does not literally read in the HTML content? (a) urllib.urlopen(url) (b) urllib.urlconnect(url) (c) urllib.close(url) (d) urllib.read(url) 9. Modern web pages should have all the style description and settings in what kind of file? (a) HTML (b) CSS (c) Javascript (d) Jython STRING PROCESSING 10. If the variable called word has the value "Your order is ready", what is the value of the Python expression word.find("French fries") (a) -1 (b) False (c) True (d) error 11. If the variable word has the value "Go Jackets!", what is the value of the Python expression word[3:6] (a) "Jack" (b) "Jac" (c) " Jac" (d) " Ja" 12. If the variable called word has the value "Your order is ready", what is the value of the Python expression word.find("order") (a)...
View Full Document

This note was uploaded on 02/08/2011 for the course CS 1315 taught by Professor Sweat during the Spring '08 term at Georgia Institute of Technology.

Page1 / 4

CS1315-Exam3-Spr-2009-Practice - Practice problems Exam 3...

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