Title: Module 14 Quiz (Ungraded)
Course: COP 1510 Programming Concepts > Section: Module 14 - Object-Oriented Programming

Q: ________ allows a new class to extend an existing class.
- Successor
- Accessor
- Inheritance
- Public
- None of these
A: Inheritance

Q: Which method is called automatically when an object is created?
- design
- public
- private
- constructor
- None of these
A: constructor

Q: ________ is another name for accessor methods.
- Getters
- Accessors
- Setters
- Private
- None of these
A: Getters

Q: ________ is a standard way of drawing diagrams that describe object-oriented systems.
- Data flow diagram
- UML
- Flowchart
- Hierarchy chart
- None of these
A: UML

Q: In a UML diagram, what character do you place in front of a field of method name to indicate it is public?
- +
- =
- P
- -
- None of these
A: +

Q: Which of the following are contained in a UML diagram for a class?
- Class name
- Class fields
- Class methods
- All of these
- None of these
A: All of these

Q: Which of the following tasks are performed by a procedure?
- Reading a file
- Gathering input
- Displaying output
- All of these
- None of these
A: All of these

Q: What software entity contains both data and procedures?
- Objects
- Instances
- Events
- Memory location(s)
- None of these
A: Objects

Q: The class ________ starts with the word Class followed by the name of the class.
- body
- definition
- return
- members
- None of these
A: definition

Q: What type of programming encapsulates data and functions together in an object?
- Object-oriented
- Interactive
- Procedural
- Menu-driven
- None of these
A: Object-oriented

Q: The programmer determines the fields and methods of an object and creates the ________ code.
- Print
- Class
- Module
- Procedure
- None of these
A: Class

Q: What type of programming is centered on the procedures or actions that take place in a program?
- Object-oriented
- Interactive
- Procedural
- Menu-driven
- None of these
A: Procedural

Q: The procedures that the object performs are known as ________.
- Records
- Methods
- Addresses
- Fields
- None of these
A: Methods

Q: The variables, arrays, or other data structures that are stored in the object are known as the object's ________.
- Records
- Methods
- Addresses
- Fields
- None of these
A: Fields

Q: What allows you to create methods with the same name in different classes and gives you the ability to call the correct method depending on the type of object that is used to call it?
- Constructor
- Inheritance
- Accessor
- Polymorphism
- None of these
A: Polymorphism

Q: True/False: When an object's internal data is hidden from outside code and access to the data is restricted to the object's methods, the data is protected from accidental corruption.
- True
- False
A: True

Q: True/False: There are primarily three methods of programming in use today: procedural, recursive, and object-oriented.
- True
- False
A: False

Q: True/False: When a class variable is assigned the address of an object, it is said that the variable references the object.
- True
- False
A: True

Q: True/False: In an inheritance relationship, the superclass inherits members from the subclass, not the other way around.
- True
- False
A: False

Q: True/False: The separation of data and the code that operates on the data can lead to problems as a program becomes larger and more complex.
- True
- False
A: True