Object-Oriented Programming and Paradigms

20 flashcardspar DryLaundry
Réviser ces flashcardsGratuit · répétition espacée · iPhone, Android, Mac et web

Toutes les cartes

1
What are the 4 pillars of OOP
-Encapsulation
-Abstraction
-Inheritance
-Polymorphism
2
What is procedural programming?
A programming paradigm using procedures that call eachother
3
What are the two programming Paradigms?
-Imperitive programming
-Decalarative programming
4
What is a programming paradigm?
A method or style of solving problems using a programming language
5
What is the main benfit of using programming paradigms?
It provides a structured approach and set of principles that guide how programs are created
6
What is imperative programming?
A programming paradigm which is based on steps or series of statements
7
What is declarative programming?
Declarative programming is a programming style that focuses on what needs to be done rather than how to do it
8
What are 2 advantages of declarative programming?
-Simplifies code by focusing on the desired result instead of implementation details.
-Makes parallel programming and complex data processing easier to manage.
9
What is parallel computing?
It is the use of multiple processing elements simultaneously solving any problem
10
What are 2 disadvantages of declarative programming?
-Provides less control over performance optimization
-Debugging and understanding internal execution can sometimes be difficult
11
What are 2 advantages of imperative programming?
-Simple and easy to understand and implement
-Supports programming constructs like variables, loops and conditions
12
What are 2 disadvantages of imperative programming?
-Complex problems become difficult to manage and maintain
-Less efficient for large-scale and parallel programming applications
13
What is encapsulation?
The practice of grouping data (attributes) and methods (functions) within a class
14
"The best functions are those with ______"
No parameters!
15
What are 2 benefits of encapsulation?
-Reduces complexity
-Increases reusability
16
What are 2 benefits of abstraction?
-Reduces complexity
-Isolate impact of changes
17
What are 2 benefits of inheritance?
Eliminate redundant code
18
What are 3 benefits of polymorphism
-Helps make code more flexible,
-reusable
-and easier to maintain
19
What is inheritance?
Allows a class to inherit the properties and behaviours of another class
20
What is polymorphism?
A concept in programming that allows objects to take on different forms or behaviours
Réviser les 20 cartes gratuitement

Plus de flashcards : Informatique

Cybersecurity Exam 171 cartesInformatique · AnglaisZackJDeep Learning: Backpropagation and Initialization59 cartesInformatique · AnglaisElliottCPrinciples of Management Exam 1 Vocabulary47 cartesInformatique · AnglaisAdinbealEvolución tecnológica: Las 6D y la Curva S40 cartesInformatique · EspagnolLaraChapter 6: Security, privacy, and data integrity34 cartesInformatique · Anglais—Griffith—Lesson 3.3 Geoprocessing Tools29 cartesInformatique · AnglaisDekanoMemory Management – Page Fault & Page Replacement22 cartesInformatique · Anglais—Griffith—Module 11 Yu NETSEC18 cartesInformatique · AnglaisDiandreiIB Compsci Topic 213 cartesInformatique · AnglaisnoahmzPython : Révisions générales 1ère10 cartes · 1 ajoutsInformatique · FrançaisAnnaGIS Concepts, Data Types and Models142 cartesInformatique · AnglaisDekanoAP Computer Science Principles Terms94 cartesInformatique · AnglaisJonathan

Tous les decks : Informatique

Révise ces decks dans l’app

Gratuit sur iPhone, Android, Mac et le web. Ajoute n’importe quel deck à ton compte en un tap.

Télécharger dans l’App StoreDisponible sur Google Play
Réviser les 20 cartes gratuitement