Exam 10: Classes and Object Oriented Programming
Exam 1: Introduction to Computers and Programming36 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Decision Structures and Boolean Logic35 Questions
Exam 4: Repetition Structures34 Questions
Exam 5: Functions and Modules69 Questions
Exam 6: Files and Exceptions34 Questions
Exam 7: Lists and Tuples35 Questions
Exam 8: More About Strings35 Questions
Exam 9: Dictionaries and Sets35 Questions
Exam 10: Classes and Object Oriented Programming35 Questions
Exam 11: Inheritance35 Questions
Exam 12: Recursion35 Questions
Exam 13: GUI Programming35 Questions
Select questions type
Procedures operate on data items that are separate from the procedures.
Free
(True/False)
4.8/5
(40)
Correct Answer:
True
A(n) _______________ is code that specifies the data attributes and methods for a particular type of object.
Free
(Short Answer)
4.7/5
(25)
Correct Answer:
class
What is another name for the mutator methods?
Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
A
The self parameter need not be named self, but it is strongly recommended to conform with standard practice.
(True/False)
4.8/5
(42)
The _______________ attributes are created by the self parameter and they belong to a specific instance of the class.
(Short Answer)
4.8/5
(39)
Which section in the UML holds the list of the class's data attributes?
(Multiple Choice)
4.7/5
(39)
A mutator method has no control over the way that a class's data attributes are modified.
(True/False)
4.7/5
(35)
What is the special name given to the method that returns a string containing the object's state?
(Multiple Choice)
4.9/5
(39)
Which method is automatically executed when an instance of the class is created in memory?
(Multiple Choice)
5.0/5
(42)
What is the combining of data and code in a single object known as?
(Multiple Choice)
4.7/5
(34)
A(n) _______________ method in a class initializes an object's data attributes.
(Short Answer)
4.9/5
(46)
A method that returns a value from a class's attribute but does not change it is known as a(n) _______________ method.
(Short Answer)
4.9/5
(27)
What attributes belong to a specific instance of the class?
(Multiple Choice)
4.8/5
(42)
A class might be thought of as a 'blueprint' that an object may be created from.
(True/False)
4.8/5
(31)
Each object that is created from a class is called a(n) _______________ of the class.
(Short Answer)
4.7/5
(37)
An object is a stand-alone program but is used by programs that need its service.
(True/False)
4.9/5
(30)
An object's _______________ is simply the values of the object's attributes at any given moment.
(Short Answer)
4.9/5
(36)
In _______________ programming, the programming is centered on objects that are created from abstract data types that encapsulate data and functions together.
(Short Answer)
4.9/5
(35)
In a UML diagram, the middle section holds the list of the class's methods.
(True/False)
4.9/5
(26)
Showing 1 - 20 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)