4.3 Programming Languages Flashcards
What are the fundamental operations of a computer?
ADD
COMPARE
LOAD
SAVE
What are compound operations?
Compound operations usually require a number of stages and sub operations. Whilst fundamental ones are usually just one stage.
What are the two types of languages?
Natural and Computing
What is a natural language?
Has varying vocabulary
Ambiguous
Grammar and Syntax is inconsistent
What is a computing language?
Fixed vocabulary
Unambiguous
Grammar and Syntax is consistent
What are High Level Languages?
Similar to human languages, so that humans can understand.
What are Low Level Languages?
Close to binary so that computer can process instructions.
Why are high level languages important?
Speed for humans to program
Ease of understanding
Why is translation needed?
A computer to understand high level code.
What is a compiler?
Higher level language to lower level language in one go.
What is an Interpreter
Translates into intermediate code which can then be translated by CPU
Works line by line
What is an assembler?
Translates assembly language into machine code.
What is a virtual machine?
Installed onto a computer so java can run on many types of hardware.
Why are virtual machines crucial?
Because then the programmer can write one code that will work on all platforms.
How does a virtual machine work?
Matches the hardware of your device and then allows you to run program.