Lists and Dictionaries
Functions
Files & Exceptions
Review
Other
100

This method can be used to place an item at a specific index in a list?

.insert()
100

This type of variable is created within a function.

Local Variable

100

This is the default mode in which a file is opened in python.

Read

100

This is the application that allows your python scripts to run.

interpreter

100

This is the process of writing information about how an application is running to a file for future reference and troubleshooting.

Logging.

200

The built-in function that returns the number of elements in a sequence.

len()

200

This refers to a piece of data that is passed INTO a function when the function is called.

Arguement

200

This is the exception that is raised when the program attempts the following code:

 y = 0
 x/y if

ZeroDivisionError

200

This type of exception is raised when a search item is not in the list being searched.

ValueError

200

This is the process of initially creating a basic version of an application, then improving it a little bit at a time.

Iterative Programming

300

This function returns the item that has the lowest value in the sequence.

min()
300

This refers to a piece of data that receives data passed into a function.

Parameter

300

This mode specifier will erase the contents of a file if it already exists and create the file if it does not already exist?

'w' / write

300

This loop structure continues until a specified condition is met.

While Loop

300

This is the low-level programming language that python (the interpreter) is mostly written in.

C (the interpreter is called CPython)

Bonus: Which other languages might you find in various core libraries?

400

This description of lists indicates that it is changeable.

mutable

400

This is the default value returned from a function when no return statement is provided.

None

400

This statement is used to build an exception handler.

try/except

400

This data type is similar to a list, but immutable.

tuple

400

This is the difference between a stack and a queue.

A stack executes the most recent instruction first, a queue operates on FIFO

500

This is the value of list after the following code executes.

list = [1, 2]
list = list * 3
[1, 2, 1, 2, 1, 2]
500

This is the result of the following code:

def main():
 print("The answer is", magic(5))
def magic(num):
 answer = num + 2 * 10
 return answer
main()

25

500

These are the possible parts of a try statement.

 try:
 except:
 else:
 finally:
500

A CPU with a clock speed of 4.3 GHz can run this many cycles per second.

4.3 billion cycles per second.

500

This fundamental concept in object-oriented programming allows different types of data to be handled by the same function.

Polymorphism.

M
e
n
u