You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
This lesson covers the classification of programming languages into low-level (machine code and assembly) and high-level languages. For the OCR H446 exam, you must understand the characteristics of each level, compare them, and explain when each type is appropriate.
Programming languages exist on a spectrum from low-level (close to hardware) to high-level (close to human language).
Human Language
|
High-Level Languages (Python, Java, C#, JavaScript)
|
Assembly Language
|
Machine Code
|
Hardware (CPU)
Machine code is the lowest-level programming language — it consists of binary instructions (sequences of 0s and 1s) that the CPU can execute directly.
| Feature | Detail |
|---|---|
| Format | Binary (e.g. 0011 0001 0000 1010) |
| Readability | Virtually unreadable to humans |
| Portability | Specific to a particular CPU architecture — code written for an x86 processor will not run on ARM |
| Execution | Executed directly by the CPU with no translation needed |
| Speed | Fastest possible — no translation overhead |
| Use today | Almost never written by hand; generated by compilers and assemblers |
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.