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
23 terms
·
StudBud Administration
·
6 plays
Test your knowledge on the fundamental concepts of Object-Oriented Programming
Flashcards
23 cards
F
Practice quiz
P
Host live
L
Questions
23
Answers
1
True or false: Objects can have multiple classes.
True
False
2
Which principle helps in reducing complexity?
Inheritance
Polymorphism
Encapsulation
Abstraction
3
Which keyword is used for inheritance?
inherits
extends
derives
includes
4
True or false: Inheritance creates a parent-child relationship.
False
True
5
What is a characteristic of an object?
Only state
State and behavior
Only behavior
No characteristics
6
Which is NOT an OOP principle?
Inheritance
Randomness
Encapsulation
Abstraction
7
True or false: A method is a function in a class.
True
False
8
Which is an example of abstraction?
Complex algorithms
User-friendly interface
All data exposed
Detailed code structure
9
What does abstraction focus on?
User interface only
All details
Essential features
Data storage
10
Which is a feature of polymorphism?
Same method, different classes
Same interface, different methods
Different interfaces, same methods
Same class, different objects
11
What is the purpose of a method?
Define classes
Perform actions
Store data
Create objects
12
Which principle allows method overloading?
Abstraction
Inheritance
Polymorphism
Encapsulation
13
True or false: Abstraction hides complexity.
True
False
14
What does a constructor do?
Deletes an object
Defines a method
Creates an object
Modifies a class
15
True or false: A class is a blueprint for objects.
False
True
16
What is a key benefit of abstraction?
Adds confusion
Reduces complexity
Limits functionality
Increases details
17
What defines a class in OOP?
A single object instance
A blueprint for objects
A type of variable
A method of execution
18
What does encapsulation mainly protect?
Class hierarchy
Method execution
Data integrity
User interface
19
True or false: Polymorphism allows different classes to be treated as the same type.
True
False
20
Which is an example of encapsulation?
Global functions
Public variables
Static classes
Private methods
21
Which concept allows for code reuse?
Polymorphism
Encapsulation
Abstraction
Inheritance
22
True or false: Objects can only belong to one class.
False
True
23
What is the main goal of encapsulation?
Expose all details
Hide internal state
Increase complexity
Create new classes