Translators Flashcards

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

3 types of translators

A

Assembler
Compiler
Interpreter

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

What code does the assembler use

A

Assembly code- machine Code

Mnemonics

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

What translator does python use?

A

Interpreter- it will identify errors and will display where the error is

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

Compiler- what code?

A

From all the source code->machine Code

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

What does lexical Analysis do?

Step 1

A

Removes comments
Removes white spaces
Stream of tokens gets passed on to syntax analysis

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

What does syntax analysis do?

Step 2

A

Analyses the code from the lexical analysis

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

Semantic analysis- what does it do?

Step 3

A

Looks out for errors. For example grammatical errors

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

What does code generation do

Step 4

A

Produces the machine code

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

Machine code

A

Binary

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