Types Of Program Translator Flashcards

1
Q

Explain why a compiler is used to produce the final version of a computer program?

A

So that the source code cannot be accessed by the users. And the users don’t need a programming environment.

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

Explain why programs written in a scripting language for this purpose and are interpreted rather than compiled?

A

Complied program only executes on a processor specific type, program run by interpreter executes on a computer with any type of processor.

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

Advantages of using a compiler rather an interpreter to prepare runnable program

A

Compiler optimises code.
Produces object code .

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

Explain the differences between a compiler and interpreter.

A

Compiler is the whole program is translated
Interpreter is line by line
Compilers produce object code and interpreters do not

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

Explain what intermediate code is and some compilers will produce intermediate code as the final output.

A

Intermediate code is not directly executable and this means it will be interpreted by a virtual machine

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

Explain why the final version of a computer program is usually translated using a compiler?

A

So that source code cannot be accessed by users and the program will execute more quickly.

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

Explain why programs written in the JavaScript language to be executed in a web browser are interpreted rather than compiled?

A

Program will only execute on a processor of a specific type can’t know what type of processor will be used in users computer

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