1/24
Looks like no tags are added yet.
Name the diagram of programming paradigms and how it branches
Programming paradigm
Imperative Declarative
Procedural object orientated Functional logic
What is a programming paradigm?
Approaches used to categorise or classify programming languages based on techniques and features they support
What is imperative programming?
The oldest most basic programming approach which describes a step-by-step process for a program’s execution
What is declarative programming?
Describes what you want the program to achieve rather than how it should be run
What is a high level language?
Uses simple, readable commands that are easier for programmers to understand
What is a low level language?
Much closer to the hardware and gives programmers more control over the hardware
What is procedural programming?
A programming style where a program is written as a sequence of instructions that are carried out step by step
What is a class?
A blueprint used to create objects. It defines attributes and methods that objects will have.
What is an attribute?
A characteristic of an object
What is a superclass?
Refers to a class from which other classes are derived
What is a subclass?
A class that inherits from another class
What is encapsulation?
Bundling data into a single class and restricting direct access
What is polymorphysm?
Where the same method can produce different outputs depending on the object
What is composition?
When an object is composed of one or more other objects
What is functional programming?
A paradigm that solves problems using functions
What is logic programming?
A paradigm where rules and facts are used to solve problems through logical reasoning
What is a translator?
A software that converts source code written by a programmer into machine code so the computer can execute it
What is a compiler?
Translates the whole program at once
What is an interpreter?
Translates and executes one line at a time
What is an assembler?
converts assembly language into machine code
What is immediate addressing?
Data is included directly in the instruction
What is direct addressing?
Instruction contains a memory address of the data
What is indirect addressing?
Instruction points to an address to an address that contains another address
What is indexed addressing?
Actual memory address is calculated by adding an index value to an address stored in an instruction