Define machine code
A binary programming language, for which the code can be loaded and executed without translation.
Define high-level language
(HLL)
A programming language that is independent of computer hardware, that has to be translated into machine code before being executed
Define low-level language
(LLL)
A programming language that is dependent on computer hardware
What are two examples of low-level languages?
Assembly language and machine code
Define assembly language
A programming language that is dependent on computer hardware, for which a program has to be translated into machine code before being executed. It uses mnemonics
Machine code is usually shown in what number system?
Hexadecimal
What are the advantages of high-level languages?
What are the disadvantages of high-level languages?
What are the advantages of low-level languages?
What are the disadvantages of low-level languages?
Why are high-level languages easier to understand?
They are closer to english and real world languages
Why may some programmers write programs in an assembly language?
Define translator
Converts a program written in a high-level language into machine code
What is needed to translate an assembly language program into machine code?
An assembler
Why is there need of translators?
Humans find it very difficult to read binary, but computers can only perform operations written in binary
Define compiler
A computer program that translates a source program written in a high-level language to machine code
What does a compiiler do if an error is found?
An error report is produced instead of a compiled program
Define interpreter
A computer program that analyses and executes a program written in a high-level language line-by-line
What does an interpreter do when it detects errors?
The execution of the program ceases if an error is detected on a statement. An error message is output; sometimes a suggested corrections is provided
How does the use case of compiled, interpreted, and assembled programs differ?
What are the advantages of interpreters?
What are the disadvantages of interpreters?
What are the advantages of compilers?
What are the disadvantages of compilers?
It takes a longer time to write, test, and debug programs during development