Python Basics: Chapter 10 – Object-Oriented Programming Quiz

Interactive Quiz ⋅ 9 Questions
By David Amos

Object-oriented Programming, or OOP for short, is a programming paradigm which provides a means of structuring programs so that properties and behaviors are bundled into individual objects. You have already encountered several objects. Strings, lists, tuples, dictionaries and even numbers in Python are all objects.

An object could also represent a person with a properties such as age and address, and with behaviors like walking, talking, breathing, and running. Another object may represent an email with properties like recipient list, subject, and body, and behaviors like adding attachments and sending.

Put another way, object-oriented programming is an approach for modeling concrete, real-world things, such as a player in a game, as well as relations between things, like companies and employees, students and teachers, etc. OOP models real-world entities as software objects, which have some data associated with them and can perform certain functions.

In this chapter you learned how to declare your own custom objects in Python and then use those objects to structure your program according to the principles of object-oriented programming.

The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!