Mind map
Types of Programming Language *add diagrams
Map content
Types of Programming Language *add diagrams
Programming Paradigms
- Procedural
- Examples
- Python
- Pascal
- Series of instructions
- Tells computer what to do with input
- Structured Programming
- Uses programming constructs
- Sequence
- Selection
- Iteration
- Recursion
- Modular techniques
- Split large programs into chunks
- Uses programming constructs
- Educational environments
- Easy to learn
- Applicable to a lot of problems
- Examples
- Object-Orientated
- Examples
- Java
- Python
- Delphi
- Abstract details of implementation
- Code reusable
- Programs easy to maintain
- Examples
- Declarative
- SQL
- Queries in databases
- Write statements describing problem to be solved
- Language implementation decides best way of solving
- SQL
- Functional
- Examples
- Haskell
- Python
- C#
- Java
- Functions used as fundamental building blocks
- Statements written in series of functions
- Examples
- Style of computer programming
- Procedural
Procedural Languages
- Built in data types
- Integer
- Floating point
- Boolean
- Data structures
- Array
- Record
- Define own abstract data types
- Queue
- Stack
- Tree
- Built in data types
Assembly Language
- Mnemonics
- ADD
- Add contents of memory address to ACC
- SUB
- Subtract contents of memory address from ACC
- STA
- Store value in ACC in given memory address
- LDA
- Load ACC with contents of given memory address
- BRA
- Branch using given address of next instruction
- BRZ
- Branch to given address if ACC zero
- BRP
- Branch to given address if ACC zero or positive
- INP
- Input into ACC
- OUT
- Output contents of ACC
- HLT
- Stops execution of program
- DAT
- Indicate location containing data
- ADD
- Examples
- Data Transfer and Arithmetic Operations
- Input three numbers x, y and z
- Calculate and output value of x + y - z
- *add example on page 70
- Calculate and output value of x + y - z
- Input three numbers x, y and z
- Branch Instructions
- Compare two numbers held in memory locations num1 and num2
- Output the larger number
- If equal either can be output
- *add example on page 71
- If equal either can be output
- Output the larger number
- Compare two numbers held in memory locations num1 and num2
- Data Transfer and Arithmetic Operations
- Mnemonics
Memory Addressing Modes
- Immediate
- load immediate 4
- Puts 4 into ACC
- load immediate 4
- Direct
- load direct 4
- Puts 8 into ACC
- Contents of location 4
- Puts 8 into ACC
- load direct 4
- Indirect
- load indirect 4
- Puts 27 into ACC
- Contents of address held in location 4
- Puts 27 into ACC
- load indirect 4
- Indexed
- load indexed R0
- Puts 15 into ACC
- Contents of location
- 6+contents of R0
- Contents of location
- Puts 15 into ACC
- R0 incremented to 1
- load indexed R0
- Puts 32 into ACC
- Contents of location
- 6+1
- Contents of location
- Puts 32 into ACC
- load indexed R0
- load indexed R0
- Index Register holds 6
- R0 contains 0
- *add table on page 73
- Immediate
Object Orientated Languages
- Classes
- What data can do
- What data looks like
- Objects
- Instance of a class
- Methods
- Procedure associated with an object
- Attributes
- Procedure associated with a class
- Inheritance
- Subclasses
- Same attributes as superclass
- Inherit properties
- Own attributes
- Same attributes as superclass
- Inheritance Diagram
- *add diagram on page 65
- Subclasses
- Encapsulation
- Private attributes cannot be accessed directly
- Accessed through class methods
- Private attributes cannot be accessed directly
- Polymorphism
- Process objects differently depending on class
- Constructor
- Procedure with name new
- Advantages
- Extensive planning phase
- Better designs
- Fewer weaknesses
- Reusable
- Objects already defined, coded and tested
- Used in different programs
- Objects already defined, coded and tested
- Easier to maintain
- Modular structure
- Extensive planning phase
- Classes
Information
- Description
- A level Mind Maps Comp Sci (Software and Software Development) Mind Map on Types of Programming Language *add diagrams, created by Holly Scott on 25/05/2018.
- Created by
- Holly Scott
- Views
- 0
- Rating