Fichas
Programming paradigms
Fichas del conjunto (8)
- 1List of programming paradigms1. Procedural
2. Object-oriented
3. Declarative
4. Functional (beyond scope of A-level)
5. Assembly - 2Procedural paradigmContains built-in data types (e.g. int, float, string, char, etc.)
Operates in a step-by-step manner
Takes in data at one end and outputs the result at the other
Data and instructions are treated as separate entities - 3Advantages of procedural paradigmEasy to understand
Abstracts low-level code
Some reusable components - 4Disadvantages of procedural paradigmDifficult to reuse large chunks of code
Not as efficient as low-level languages
Poor at handling fuzzy conditions - 5Object-Oriented programming (OOP)Uses objects representing real-world or abstract things
Objects are defined using classes, with attributes (data) and methods (operations on the data)
Objects are reusable and portable - 6Advantages of OOPMost of the code written is reusable
Classes can be treated as black boxes, so other developers only need to know functionality rather than exact details
Code is portable - 7Disadvantages of OOPSteep learning curve - becoming proficient in OOP languages is hard
Not as efficient as low-level code - 8Declarative programmingStatements are written to solve a problem
Language determines how to execute the statement
Información
- Descripción
- A level (Topic 3 - Software Development) OCR A level Computer Science Fichas sobre Programming paradigms, creado por James Norman el 27/01/2020.
- Creado por
- James Norman
- Visitas
- 0
- Valoración