25 Questions
Which programming model organizes software design around data, or objects, rather than functions and logic?
Object-oriented programming
What can be defined as a data field that has unique attributes and behavior?
Object
Which programming method involves statements on what the task or desired outcome is but not how to achieve it?
Declarative programming
Which type of programs benefit from object-oriented programming?
Large, complex programs
Which programming method focuses on function rather than models?
Imperative programming
What is the first step in object-oriented programming?
Data modeling
Which programming method is based mostly in formal logic and uses languages such as Prolog?
Logical programming
What are well-defined interfaces called in object-oriented programming?
Messages
Which of the following is a benefit of object-oriented programming?
Code reusability
Which programming method includes languages such as Erlang and Scala?
Functional programming
Which programming method may be more complicated to write and take longer to compile?
OOP
Which programming method is used for telecommunications and fault tolerant systems?
Functional programming
What is each distinct logic sequence called in object-oriented programming?
Methods
Which programming method focuses on tasks that can benefit from rule-based logical queries?
Logical programming
What is the exercise known as to collect all of the objects a programmer wants to manipulate and identify how they relate to each other?
Data modeling
Which of the following is NOT one of the building blocks of object-oriented programming?
Variables
What is the main principle of encapsulation in object-oriented programming?
All important information is contained inside an object
What is the main principle of abstraction in object-oriented programming?
Objects only reveal relevant internal mechanisms
What is the main principle of inheritance in object-oriented programming?
Classes can reuse code from other classes
What is the main principle of polymorphism in object-oriented programming?
Objects can take on more than one form
Which programming language is considered a pure object-oriented programming language?
Ruby
Which programming language is designed primarily for object-oriented programming, but includes some procedural processes?
Java
Which programming language pairs with object-oriented programming, but is not considered a pure object-oriented programming language?
JavaScript
What is one of the benefits of object-oriented programming?
Reusability
What is one of the criticisms of the object-oriented programming model?
Lack of modularity
Test your knowledge of object-oriented programming (OOP) with this quiz. Learn about the key concepts and principles of OOP, including objects, attributes, and behavior. Challenge yourself and see how well you understand this popular programming paradigm.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free