WorksheetsProgramming Languages
Total questions: 22
Worksheet time: 11mins
A low level programming language which uses mnemonics. These instructions are translated into machine code.
Machine Code
Assembly Language
Source Code
Translate and execute high level code –Line by Line, Statement by Statement.
Interpretor
Translator
Compiler
Assembler
LOAD r2,
ADD r1,
DIV r1, #2
What is machine code?
Instructions in assembly used by the CPU
Instructions in an HLL used by the CPU
Instructions in binary used by the CPU
What would you use to convert high-level source code to machine code?
Interpreter
Assembler
Compiler
Select two advantages of high level languages
Easier to learn
Executes very fast
The code will occupy less memory
Programs can be written faster
Select two advantages of low level languages
Easier to learn
Executes very fast
The code will occupy less memory
Programs can be written faster
Processors only understand instructions written in 1s and 0s.
Machine language
Assembly language
High Level language
They use key words such as print, If, while and program, in logic rather than dealing with hardware
Assembly Language
Machine Code
High level lanaguage
which two statements are true of an interpreter?
the translation is done once only and as a separate process
when an error is found this is reported and it stops. It pinpoints the error so the programmer knows where it has occurred
the program can be easily edited as it always exists as source code
the program that is run is already translated into machine code so it can be executed more rapidly
which two statements are true of a compiler?
the translation is done once only and as a separate process
when an error is found this is reported and it stops. It pinpoints the error so the programmer knows where it has occurred
the program can be easily edited as it always exists as source code
the program that is run is already translated into machine code so it can be executed more rapidly
