1.2.2 Translators Flashcards

1
Q

What is source code?

A

refers to the original code written by a programmer in a high-level programming language

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

what is a machine code?

A

code that can be understood by computer, in binary form.

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

Assembler?

A

translate low level assembly code into machine code, by translating mnemonics in 1-1 relationship.

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

interpreter?

A

translate source code into machine code, code is translated line by line.

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

compiler?

A

takes the whole code and translate it into machine code if successful.
the code after it goes through compiler:
- the code become machine code directly.
- the code become intermediate code(between source and machine code), then goes through interpreter and become machine code.

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