Translators (CIA) Flashcards

1
Q

What is a compiler?

A

Translates source code from high-level languages into object code, then machine code to be processed by the CPU.

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

What is an assembler?

A

An assembler translates assembly code into machine code.

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

What is an interpreter?

A

It translates source code from higher level languages into machine code, executes the code line-by-line.

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

Advantages of Compilers

A
  1. Optimized
  2. Speed of execution is fast
  3. Secure (source code is kept secret)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Disadvantages of Compilers

A
  1. Use extra memory
  2. Not cross-platform
  3. Harder to debug
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Advantages of Interpreters

A
  1. Cross-platform
  2. Easier to debug
  3. Less memory usage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Disadvantages of Interpreters

A
  1. It is not optimized
  2. Translation software required at run-time
  3. Speed of execution is slow
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Advantages of Assemblers

A
  1. Memory-efficient
  2. Speed of execution is fast
  3. Requires fewer instructions to accomplish the same result
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Disadvantages of Assemblers

A
  1. Difficult to remember syntax
  2. Lack of portability
  3. More complex, takes more time to code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly