Exam 10: Object-Oriented Programming
Exam 1: Introduction102 Questions
Exam 2: Data and Expressions71 Questions
Exam 3: Control Structures129 Questions
Exam 4: Lists85 Questions
Exam 5: Functions83 Questions
Exam 6: Objects and Their Use54 Questions
Exam 7: Modular Design62 Questions
Exam 8: Text Files58 Questions
Exam 9: Dictionaries and Sets33 Questions
Exam 10: Object-Oriented Programming81 Questions
Exam 11: Recursion27 Questions
Select questions type
Match the descriptions with their terms:
-indicates the direction of method calls made
(Multiple Choice)
4.7/5
(26)
The three fundamental features of an object-oriented programming language that support object-oriented development are __________________, _________________, and __________________.
(Short Answer)
4.8/5
(37)
Match the descriptions with their terms:
-indicates a part-of relationship
(Multiple Choice)
4.7/5
(36)
A class can be used to make as many object instances of that type as needed.
(True/False)
4.7/5
(47)
A class that groups together a set of objects that exist independently of that class is referred to as
(Multiple Choice)
4.8/5
(40)
Although methods are defined as functions in Python, methods cannot raise an exception as regular functions can.
(True/False)
4.9/5
(32)
What is the name of the special method to initialized instance variables in Python?
(Multiple Choice)
4.8/5
(40)
A class with one or more unimplemented methods is called an __________ class.
(Short Answer)
4.8/5
(34)
Inheritance, in object-oriented programming, is the ability of a class to inherit members of another class as part of its own definition.
(True/False)
4.8/5
(31)
____________ in UML class diagrams is indicated by the use of a filled diamond head, while __________ is indicated by use of an unfilled diamond head.
(Short Answer)
4.9/5
(35)
UML is a specification language specifically for specifying the design of Python programs.
(True/False)
4.8/5
(35)
The can be only one class defined for a given parent class in Python.
(True/False)
4.8/5
(32)
Match the descriptions with their terms:
-indicates that the methods of one class are called by the methods of the other
(Multiple Choice)
4.7/5
(37)
Selected members of a class can be made inaccessible ("hidden") from its clients, referred to as
(Multiple Choice)
4.9/5
(37)
Object-oriented programming languages provide three fundamental features that support a programming paradigm in which computation occurs as message passing between objects.
(True/False)
4.7/5
(45)
Two types of diagrams in UML are _________ diagrams that express the static aspects of an object-oriented design, and _________ diagrams that denote the sequence of methods calls at execution time.
(Short Answer)
4.9/5
(30)
The mere use of objects constitutes object-oriented programming.
(True/False)
4.7/5
(29)
Give appropriate getter and setter methods for an XYCoord class containing private instance variables x and y.
(Essay)
5.0/5
(39)
Showing 21 - 40 of 81
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)