Programming Languages Flashcards
What is a computer program?
A sequence of instructions that a computer can interpret and execute to accomplish a task or achieve a particular result
List 3 levels pf programming languages
Machine language (low level) Assembly language (intermediate level) English language (high level)
Describe machine language
A program written as a series of binary codes that are understandable by the CPU
Describe assembly language
The source code of programs consists of mnemonic instructions eg move.w#$2,05, each of which corresponds directly to a machine instruction for a particular processor
Describe high language
Independant of the internal machine code of any particular computer and uses simple english like terms and statements that are easier for the programmer to use and understand. It must be converted into machine language by a compiler or interpreter
Describe the purpose of a compiler
Converts the entire program source code into the machine language executable code all at once
Describe the purpose of an interpreter
Reads the high language one instruction at a time, converting instruction into machine language and then executing it, then moving onto the next instruction
Describe how a compiler is different from an interpreter
compiler converts entire program source into executable code, while an interpreter converts one line of source code (one instruction) at a time, executes the machine code and moves to the next instruction