Describe what this code will do:
RegularPolygon(150, 200, 125, 6, fill='indigo', border='black')
What are the two fonts that are used in our CMU version of Python?
arial and monospace
Before "hello" was introduced into the language, what word did people use when answering the phone?
(Hint: Pirates)
"Ahoy" (Thomas Edison coined the term "hello" by the way)
What national holiday, the unofficial end of summer, was first observed in 1894?
Labor Day
What ever-popular blonde doll did Jack Ryan create in 1958?
Barbie
Describe what this code will do:
def onMouseRelease(mouseX, mouseY):
Circle(mouseX, mouseY, 40, fill='lightSteelBlue')
When the mouse is released a circle of radius 40 with the fill shown is produced where your mouse is
What would this code do?
Label('TARGET', 200, 300, fill='red', size=65, bold=True)
Draw a label that say "TARGET" in bold red that is centered at (200, 300) with a font size of 65.
What term did Vice President Alben Barkley coin as a shorthand for his position?
"Veep"
In 1915 President Wilson designated what holiday as the second Sunday in May?
Mother's Day
Pong, introduced by Atari in 1975, was what new type of game?
Atari
Explain what this code would do.
Changes the width and height of the oval based on mouse position.
What would this code do?
def onMousePress(mouseX, mouseY):
Line(200, 300, mouseX, mouseY, fill='limeGreen', lineWidth=5)
Star(mouseX, mouseY, 20, 6, fill='hotPink', roundness=70)
Circle(mouseX, mouseY, 8, fill=gradient('orange', 'yellow'))
Draws a flower where the mouse is clicked and a stem that is attached to it starting at (200, 300)...which is where the vase was in this particular exercise.
What famous Florida region takes its name from the Spanish word cayos, meaning "small islands"?
What holiday is the number-one day for sales for fresh cut flowers?
Valentine's Day
What popular board game features Chance and Community Chess cards?
Monopoly
def onMouseMove(mouseX, mouseY):
dot1.centerX = mouseX
dot1.centerY = mouseY
dot3.centerX = mouseX
dot3.centerY = 400 - mouseY
Dot 1 follows the mouse exactly and Dot 3 reflects Dot 1 in a vertical movement.
Explain what this code would do:
belly = Circle(200, 230, 70, fill='white', border='black', borderWidth=15)
def onMousePress(mouseX, mouseY):
belly.radius += 3
if (belly.radius > 100):
hungryLabel.visible = True
When the mouse is pressed the belly gets bigger. Once the belly get's above a radius of 100, a hungry label is shown.
Texas congressman Maury Maverick coined a term to describe meaningless government chatter. The word sounds like a turkey call. What is it?
Gobbledygook
What spring holiday was originally called "Decoration Day"?
Memorial Day
Candy Land
Explain what this code will do.
if (mouseX < 200):
greenPolygon.addPoint(mouseX, mouseY)
pinkPolygon.addPoint(400 - mouseX, mouseY)
When the mouse is clicked on the left side a point gets added to the green polygon. Also
a reflecting point gets added to the pink polygon.
Describe what this code will do:
connect = Polygon(fill='orangeRed', border='black')
def onMousePress(mouseX, mouseY):
connect.addPoint(mouseX, mouseY)
When the mouse is pressed, a point is added to connect to the polygon that is already showing.
What great American author (whose real name is Samuel Clemens) took for his name a riverboat phrase meaning "water two fathoms deep"?
Mark Twain
What two states celebrate "Patriots Day"?
Maine and Massachusetts
What popular "course" game did Garnet Carter introduce in 1927 (Hint: windmills)
Mini-golf