Math Operations
Variables
Flow Control
General Python
String Operations
100

What character denotes the division operator?

What is forward-slash(/)?

100

This common variable type stores letters, numbers, and symbols.

What is a String?

100

This often used statement checks the validity of a statement before creating a branch.

What is an 'if' statement?

100

To comment a line in Python, you use this/these character(s).

What is  hash·tag(#)?

100

This operator "concatenates" two strings together.

What is "+" operator?

200

What is the output of the following code?

a = "Hello"

b = "World"

print(len(a)*len(b))

What is 25?

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 for or 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: 

str = 'CUPBOARD', what is str[1: 3]?

What is "UP"?

300

what is the difference between "/" and "//" in Python 3.0?

What is float division versus integer division?

"/" - Float Division

"//" - Integer Division

300

This function allows the the user to be enter some information and store it to a variable.

What is input()?

300

What is the value of 'x' after the following Python code has completed executing?
x = 100
for n in range(1,5):
    x = x*n
print x

What is 2400?

300

This command is used to stop the current iteration within a loop and proceed to the next statement outside the loop?

What is break?

300

Identify the letters printed from these lines of code: words = "GIS Rules!" print words[:-1]

What is "GIS Rules"?

400

To raise the number 5 to the power of 8, you must use the power operator. This/These symbol(s) denotes the power operator.

What are double asterisks "**"?

400

Data stored as a string is surrounded by these?


What are quotes?

400

What value will the variable count hold at the end of the following code?

 
count = 5

for i in range(3):

    count = 2 * count

What is 40?

400

How many times will the letter A be printed in the following code?

for i in range(50):

  if(i%10==0):

    print("AA")

What is 10?

400

How to slice "World" from the following statement:

word = "Hello World"

What is word[6:]
500

What operator is used to return the remainder of a division operation?

What is modulus(%)?

500

To find the 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+=1

500

This built-in Python function returns the length of many objects, including Lists.

What is len()?

500

How to split the below string into a list of words, seperated by space?

words = "this is a nice jeopardy game"

What is words.split()?
M
e
n
u