Flashcards
High and low level code
Flashcards do conjunto (14)
- 1High Level CodeA high level code is a programming language that uses English and maths symbols like +,-,% and many others.
- 2Examples of High Level CodeThe examples of high level code are C++, Java and Python.
- 3Low Level CodeLow level code is a programming language that is used by the computer to carry out instructions. computer can only understand the values binary 0 and 1. machine code uses binary to represent instructions.
- 4High To Low Level Conversion1.High level code
2.Assembler
Assembly language
3.Machine code
Instruction sets
4.Hardware - 5Machine CodeMachine code is formed from the the translators and is represented in binary (0/1) (byte code)
- 6AssemblerThe assembler is a program translates assembly code into machine language.
- + source code - 7InterpreterAn interpreter is a different type of program which translates a high level language program into machine code.
-check for errors at the start and during the running the code
- - source code - 8CompilerA compiler is a program which translate a high level language program ( the source code) into machine code.
-checks for errors at the end of running the code
- + source code - 9RegisterA dedicated location of fast memory in the RAM.
- 10Explain the difference between high and low level code. [4]High level code is easy to understand programming language which is similar to maths and English. [1] Examples of high level code are JAVA and Python. [1] On the other hand, low level code is used by computers to carry out instructions. [1] Low level languages like machine code are in binary. [1]
- 11Describe the purpose of an assembler. [2]The assembler is used to translate high level code such as Python into machine language, so the computer can understand and execute the instructions.
- 12Describe the purpose of an interpreter. [2]The interpreter is used to translate high level code in machine code, but the user is able to see and adapt the source code.
- 13Describe the purpose of an compiler. [2]The compiler is used to translate high level code in machine code, but the user is NOT able to see and adapt the source code.
- 14Describe the term register. [2]The register is a location of memory (RAM) used to store data and instructions to be executed by the CPU.