Difference between revisions of "Classification of Programming Languages"
ThomasWard (talk | contribs) m (→Machine Code) |
|||
Line 2: | Line 2: | ||
==Machine Code== | ==Machine Code== | ||
− | Machine code is | + | Machine code is the basic binary information required for a computer to perform a function. It is classified as a 1st generation programming language. |
==Assembly Language== | ==Assembly Language== | ||
+ | Assembly language is a low level, 2nd generation programming language, purposed towards fast execution and complete control over hardware. One assembly language instruction is equivalent to one machine code instruction, and an assembler is used to convert the assembly language to machine code. | ||
==Relationship Between Machine Code & Assembly Language== | ==Relationship Between Machine Code & Assembly Language== | ||
Line 25: | Line 26: | ||
==Imperative== | ==Imperative== | ||
+ | Imperative, or procedural, programming languages break down processes into functions or methods. A single statement of an imperative language is converted to multiple machine code instructions by a language translator (such as an interpreter or compiler), which are then executed in sequence. Imperative languages are part of the 3rd generation of programming languages. Examples of imperative languages include C++, Python and Visual Basic. | ||
+ | |||
==Object Oriented== | ==Object Oriented== | ||
==Declarative== | ==Declarative== |
Revision as of 11:43, 1 March 2017
Contents
Low Level Languages
Machine Code
Machine code is the basic binary information required for a computer to perform a function. It is classified as a 1st generation programming language.
Assembly Language
Assembly language is a low level, 2nd generation programming language, purposed towards fast execution and complete control over hardware. One assembly language instruction is equivalent to one machine code instruction, and an assembler is used to convert the assembly language to machine code.
Relationship Between Machine Code & Assembly Language
Terms
Mnemonics
Source Code
Object Code
High Level Languages
The main characteristics of a high level language are:
- It is easier for the programmer to identify what a command does (English words)
- High level languages need to be translated
- One command in a high level language represents many lines of code in assembler or machine code
- They are portable between systems
- More straight forward to program
- Wider variety of data structures
Imperative
Imperative, or procedural, programming languages break down processes into functions or methods. A single statement of an imperative language is converted to multiple machine code instructions by a language translator (such as an interpreter or compiler), which are then executed in sequence. Imperative languages are part of the 3rd generation of programming languages. Examples of imperative languages include C++, Python and Visual Basic.