High-Level Language Programming Paradigms Flashcards
Low-level Lang
Machine-oriented, usually one instruction to one machine code instruction, mnemonics for operations, labels for addresses.
Low-level Lang Use
For coding device drivers, embedded systems where processing capabilities and memory capacity are limited.
Object-oriented Lang
Solution for a problem can be visualised in terms of objects that interact passing messages back and forth. Classes & objects.
Object-oriented Lang Use
For producing re-usable code and use in large software projects where data and the methods acting on are kept together.
Declarative Lang
Program consists of facts and rules. States what is required but not how to do it. Statements not needed in specific order.
Declarative Lang Use
Expert systems (knowledge based systems) e.g. medical diagnosis. Also Artificial Intelligence and Pattern Recognition.
Procedural Lang
Imperative language, uses sequence, selection, iteration, procedures and functions. States what to do and how to do it.
Procedural Lang Use
Used for set tasks that need to be completed in a specific way. E.g. stock control.
Data encapsulation (OOL)
Data is hidden. Data can only be accessed using the operations defined for the class. This maintains data integrity.
Class (OOL)
A template for a set of objects that have state and behaviour.
Object (OOL)
An object is an instance of a class. It is a real-world entity and holds attributes and operations.
Derived Class (sub class) (OOL)
A class that has all the attributes and operations of its superclass and may have attributes and operations of its own.
Inheritance (OOL)
A derived class inherits all the attributes and operations from its superclass.
UML
Standard way to present the design of a system. Visual, so easy to understand. Allows analysts, programmers and clients to communicate. Makes system maintenance easier when modifying a system.
Class diagram (UML)
Describes the classes to achieve the tasks that the system must perform and the relationships between them.