stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Object-Oriented Programming Concepts Flashcards | StudBud
Explore
/
Object-Oriented Programming Concepts
Object-Oriented Programming Concepts
19 terms
·
StudBud Administration
·
58 plays
Test your knowledge on the main concepts and principles of Object-Oriented Programming
Flashcards
19 cards
F
Practice quiz
P
Host live
L
Questions
19
Answers
1
What does polymorphism enable in OOP?
Data hiding
Multiple classes
Code duplication
Single interface
2
Which of these is an example of polymorphism?
Method overloading
Object creation
Data hiding
Class inheritance
3
What is the main purpose of OOP?
Data storage
User interface design
Code reusability
Faster execution
4
What is abstraction in OOP?
Code execution
User interaction
Hiding complexity
Data storage
5
True or false: Objects are instances of classes.
True
False
6
What is a constructor in OOP?
User interface element
Method for creating objects
Data storage method
Type of variable
7
True or false: Interfaces can have method implementations.
True
False
8
What is the main benefit of OOP?
Code organization
More bugs
Less documentation
Faster coding
9
Which concept allows objects to share behavior?
Inheritance
Abstraction
Polymorphism
Encapsulation
10
True or false: Encapsulation hides data from the outside.
True
False
11
Which keyword is used for inheritance?
inherits
base
extends
super
12
True or false: A subclass can inherit from multiple superclasses.
True
False
13
Which of these is NOT a principle of OOP?
Encapsulation
Polymorphism
Compilation
Inheritance
14
Which keyword is used to create a class?
object
class
define
create
15
Which principle promotes code flexibility?
Abstraction
Encapsulation
Inheritance
Polymorphism
16
True or false: OOP is only for large projects.
True
False
17
What is a superclass?
Child class
Parent class
Interface
Abstract class
18
What is method overriding?
Changing a method in subclass
Creating a new method
Deleting a method
Duplicating a method
19
True or false: A class can have multiple constructors.
True
False