Syntax
General
Pygame
What is the Output?
Loops
100

What is the syntax error?
print("Hello World!)

The quotation mark

100

What is pygame?

A python library

100

What does RGB stand for?

Red, Green, Blue

100

print("Hello World!")

Hello World!
100

What is a loop?

Repeat some code

200
What is the syntax error?

if number > 5

     print("Yay")

The colon

200

what is len()

Get the length of a str or list

200

What function is used to refresh the screen

screen.display.flip() or screen.display.update()

200

x = 5

print(x>4)

True

200

What does range(1, 5) do?

[1, 2, 3, 4]

300
What is the syntax error?

if number > 5:

print("Yay")

Indent

300

What is the symbol for mulitplication

*

300

What are the coordinates of the top left of the screen?

(0, 0)

300

What is the output?

"3" + "6"

"36"

300

What is a loop that goes on forever?

while True:

400

What does 2**2 return

4

400

myList = [1, 2, 3, 4, 5]

myList[0] = 10

myList[-1] -= 3

What will the list look like?

[10, 2, 3, 4, 2]

400

What are all of the parameters needed to draw a rectangle

screen, color, rect

400

What is the output?

"5" * 3

"555"

400

for i in range(5):

      for j in range(6):

            print("Hooray")

How many times will "Hooray" print?

30

500

What does 2**3 return

8

500

Given the function

def Walk(distance):

     return "Walked " + distance +"km"


What does print(Walk(57)) do?

Walked 57km

500

What are all possible values this program can run at?
myClock.Tick(120)

<120

0>

500

What is the output?

myWord1 = "Banana"

myWorld2 = "Apple"

myWorld3 = "Orange"

print(myWord1[1:3] + myWord2[0:2] + myWord3)

anApOrange

500

myString = "Ok"

for i in range(3):

      myString += "lol"

myString += "Ok"


What will myString be at the end?

OklollollolOk