Fundamentals
Control Flow
Functions
Classes and Objects
Miscellaneous
100

What symbol is used for comments in Python?

#

100

What is the name of the Python statement that is used to execute a block of code only when a given condition is met?

if

100

What is the name of the built-in Python function used to display output?

print()

100

What is a class?

A description of an object.

100

What is the result of the following code?

print("5 + 3")

5 + 3

200

What is the name of the data type in Python that is an ordered collection of values, enclosed in square brackets and separated by commas?

list

200

What is the name of the Python statement that is used to execute a block of code repeatedly as long as a given condition is met?

while

200

What is the keyword used for declaring a function in Python?

def

200

What is the name of the special method in Python classes that is automatically called when an object is created?

Constructer Method

or 

__init__()

200

What symbol will multiply 2 numbers in Python?

* or asterisk

300

What is the name of the data type that represents a Boolean value (True or False) in Python?

bool or Boolean

300

What is the name of the Python statement that is used to exit a loop prematurely, regardless of the iteration condition?

break

300

What is the name of the Python keyword used to return a value from a function?

return

300

When an object is created, you are creating a/an _________ of the class.

instance

300

What are the 2 numeric types in Python?

integer

float

400

What Python operator is used to check the equality of 2 strings?

==

400

What is the name of the Python keyword used to specify a default case in a control flow statement, executed when no other case matches?

else

400

What is the name of the value that a function returns when no return statement is specified?

None

400

How do you create an instance or an object of a class in Python?

Call class name followed by parentheses. 

400

What is an IDE? What IDE did we always use?

Integrated Development Environment. 

Idle.

500

What is the name of the Python keyword used to use external modules and files?  

import

500

What is the primary difference between a "for" loop and a "while" loop in Python?

A For loop is used when the number of iterations is predetermined. In contrast, a While loop operates without prior knowledge of iterations.

500

What is a function called when it is part of a class?

Method

500

What is the purpose of the __init__ method in Python classes?

Initialize object's attributes.

500

What is the name of the data type in Python that is an unordered collection of key-value pairs, enclosed in curly braces?

Dictionary

M
e
n
u