# Abstraction Principles

> Learning to focus on essential details while filtering out unnecessary information to solve problems more efficiently

- **Canonical URL:** https://flashcards.world/flashcards/sets/85d2cfaa-9e95-4044-bdbc-c7ab05c00760/
- **Markdown URL:** https://flashcards.world/flashcards/sets/85d2cfaa-9e95-4044-bdbc-c7ab05c00760.md
- **Level:** basic
- **Languages:** en → en
- **Total Cards:** 50

## Flashcards (50 Cards)

| # | Front (Term / Prompt) | Back (Definition / Answer) | Example | Multiple-Choice Options |
| :--- | :--- | :--- | :--- | :--- |
| 1 | How does abstraction relate to encapsulation? | Abstraction focuses on hiding complexity by exposing essential features, while encapsulation restricts access to certain details of an object. |  |  |
| 2 | What is the role of abstraction in object-oriented programming? | In object-oriented programming, abstraction allows for the creation of classes and objects that represent real-world entities while hiding their complexities. |  |  |
| 3 | What is the purpose of using abstract data types (ADTs)? | ADTs provide a way to define data structures by their behavior rather than their implementation, promoting abstraction. |  |  |
| 4 | How does abstraction relate to user experience (UX) design? | In UX design, abstraction simplifies user interactions by focusing on essential features and minimizing cognitive load. |  |  |
| 5 | What is a 'wrapper' in programming? | A wrapper is a design pattern that encapsulates a complex interface, providing a simplified interface for easier use. |  |  |
| 6 | How does abstraction support continuous integration and deployment? | Abstraction allows for modular components that can be tested and deployed independently, facilitating continuous integration and deployment. |  |  |
| 7 | What is a low-level programming language? | A low-level programming language provides little abstraction from the hardware, allowing for fine control over system resources. |  |  |
| 8 | What is the principle of 'least knowledge' in relation to abstraction? | The principle of least knowledge, or the Law of Demeter, suggests that an object should only communicate with its immediate friends and not with strangers. |  |  |
| 9 | Explain the concept of 'information hiding'. | Information hiding is a principle that involves concealing the internal state and functionality of an object to reduce complexity. |  |  |
| 10 | How does abstraction contribute to agile development? | Abstraction allows teams to work on different components simultaneously, facilitating faster iterations and adaptability in agile development. |  |  |
| 11 | How does abstraction improve code readability? | Abstraction improves code readability by allowing developers to understand the high-level functionality without getting bogged down by implementation details. |  |  |
| 12 | What is the significance of 'abstraction in layers' in system design? | Abstraction in layers helps organize complex systems into manageable sections, each with its own responsibilities and interfaces. |  |  |
| 13 | What is a 'proxy' in programming? | A proxy is a design pattern that acts as an intermediary for another object, providing a simplified interface and controlling access. |  |  |
| 14 | How can abstraction lead to better software testing? | Abstraction allows for testing components in isolation, making it easier to identify and fix bugs without affecting other parts of the system. |  |  |
| 15 | What is an abstract class? | An abstract class is a class that cannot be instantiated and may contain abstract methods that must be implemented by derived classes. |  |  |
| 16 | What is a concrete class? | A concrete class is a class that can be instantiated and provides implementations for all its methods. |  |  |
| 17 | What is the significance of 'abstraction by specification'? | Abstraction by specification defines the expected behavior of a system without detailing how it is implemented, promoting flexibility. |  |  |
| 18 | What is a function abstraction? | Function abstraction involves defining a function that encapsulates a specific task, allowing the user to call it without knowing its internal workings. |  |  |
| 19 | How does abstraction support scalability in software systems? | Abstraction allows systems to be designed in a modular way, making it easier to scale components independently. |  |  |
| 20 | How does abstraction help in managing dependencies? | Abstraction helps manage dependencies by allowing components to interact through interfaces rather than concrete implementations. |  |  |
| 21 | What is a 'service layer' in software architecture? | A service layer is an abstraction layer that defines the application's business logic and provides a set of services to the presentation layer. |  |  |
| 22 | What is a 'factory method' in relation to abstraction? | A factory method is a design pattern that provides an interface for creating objects without specifying the exact class of the object. |  |  |
| 23 | What is the difference between abstract methods and concrete methods? | Abstract methods have no implementation and must be defined in derived classes, while concrete methods provide a complete implementation. |  |  |
| 24 | What is abstraction in computer science? | Abstraction is the concept of simplifying complex systems by hiding unnecessary details and exposing only the essential features. |  |  |
| 25 | What is a 'composite pattern' in relation to abstraction? | The composite pattern is a design pattern that allows individual objects and compositions of objects to be treated uniformly, promoting abstraction. |  |  |
| 26 | What are the two main types of abstraction? | The two main types of abstraction are data abstraction and control abstraction. |  |  |
| 27 | What is the role of abstraction in software design? | Abstraction helps in creating modular designs, allowing developers to work on different components independently. |  |  |
| 28 | What is a real-world example of abstraction? | A real-world example of abstraction is driving a car, where the driver interacts with the steering wheel and pedals without needing to understand the engine mechanics. |  |  |
| 29 | How does abstraction relate to the Model-View-Controller (MVC) architecture? | In MVC, abstraction separates the data model, user interface, and control logic, allowing for independent development and maintenance. |  |  |
| 30 | Why is abstraction important in programming? | Abstraction helps manage complexity, enhances code reusability, and improves maintainability by allowing programmers to focus on high-level functionalities. |  |  |
| 31 | What is the role of abstraction in API design? | Abstraction in API design allows developers to interact with complex systems through simple interfaces, hiding the underlying complexity. |  |  |
| 32 | Define data abstraction. | Data abstraction refers to the representation of complex data structures while hiding the implementation details. |  |  |
| 33 | How does abstraction facilitate code reuse? | Abstraction allows developers to create generic components that can be reused across different projects without modification. |  |  |
| 34 | What is the significance of the 'Single Responsibility Principle' in abstraction? | The Single Responsibility Principle states that a class should have one reason to change, promoting abstraction by keeping functionalities focused. |  |  |
| 35 | What is a high-level programming language? | A high-level programming language is one that provides strong abstraction from the hardware, making it easier for developers to write code. |  |  |
| 36 | What is an interface in the context of abstraction? | An interface is a contract that defines a set of methods that implementing classes must provide, allowing for abstraction of behavior. |  |  |
| 37 | What is a 'delegate' in programming? | A delegate is a type that represents references to methods with a specific parameter list and return type, allowing for abstraction of method calls. |  |  |
| 38 | What is a 'strategy pattern' in programming? | The strategy pattern is a design pattern that enables selecting an algorithm's behavior at runtime, promoting abstraction of algorithm implementation. |  |  |
| 39 | What is a layer of abstraction? | A layer of abstraction is a level in a system where certain details are hidden to simplify interactions with other layers. |  |  |
| 40 | Give an example of data abstraction. | An example of data abstraction is using a class in object-oriented programming to define a data type without exposing its internal workings. |  |  |
| 41 | How does abstraction aid in problem-solving? | Abstraction helps in problem-solving by allowing individuals to focus on the core aspects of a problem without being distracted by irrelevant details. |  |  |
| 42 | What is the concept of 'abstraction layers' in software architecture? | Abstraction layers separate different levels of functionality, allowing developers to work on one layer without affecting others. |  |  |
| 43 | How does abstraction enhance collaboration among developers? | Abstraction allows developers to work on different parts of a system independently, facilitating collaboration and reducing conflicts. |  |  |
| 44 | What is polymorphism in relation to abstraction? | Polymorphism allows objects of different classes to be treated as objects of a common superclass, enabling abstraction in method implementation. |  |  |
| 45 | What is control abstraction? | Control abstraction involves managing the flow of control in a program without needing to understand the underlying details. |  |  |
| 46 | What is the role of abstraction in data visualization? | Abstraction in data visualization helps represent complex data in a simplified manner, making it easier for users to understand insights. |  |  |
| 47 | What is the purpose of using abstract factories? | Abstract factories provide an interface for creating families of related or dependent objects without specifying their concrete classes. |  |  |
| 48 | How does abstraction relate to design patterns? | Design patterns often utilize abstraction to provide reusable solutions to common problems while hiding implementation details. |  |  |
| 49 | What is the difference between abstraction and generalization? | Abstraction focuses on simplifying a specific concept, while generalization involves creating a broader category that encompasses multiple specific instances. |  |  |
| 50 | How does abstraction influence software architecture decisions? | Abstraction influences software architecture decisions by guiding the separation of concerns and defining clear interfaces between components. |  |  |

---
Study this deck interactively with FSRS-6 spaced repetition, audio review, and multiple-choice mode at [Flashcards World](https://flashcards.world/flashcards/sets/85d2cfaa-9e95-4044-bdbc-c7ab05c00760/).
