Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.


This page removed for FERPA compliance
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Fall 2005 Final Exam Review

The review below is not to be considered a practice test, but a guide/reminder for what sort of subjects will appear on the final. You should study the homeworks, previous midterms, lecture slides, the book, etc. too. Anything we've done this semester is fair game.

...and once again, blue questions are significantly harder. If you can solve those, then you know you're in good shape. Just remember that they're only there to pick your brain and re-enforce what you already know. Don't consider them mandatory to know for the final.

Each question here has a corresponding Q/A page that you may post questions to. Feel free to answer other students' questions if you know the answer. Don't expect an answer from TA's instantaneously, especially if you post in the wee hours of the morning. We have finals too. In addition to these questions, you may find the Spring 2005 Final Exam Review helpful also, but don't bother posting to the question pages on there, since those things are ancient. Hit up a TA on AIM/e-mail/office-hours instead.


Since the question pages will still be active after the Tuesday people take their exam and more information would be given out, I went ahead and summed up everything that the questions pages were saying and/or were about to say just to be fair to everyone. Fall 2005 Exam Review Answers However if you still want further clarification, feel free to post on the question pages.
-Student1680


Conceptual Questions about Jython You Really Ought to Know


Fall 2005 Final Review - Jython Stuff







If you forget everything else we've taught you, you should at least know...


Fall 2005 Final Review - If you forget everything else...







Other short answer questions that didn't seem to fit anywhere else...


Student3503







Pixel iterating


Fall 2005 Final Review - Pixel Iterating







Flipping


Fall 2005 Final Review - Flipping pictures







My compliments to the chef

You are given a file that represents daily specials at a restaurant. The file's format is dollar sign, number, slash, menu item, slash, days of the week, slash, special notes, and an exclamation mark. An excerpt from the file might look like this:

$12.50/Baked Salmon/Monday, WeREMOVEDsday/includes dessert!
$7.90/Garden Burger/Monday, Tuesday, WeREMOVEDsday, Thursday/includes soda!
$5.50/Grilled Cheese/Thursday, Friday/includes chips!


Write a function called specials that will take a day (in the form of a string) as a parameter. If that day is found on a line in the daily specials file, print the entire line. You only have to display one matching line, even if there are several. If the day is not found, print "No specials today."

As an example, if you were to call specials("Friday") using the example above, you should see:
$5.50/Grilled Cheese/Thursday, Friday/includes chips!

Fall 2005 Final Review - My compliments to the chef







The New York Times

Uploaded Image: fall2005crossword.png

Across
4. The X in XML stands for this.
7. Typically this is the first part of an HTML file that tells you the version or type of HTML encoding of the file.
10. Although HTML is a language, it is not a __________ language.
11. #0000FF is a color code for ______.

Not Across
1. The term "Picture Element" is often abbreviated as _____.
2. When discussing Object Oriented programming, objects that have been created are known as an _________ of a class.
3. ________ is often used for encoding colors for use in HTML.
5. This is the most fundamental unit of memory. It can either be a 0 or a 1.
6. When writing HTML, if you want to skip to the next line you usually either use a break tag or a _________ tag.
8. To access web pages from within your JES code, you normally would import that ________ module.
9. The M in HTML and XML stands for ________.

Student3507







Movies


Fall 2005 Final Review - Movies







HTML meets the Back Cover of Highlights Magazine


How many errors are in this chunk of code?

<html>

<head>
<h1>My webpage</h1>
</head>

<body>
<title>Welcome</title>

<image src=me.jpg>

<p>This is my first paragraph
<p>This is my second paragraph

Thank you for visiting

<a href="OMGhelpMe@html.com">Send me comments!</a>

</html>

How would you fix this?

Fall 2005 Final Review - HTML ICU







Writing HTML from Scratch


Place appropriate HTML tags on the following text to generate a similar to what is shown below.

My Webpage

Welcome to My REMOVED!
It's all about me

This is a page about how I love JES!
click on the picture to know even MORE about JES!



Click to enlarge


Fall 2005 Final Review - Writing HTML







import os Magic



>>> yeehaw(r"C:\documents and settings\Blake O'Hare\Desktop")
Pictures: 2
Text Documents: 9375390
Python Files: 20035



Fall 2005 Final Review - import os Magic







Phone Book++

Consider the following phone book stored in a file called "talkybanana.txt" in your JES folder:

Blake O'Hare/404-314-1592
NASA/713-483-3111
REMOVED House/202-456-1414
Pope/011-39-6-6982
Kremlin/0107-095-295-9051


Fall 2005 Final Review - Only 1 Phone Number is Fake







Homework 5 Jr.

<html>

<head>
<title>The News</title>
</head>

<body>

<h1>Today's Headlines</h2>

<ul>
<li>Scientists link donuts with obesity.</li>
<li>GT students are the happiest according to Princeton Review.</li>
<li>Microsoft goes open source.</li>
</ul>

</body>
</html>

Suppose this page could be found at http://www.blake.com/news.html. Write a function that goes to this page and returns a list of all the headlines.

Student3513







BEEP BEEP


Fall 2005 Final Review - BEEP BEEP







Recursion

Using recursion, write a function for each of these...


Fall 2005 Final Review - Recursion







The Internet


Briefly discuss the following...

What is a...

Fall 2005 Final Review - t3h Intarw3b!!!1