slr5 - Application generation Flashcards
What is the difference between machine code and object code
Machine code is the actual binary that makes up the program. object code is a compiled version of the source code
What is the process of converting source code into machine code
Translation
What is the difference between an interpreter and a compiler
An interpreter goes line by line while the program is being run. A compiler translates the entire program into object code before runtime
Give an advantage of using a interpreted language
Easy to test source code because it does not need to be recompiled every time
Give a disadvantage of an interpreter
Translation software is required at runtime
Code is not optimized
Speed of execution is slower
Source code is required
Give an advantage of a compiler
Source code is kept private
Speed of execution is faster
Code is optimised
No need for translation at runtime
Dive a disadvantage of a compiler
Program will not run with any syntax errors
Code need to be recompiled each time it is changed
Designed for a specific type of processor
What is a procedural language
A programming language that has built in data types and structures