What is a programming language?
A formal language used to write instructions that a computer can understand and execute
What is a low-level programming language?
A language close to machine code and hardware-specific, e.g. assembly language
What is a high-level programming language?
A language closer to human language and easier to read and write, e.g. Python
Give one advantage of high-level languages
They are easier to understand, write, and debug
Give one disadvantage of high-level languages
They must be translated before they can be run
What is machine code?
Binary code (0s and 1s) that a CPU can directly execute
What is assembly language?
A language that uses mnemonics instead of binary and is processor-specific
What is a translator?
Software that converts source code into machine code
What is a compiler?
A translator that converts the whole program into machine code before execution
Give one advantage of a compiler
The program runs faster after it has been compiled
Give one disadvantage of a compiler
Errors are only shown after the whole program is translated
What is an interpreter?
A translator that converts and runs code line by line
Give one advantage of an interpreter
Errors are shown one line at a time
Give one disadvantage of an interpreter
Programs run slower because translation happens during execution
What is source code?
The original program written by a programmer
What is object code?
Machine code produced by a translator
Which translator is used for assembly language?
An assembler