6: Classification of programming languages and translators Flashcards
what is translator software
software that allows new programs to be written and run on computers by converting source code into machine code
what are the 3 types of translators
- assembler
- interpreter
- compiler
explain what an assembler does
converts assembly code into machine code
explain what an interpreter does
converts third generation language into machine code one line at a time
explain what a compiler does
coverts third generation languages into machine code all at once
what is 1st generation language
machine code
what is 2nd generation language
assembly
what is 3rd generation language
high level such as python
give 2 charactertics of first generation language
- binary code
- difficult for humans
- no need to be translated
give 2 charactertics of second generation language
- symbolic representation
- specific to architecture
- fast execution
- knowledge of hardware needed
give 2 charactertics of third generation language
- portable
- structured
- easier to program
- error handling
true or false
if a program has been compiled it is not possible to execute the program if there is an error
True
what is meant by imperative high level language
- language that uses english-like words
- instructions are executed in a programmer defined order (it has been described how to solve the problem)
what is meant by declarative high level laguage
- uses english like words
- specifiy what the problem is but programmer doesnt describe how to solve the problem
what are the advantages of an interpreter
- easier to create the program as bugs can be identified quicker
- program can run on any machine with the appropraite interpreter