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