Python Programming Fundamentals
By Devin Park · Updated May 25, 2026
Question catalog for this preview
Catalog listing of the 5 preview questions for this quiz.
Question 1
In Python, a class that cannot have instances (objects) created directly and is meant only to be subclassed is called an [[blank1]] class. It is created using the `[[blank2]] ` module, inheriting from `ABC`, and marking methods with the `@[[blank3]]` decorator.
*End of Quiz — Python Programming Fundamentals*
Question 2
Place the following steps in the correct order to read a file and print its contents in Python:
Question 3
What is the purpose of `try` / `except` blocks in Python?
Question 4
A Python function is defined using the [[blank1]] keyword, followed by the function name and parentheses. The function returns a value using the [[blank2]] keyword. If no return statement is present, the function returns [[blank3]] by default.
Question 5
Which of the following are valid ways to iterate over a dictionary `d = {"a": 1, "b": 2}` in Python? (Select ALL that apply)