Basics
Decision Structures
Loops
Functions
Lists and Files
100

Comments in Python begin with this symbol.

What is the # sign?

100

This statement is used to implement a decision structure in Python.

What is the if statement?

100

This type of loops repeats the code based on the Boolean value of a certain condition.

What is a condition-controlled loop?

100

A function definition begins with this keyword.

What is def?

100

The statement allows our Python program to access a data file.

What is the open statement?

200

This function reads a piece of data from the keyboard and returns the data as a string to the program.

What is the input function?

200

One or more statements must be ____ to show that it is / they are in the same logic block in a decision structure.

What is "indented"?

200

This type of loop repeats the code for a specific number of times.

What is a count-controlled loop?

200

This type of function carries out a task and then exits.

What is a void function?

200

This method reads a line of text from a text data line, including the end-of-line symbol.

What is the readline method?

300

This is the operator that raises x to the power of y.

What is the operator ** ?

300

True or False are known as _____ constants.

What are Boolean constants?

300

Given this code:

for num in range(4):

the loop will repeat this number of iterations.

What is 4 times?

300

This type of function carries out a task and returns one or more values.

What is a value-returning function?

300

If we have a numeric value we wish to write into a text file, this value should first be converted into a text or string type using this function.

What is the str( ) function?

400

This operator finds the remainder of the long hand division.

What is the % symbol?

400
The symbol to compare for equality.

What is the symbol == ?

400

Given this code:

for num in range(4):

the variable num will take on these values each iteration.

What are 0, 1, 2, 3?

400

We use this statement to include library functions if we want to access / use them in our program.

What is the import statement?

400

A list in Python is a sequenced dynamic data structure that can contain multiple data items.  A list always begins with this subscript.

What is subscript zero or index zero?

500

When we use the formatting specifier .3f to the number 76.15854, we get this value.

What is 76.159?

500

We use these symbols <, <=, >, >=, ==, != to create comparisons to construct conditions.  These symbols are known collectively as ____ operators.

What are relational operators?

500

This is the process of inspecting data that has been input into a program in order to ensure that the data is valid before it is used in subsequent steps.

What is input validation?

500

If we wish to use the function to find the square root, sqrt(x), we should import this library module.

What is the math library module?

500

What will list contain after the following:

list=[1,2]

list=list*3

list will contain [1, 2, 1, 2, 1, 2]