Exam 10: Classes and Object-Oriented Programming
Exam 1: Introduction to Computers and Programming39 Questions
Exam 2: Input, Processing, and Output40 Questions
Exam 3: Decision Structures and Boolean Logic40 Questions
Exam 4: Repetition Structures41 Questions
Exam 5: Functions66 Questions
Exam 6: Files and Exceptions40 Questions
Exam 7: Lists and Tuples40 Questions
Exam 8: More About Strings37 Questions
Exam 9: Dictionaries and Sets39 Questions
Exam 10: Classes and Object-Oriented Programming38 Questions
Exam 11: Inheritance36 Questions
Exam 12: Recursion35 Questions
Exam 13: Gui Programming42 Questions
Select questions type
Which section in the UML holds the list of the class's methods?
Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
C
A mutator method has no control over the way that a class's data attributes are modified.
Free
(True/False)
4.9/5
(41)
Correct Answer:
False
The instance attributes are created by the __________ parameter and they belong to a specific instance of the class.
Free
(Short Answer)
4.7/5
(43)
Correct Answer:
self
All class definitions are stored in the library so that they can be imported into any program.
(True/False)
4.8/5
(33)
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
(37)
Which is the first line needed when creating a class named Worker?
(Multiple Choice)
4.9/5
(37)
When an object is passed as an argument,__________ is passed into the parameter variable.
(Multiple Choice)
4.8/5
(32)
A class can be thought of as a blueprint that can be used to create an object.
(True/False)
5.0/5
(36)
Each object that is created from a class is called a(n)__________ of the class.
(Short Answer)
4.9/5
(33)
Which of the following will create an object,worker_joey,of the Worker class?
(Multiple Choice)
4.9/5
(43)
Procedures operate on data items that are separate from the procedures.
(True/False)
4.8/5
(42)
___________ provides a set of standard diagrams for graphically depicting object-oriented systems.
(Short Answer)
4.9/5
(39)
Which section in the UML holds the list of the class's data attributes?
(Multiple Choice)
4.7/5
(43)
The self parameter need not be named self but it is strongly recommended to do so,to conform with standard practice.
(True/False)
4.9/5
(34)
Showing 1 - 20 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)