Translators Flashcards

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

What are the 2 main translators

A

Compiler

Interpreter

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

What does a compiler do

A

translates all the code into machine code in one go, producing an executable file which can be run.

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

Pros and cons of a compiler

A

Much faster to run than an interpreter

The source code must be re-compiled every time the programmer changes the program.

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

What is an interpreter

A

translates the code one line at a time, into machine code during program execution.

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

Pros and cons of an intepreter

A

Much more effective to debug for individual errors

interpreter code is really slow compared to compiled code.

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

What is a high level language

A

easier to write and program as no expertise is needed (closest to human language and understanding)

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

What are some examples of a high level language

A

Python,java

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

Advantages of high level language

A

􏰁 easier to program and modify
􏰁 programs can be written much faster
􏰁 code can be debugged easily
􏰁 code is portable across multiple platforms

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

Dis of high level language

A

􏰁 requires more memory than low level languages
􏰁 translation takes longer and less control over
hardware

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

What is a low level language

A

programs written related to specific computer hardware and architecture

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

Examples of low level language

A

Assembely language, machine code

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

Pros of low level lang

A

􏰁 assembly language uses English like statements

􏰁 translated programs require less memory

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

Cons of low level language

A

􏰁 machine code is difficult to understand and takes longer time to write programs
􏰁 code is machine dependant (not portable)

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