Save
...
Computer Science Paper 2
Algorithms
Abstraction
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Dan Rotaru
Visit profile
Cards (33)
What is the definition of abstraction?
Simplifying by focusing on
essential
details
What does abstraction allow us to do with complex concepts?
It helps us focus on
essential details
What is the relationship between the View Level and the Conceptual Level in the image?
The View Level is above the Conceptual Level
Why is it not necessary to know the exact formula to use `calculateArea`?
Because
abstraction
hides
implementation
details.
What are the three levels of data abstraction shown in the image?
View Level
Conceptual Level
Physical Level
What are the four user views shown in the image?
View 1
,
View 2
,
View 3
,
View 4
What does the Physical level of data abstraction provide?
Actual
storage details
What does the View level of data abstraction show?
Different
perspectives
of data
What are the key benefits of abstraction in programming?
Simplicity: Easier to understand
complex
code
Reusability
: Code can be reused in different contexts
Maintainability: Changes can be made without affecting other code parts
What are the implementation methods for abstraction?
Uses
abstract classes
and
interfaces
How does abstraction simplify the use of a car?
By showing only
essential
details
How does abstraction contribute to maintainability in programming?
It allows changes without affecting other code parts.
What does the function `calculateArea` do?
It takes
dimensions
and returns the area.
What is the main purpose of abstraction in object-oriented programming?
Simplifies
complexity
What does encapsulation do with internal data and methods?
Hides them within a
class
What is the name of the lowest level shown in the image?
Physical Level
Who primarily uses the Conceptual level of data abstraction?
Programmers
What are the three levels of data abstraction?
View
,
Conceptual
,
Physical
How does using a mobile app illustrate abstraction?
Users focus on
what
the app does, not
how
What is the main purpose of encapsulation in object-oriented programming?
Protects
data integrity
How does abstraction help in programming?
By focusing on
what
code
does, not
how.
What are the implementation methods for encapsulation?
Uses
private access modifiers
What is the role of abstraction in programming?
It simplifies
complex
code.
Why is abstraction important in OOP?
It simplifies code and promotes
reusability
What is the focus of abstraction compared to encapsulation?
What an
object
does vs. how it works
What does abstraction in Object-Oriented Programming (OOP) involve?
Hiding
complexity
and
exposing essential information
How does abstraction help in problem-solving?
It allows ignoring
irrelevant
information
What are the key differences between abstraction and encapsulation?
Purpose:
Abstraction: Simplifies complexity
Encapsulation: Protects data integrity
Focus:
Abstraction: What an object does
Encapsulation: How an object works
Implementation:
Abstraction: Abstract
classes
,
interfaces
Encapsulation: Private
access modifiers
What is an Abstract Class in OOP?
Cannot be
instantiated
May contain
abstract methods
Used as a base class for
inheritance
What are the roles of different users at each level of data abstraction?
View
: End users
Conceptual
:
Programmers
Physical
:
Database administrators
How does data abstraction help different users?
It hides
complexity
from those above it
How does an Abstract Class differ from an Interface in OOP?
Abstract classes can have
methods
; interfaces cannot
What is an Interface in OOP?
Defines a set of
methods
Classes must implement these methods
Does not contain
implementation
details