Programming paradigms paper 1 Flashcards
What is a programming paradigm?
A style or “way” of programming that defines how programs are structured
Name two common programming paradigms.
Procedural programming and object-oriented programming (OOP).
What is procedural programming?
A paradigm where the program is built from procedures or functions, following a step-by-step approach.
What are the characteristics of procedural programming?
Uses a structured, top-down approach with clear sequences, decisions, and loops. Focuses on procedure calls and modular code.
What is a structured approach in programming?
An approach that breaks a problem into smaller, manageable modules, improving clarity and maintainability.
What is a hierarchy chart in program design?
A diagram that shows the structure of a program, illustrating how functions/procedures are organized and related.
What is object-oriented programming (OOP)?
A paradigm based on the concept of “objects” that contain both data and the methods that operate on that data.
List key features of object-oriented programming.
Encapsulation, inheritance, polymorphism, and abstraction.