Basic Math
Variables
Flow Control
General Python
String Operations
100

This operator is used for exponents.

What is **?

100

This data type stores a sequence of characters.

What is a string?

100

This statement evaluates a boolean expression and runs a section of code based on if that expression is True or False.

What is an 'if' statement?

100

To comment a line in Python, you use this character.

What is a pound sign (#) ?

100

The index of "y" in the string "Python."

What is 1?

200

What 15%4 equals.

3

200
This variable type stores decimal numbers.
What is a float?
200

This flow control statement loops through a set of statements if a test statement continues to evaluate to True.

What is a while loop?

200
This commonly used Python data structure contains a collection of items referenced by a numeric index.
What is a list?
200

Identify the letter printed from these lines of code: words = "GIS Rules!" 

print (words[4])

What is 'R'?

300

What x equals in this code.

def myFunction(a, b):

     return a**b

x = myFunction(4, 2)

What is 16?

300

The name of this technique of variable naming:

myListOfBooks

What is camel casing?

300

This keyword stops your loop immediately.

What is break?

300

The data type that the input() function returns.

What is a string?

300

This operator "glues" two strings together.

What is the + sign?

400

Fill in the operator:

7 ? 2 = 3

What is //?

400

The value of x in this code.

x = True and False

What is False?

400

What is the value of 'x' after the following Python code has completed executing?

x = 1

for n in range(1,5):

     x = x*n 

print (x)

What is 24?

400

How many times this loop repeats.

for x in range(1, 10, 2):

    print("hello")

5

400

Identify the letters printed from these lines of code: 

myString = "hello".capitalize()

print(myString)

What is "Hello"?

500

Explain what would be added to this program so that it works as intended.

def addition(a, b):

   x = a+b

print(addition(1,2))

What is a return statement?

500

To determine the variable type of a variable, you would use this function.

What is type()?

500

The following Python code loops forever. What is it missing?

n = 10

while n<100:

     print(n)

What is an increment statement? (n = n + 1)

500

This built-in Python function returns the length of many objects (ex: lists and strings).

What is len()?

500

myString = "hello"

The code to set myString equal to "HELLO" using string methods.

myString = myString.upper()

M
e
n
u