Basic data types and data structures
Conditional Execution
Repetitive Execution
Operations and Functions
Miscellaneous
100

Two characteristics of variables

Name and data type


100

What is the symbol that signals the end of a conditional statement?

Colon (:)
100
Will the logic inside a while always execute?

No

100

What is the operator symbol utilized for concatenating str() variables?

Plus sign (+)

100

What is used in Python to signal the computer the existence of different blocks of code (e.g., functions, conditional, loops)?

Identation or spaces.

200

List three numeric data types

Integer, float, and complex

200

A boolean expression always resolves to ... what?

True or False

200

What is the statement that can finish the execution of a loop?

Break

200

What is the operator for modulus?

Percentage sign (%)

200

Name three functions built in Python that you have used.

Print, input, and type. 
300

Three ways you can define an str() variable in Python

single quotes, double quotes, and three double/single quotes.

300

Conditional statement type data makes your code difficult to read and can reduce the efficiency of a program logic.

Nested Conditional

300

What is a definitive loop?

A For loop. It is a loop that has a definite iteration window or length.

300

Three essential elements for defining a function

Keyword def, function name, colon. 

E.g., def function_name():

300

In the acronym PEMDAS, what does the "A" stands for?

Addition

400

Name two immutable data structures

Tuple and frozenset

400

What are the differences between a == b and a = b?

The first one executes a comparison and the second one executes a value assignment

400

When does a while loop repeat indefinitely? 

Infinite loop. The condition on the while loop is True or resolves always to True

400

What are the two types of customized functions?

Void and fruitful.

400

What does the dir() function return?

The inside structure of a variable structure

500

What do you use to change data types in Python?

Type conversion function

500

What is an alternative conditional execution? Give an example in Python

Conditional execution that has if and else statements.
500
What is the short version of the following statement in Python? a = a + 1

a += 1

500

What does the str split function do?

Splits a text variable on the given marker. If the function is not given the marker, it splits into spaces that as result should capture all words.

500
List the three error types we discussed in class

Syntax, Logic, and Semantic errors.

M
e
n
u