Functions
Classes
Exceptions
Testing
Debug
200

A block of statements which return the specific task.

What is a function?

200

Also known as a blue print or template.

What is a class?

200

Special objects Python creates to manage errors that arise while a program is running.

What is an exception?

200

The first level of software testing where the smallest testable parts of a software are tested. This is used to validate that each unit of the software performs as designed.

What is unit testing?

200

a1 = 0.2

1b1 = 0.1

print (a1+1b1)

What is wrong variable name?

400

This character is used to make a single-line comment.

What is #?

400

Making an object from a class.

What is instantiation?

400

Method that removes any whitespace characters from the right side of a string.

What is rstrip()?

400

A set of conditions which is used to determine whether a system under test works correctly.

What is a test case?

400

universe_age = 14_000_000_000

print(universe.age)

What is dot instead of underscore?

600

A function begins with this keyword.

What is def?

600

A function that is part of a class.

What is a method?

600

When your image file is located in the same directory as your python file.

What is relative file path?

600

This statement is used to check if the result obtained is equal to the expected result.

What is assertEqual()?

600

"DAILY DOUBLE":

magicians = ['alice', 'david', 'carolina']

for magician in magicians

print(magician)

What is missing colon?

800

These objects are present in the function header.

What are function name and parameters/arguments?

800

You can use any function or class in the standard library by including a simple statement at the top of your file.

What is import?

800

Allows you to save user data so it isn't lost when your program stops running.

What is json module?

800

The two types of Unit Testing.

What are manual and automated?

800

dimensions = (200,50)

dimensions[0] = 250

What is a tuple?  Can't change value.

1000

A string used to document a Python module, class, function or method, so programmers can understand what it does without having to read the details of the implementation. Also, it is a common practice to generate online (html) documentation automatically from these.

What is a docstring?

1000

You can keep your program clean and easy to read by moving these into a module.

What is a class?

1000

Improve your code by breaking it up into a series of functions that have specific jobs.

What is refactoring?

1000

The very first Python-based automated unit test framework that was designed to work with the Python standard library.

What is unittest?

1000

with open("text_files//filename.text") as file_object


File is located on your desktop instead.

What is absolute file path?

M
e
n
u