1.2.4 Flashcards
What is a programming paradigm?
Different approaches to using a programming language to solve a problem
What are imperative paradigms?
Involve identify the actions that need to be performed to solve the problem
What are procedural languages?
These use a sequence of instructions that are carried out step by step
What are OOP languages?
These use the idea of classes and objects which have certain attributes
What are declarative programming paradigms?
These focus on stating the desired result
What are functional paradigms?
These reuse a set of functions which make up the core program
What are logical paradigms?
These work by defining a set of facts and rules for the problem and using these to create a solution
What is assembly language?
- next step up from machine code
- converted to machine code using an assembler
- use easy to remember mnemonics
- processor specific
What is immediate addressing?
The operand is the actual data
What is direct addressing?
The operand is the memory address of the data
What is indirect addressing?
The operand is the memory address of the address of the data
What is indexed addressing?
The operand is added to the index register
What is instansiation ?
Creating an instance of a class
What is encapsulation?
Where attributes are declared as private so they can only be altered by public methods
What is polymorphism?
Objects can behave differently depending on their class