Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting Out with Python Study Set 2
Quiz 10: Classes and Object-Oriented Programming
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
True/False
Object-oriented programming allows us to hide the object's data attributes from code that is outside the object.
Question 2
Multiple Choice
Which section in the UML holds the list of the class's methods?
Question 3
True/False
Procedures operate on data items that are separate from the procedures.
Question 4
True/False
The self parameter need not be named self but it is strongly recommended to do so,to conform with standard practice.
Question 5
Multiple Choice
Which method is automatically called when you pass an object as an argument to the print function?
Question 6
Multiple Choice
Which method is automatically executed when an instance of a class is created in memory?
Question 7
True/False
All class definitions are stored in the library so that they can be imported into any program.
Question 8
True/False
All instances of a class share the same values of the data attributes in the class.
Question 9
True/False
A class can be thought of as a blueprint that can be used to create an object.
Question 10
Multiple Choice
What type of method provides a safe way for code outside a class to retrieve the values of attributes,without exposing the attributes in a way that could allow them to be changed by code outside the method?