Basic Math
Variables, lists, and tuples
Flow Control
General Python
String Operations
100
This character denotes the division operator.
What is the forward slash (/) ?
100

What is a difference between lists and tuples?

What is lists can be changed and tuples cant be xhanged?

100

This statement checks the validity of a statement/ also compares the relation between multiple items/ variables before creating a branch?

What is an 'if' statement?

100
To comment a line in Python, you use this/these character(s).
What is a pound sign (#) ?
100

This operator combines two strings together.

What is the concatenation (+) operator?

200
These characters have the highest order of operation in Python.
What are parenthesis?
200
This variable type stores decimal numbers.
What is a float?
200

How many elif statements can you write after the initial if statement?

What is as many as you want?

200

What is used in python to store a lot of things together?

What is a list?

200
Identify the letter printed from these lines of code: words = "GIS Rules!" print words[4]
What is 'R'?
300
The result of 9 / 5
What is 1?
300

This function allows user input text to be assigned to a variable.

What is input()?

300

How long will this while loop run for?

while true:

    print("Hi")

What is forever/infinitely?

300

What is the purpose of indentation in Python?


What is to identify different blocks of code eg for loops, if statements, while loops, and more?

300

What is the output of the following code: print(len("hello world"))?

What is 11?

400
To raise the number 5 to the power of 8, you must use the power operator. This/These symbol(s) denote the power operator.
What are two asterisks (**) ?
400
Data stored as a string is surrounded by these.
What are quotes?
400
This type of operators allow you to string together tests in an 'if' statement.
What is a Boolean operator?
400

What is the error here?

print("hello world)

What is a missing quotation mark " ?

400

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

What is len()?

500
Denoted as '%', this operator returns the remainder of a division operation.
What is the modulus?
500

Given a list with 3 items, what is the lowest and highest valid index number/ positions in that list?

What are 0 and 2?

500
The following Python code loops forever. What is it missing?
n = 10
while n<100:
print n
What is a increment statement?
500

What is the purpose of the else statement in a for loop in Python?


What is to catch all other remaining cases that does fall in the if/elif statements?

500

What is the difference between a single quote and a double quote in Python strings?


What is nothing and they both do the same thing?