Applications generation
Translator questions
- 
A software team use a prebuilt library to create a Graphical User Interface Give two advantages to the team of using a library - The team does not need to write all the boilerplate code to create the layout
- The GUI is likely to be more stable as the implementation of the widgets has been left to widely trusted
 
- 
Why would a company or individual programmer not want to distribute the source code when they sell a software package? If the code is being sold, the programmer would want to avoid potential customers simply taking the source and compiling it, rather than buying the software from the programmer 
- 
What further entries to the symbol table will the lexical analyser make on encountering the statement: circumference = 2 * pi * radiusTokenise the statement, then add the entries to the table Symbol Type circumferenceIdentifier Token Type circumferenceIdentifier =Operator | assign2Constant | int*Operator | multiplypiIdentifier *Operator | multiplyradiusIdentifier 
- 
Give 2 examples of semantic errors: - Type mismatch
- Undeclared identifier
 
- 
Explain the terms 'source code' and 'object code', and how the two differ Source code is the code the human has written, which dictates the main logic of the program. Source code is not executable directly by the computer; it must first be translated into object code 
 Object code is code that is executable by the computer; it is the result of compilation of source code