Exam 11: Classes and Object-Oriented Programming
Exam 1: Introduction to Computers and Programming35 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Simple functions34 Questions
Exam 4: Decision Structures and Boolean Logic35 Questions
Exam 5: Repetition Structures35 Questions
Exam 6: Value-Returning functions and Modules35 Questions
Exam 7: files and Exceptions35 Questions
Exam 8: Lists and Tuples35 Questions
Exam 9: More About Strings35 Questions
Exam 10: Dictionaries and Sets35 Questions
Exam 11: Classes and Object-Oriented Programming35 Questions
Exam 12: Inheritance35 Questions
Exam 13: Recursion35 Questions
Exam 14: GUI Programming35 Questions
Select questions type
A class might be thought of as a 'blueprint' that an object may be created from.
Free
(True/False)
4.8/5
(46)
Correct Answer:
True
An object's _______________ is simply the values of the object's attributes at any given moment.
Free
(Short Answer)
4.9/5
(34)
Correct Answer:
state
An object is a stand-alone program but is used by programs that need its service.
Free
(True/False)
4.9/5
(39)
Correct Answer:
False
A(n) _______________ is code that specifies the data attributes and methods for a particular type of object.
(Short Answer)
4.8/5
(36)
What is the special name given to the method that returns a string containing the object's state?
(Multiple Choice)
4.9/5
(38)
A(n) _______________ method in a class initializes an object's data attributes.
(Short Answer)
4.8/5
(35)
The _______________ attributes are created by the self parameter and they belong to a specific instance of the class.
(Short Answer)
4.8/5
(26)
In a UML diagram, the middle section holds the list of the class's methods.
(True/False)
4.9/5
(44)
Procedures operate on data items that are separate from the procedures.
(True/False)
4.8/5
(39)
_______________ programming is a method of writing software that centers on the actions that take place in a program.
(Short Answer)
4.8/5
(32)
A(n) _____ is a set of real-world objects, parties, and major events related to the problem.
(Multiple Choice)
4.8/5
(30)
When a method is called, what does Python make to reference the specific object on which the method is supposed to operate?
(Multiple Choice)
4.8/5
(43)
Which section in the UML holds the list of the class's data attributes?
(Multiple Choice)
4.8/5
(37)
Object-oriented programming allows us to hide the object's data attributes from code that is outside the object.
(True/False)
4.8/5
(29)
A class _______________ is a set of statements that define a class's methods and data attributes.
(Short Answer)
4.8/5
(30)
What is, conceptually, a self-contained unit that consists of data attributes and methods that operate on the data attributes?
(Multiple Choice)
4.7/5
(37)
Each object that is created from a class is called a(n) _______________ of the class.
(Short Answer)
4.9/5
(38)
The self parameter need not be named self, but it is strongly recommended to conform with standard practice.
(True/False)
4.8/5
(39)
Showing 1 - 20 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)