6: Classification of programming languages and translators Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what is translator software

A

software that allows new programs to be written and run on computers by converting source code into machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are the 3 types of translators

A
  • assembler
  • interpreter
  • compiler
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

explain what an assembler does

A

converts assembly code into machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

explain what an interpreter does

A

converts third generation language into machine code one line at a time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

explain what a compiler does

A

coverts third generation languages into machine code all at once

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is 1st generation language

A

machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is 2nd generation language

A

assembly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is 3rd generation language

A

high level such as python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

give 2 charactertics of first generation language

A
  • binary code
  • difficult for humans
  • no need to be translated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

give 2 charactertics of second generation language

A
  • symbolic representation
  • specific to architecture
  • fast execution
  • knowledge of hardware needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

give 2 charactertics of third generation language

A
  • portable
  • structured
  • easier to program
  • error handling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

true or false

if a program has been compiled it is not possible to execute the program if there is an error

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is meant by imperative high level language

A
  • language that uses english-like words
  • instructions are executed in a programmer defined order (it has been described how to solve the problem)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is meant by declarative high level laguage

A
  • uses english like words
  • specifiy what the problem is but programmer doesnt describe how to solve the problem
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what are the advantages of an interpreter

A
  • easier to create the program as bugs can be identified quicker
  • program can run on any machine with the appropraite interpreter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what are the advantages of a compiler

A
  • runs faster
  • creates an executable file
  • users dont have access to source code
17
Q

why do some compilers produce their final ouput in an intermediate language / bytocde

A

allows platform independance

18
Q

what is machine code language

A

binary

19
Q

what is assembly language

A

uses neumonics