1.11 Flashcards
First generation language
Machine code is a first-generation language where instructions are directly executable by the processor and written in binary code.
Low-level language
A low-level language is a programming language that directly translates to machine code understood by the processor.
Second generation language
Assembly code is a second-generation language that uses mnemonics that correspond almost exactly to machine code instructions.
High-level language
A high-level programming language uses English-like statements to allow users to program with easy to use code.
State two disadvantages of high-level languages?
The disadvantages of high-level languages are:
users cannot directly manipulate hardware
the program may be less efficient.
Translator
A translator is a program that translates program source code into machine code so it can be executed by a processor.
Compiler
A compiler is a translator that translates high-level languages into machine code all in one go, typically used when a program is finished.
Interpreter
An interpreter is a translator that translates high-level languages into machine code one line at a time as the program runs.
What does an assembler do?
An assembler is used to translate low-level assembly code into machine code.
What features can an editor provide?
An editor can provide basic formatting tools such as:
coloured keywords
auto-completion/correction
code commenting tools.
How do error diagnostics help with errors?
Error diagnostics can:
highlight code areas with errors
provide direct error messages
allow step-by-step debugging to find logic errors.