Misc.
Variables
Flow Control
General Python
String Operations
100
This character represents the division operation.
What is the forward slash (/) ?
100
This common variable type stores letters, words, or phrases.
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 tab a line in Python, you use this/these character(s).
What is \t ?
100
This operator "glues" two strings together.
What is the concatenation (+) operator?
200
These characters are most commonly used in Python.
What are parenthesis?
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: words = "GIS Rules!" print words[4]
What is 'R'?
300
In turtle graphics, the result of... for i in range(5): left(90) forward(30) right(90) forward(30)
What is a staircase?
300
This keyword allows the user to define a function.
What is def?
300
def replace_at_index(): str = "Doggy" x = "-" str = x + str[1:5] print str replace_at_index()
What is -oggy?
300
In Python, this is the smallest element of a program that can be executed.
What is a statement?
300
Identify the letters printed from these lines of code: words = "GIS Rules!" print words[:-1]
What is 'GIS Rules'?
400
This data type stores decimals.
What are floats?
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
Python will warn on a logic error, but it will warn (and possibly error) on this type of error.
What is a syntax error?
400
This function is an else if condition.
What is elif?
500
The string escape symbol that denotes 'not equal'?
What is <>?
500
This keyword exits the function with a return value.
What is return?
500
This symbol means 'the power of'.
What is **?
500
Adding two strings together to form one string.
What is concatenating?
500
This string operator declares a single quote.
What is the character \'?