e.g. Translator Can run the program from the editor can test the program straight away …so Syntax highlighting Colour coding for functions / variables / etc. can read the program / identify errors more easily …so Code completion Will suggest variable / function names while typing to remember / quicker to type / keying errors …easier Error checking Will identify and report back on syntax errors it easier to identify and correct them …making Debugging tools Can step through a program line by line it easier to identify and correct logic errors …making Online help Will provide help on using the IDE, possibly including programming syntax it easier to solve problems when stuck …making Run-time environment Features all the requirements for the program to run it quicker to test the program without installing extra libraries …making Computer programs can be written in high level languages, assembly language or machine code. What are two differences between high level languages and machine code? HLL is closer to English / Machine code is written in binary One line of HLL code can map to several lines of machine code HLL is designed to be read / written by humans, machine code is designed to be read / written by computer systems HLL can be machine independent / Machine code is machine specific (will only run on that type of system). What is the relationship between assembly language and machine code? One machine code instruction maps to one assembly language instruction Both consist of an opcode (operation) and an operand (data/address) Assembly code needs to be translated into machine code to be executed… is done with an assembler …which Both are machine specific Both allow for low level programming… can make for smaller / more efficient programs than HLL. …which What is meant by completion’ and how does this helps programmers? ‘code
e.g. Translator Can run the program from the editor …so can test the program straight away Syntax highlighting Colour coding for functions / variables / etc. …so can read the program / identify errors more easily Code completion Will suggest variable / function names while typing …easier to remember / quicker to type / keying errors Error checking Will identify and report back on syntax errors …making it easier to identify and correct them Debugging tools Can step through a program line by line …making it easier to identify and correct logic errors Online help Will provide help on using the IDE, possibly including programming syntax …making it easier to solve problems when stuck Run-time environment Features all the requirements for the program to run …making it quicker to test the program without installing extra libraries Computer programs can be written in high level languages, assembly language or machine code. What are two differences between high level languages and machine code? HLL is closer to English / Machine code is written in binary One line of HLL code can map to several lines of machine code HLL is designed to be read / written by humans, machine code is designed to be read / written by computer systems HLL can be machine independent / Machine code is machine specific (will only run on that type of system). What is the relationship between assembly language and machine code? One machine code instruction maps to one assembly language instruction Both consist of an opcode (operation) and an operand (data/address) Assembly code needs to be translated into machine code to be executed… …which is done with an assembler Both are machine specific Both allow for low level programming… …which can make for smaller / more efficient programs than HLL. What is meant by ‘code completion’ and how does this helps programmers?
translators-and-facilities-of-languages-end-of-unit-quiz-marking-scheme.docx