STUFF I DO NOT KNOW FOR PROGRAMMING Flashcards
What do interpreters do?
Takes each line of high level language and translates it into machine code.
It passes on instructions to processor go carry out
Works its way through program ONE line at a time
What are the advantages of an interpreter?
The program will run even if it is not finished.
Easy to spot errors during translation
Program will run as soon as first line is translated
What are the disadvantages of an interpreter?
No copy of the machine code saved
Process of translating program slows down running of it
Need a translator program or you cannot run it
What do compilers do?
They take high level language and translates whole program into machine code at once. This then can be saved and kept
What is a compiler an example of, in terms of files?
An .exe file
What are the advantages and disadvantages of a compiler
Adv
Machine code can be saved. Program only needs to be translated once.
Doesn’t need a translator program to run machine code
Runs quicker
Disadv
Have to wait until code is complete and errors are fixed before translation can be finished
Each time program is changed it has to be re translated
What are execution errors?
Entering text when program asks for a real number
What do conditional loops start with
While
What is a conditional loop
You don’t know the amount of loops in advance
What do fixed loops start with?
For
What are fixed loops
You know how many times something has to be repeated
What are translators used for?
Translating code, written by humans, into code understood by computer processors