1.2.2.5 Translators Flashcards

1
Q
  1. High-level languages​
  2. Machine codes​
  3. Assembly languages​
  4. Binary codes​

What is the correct arrangement of programming languages in the order of understandability by humans?​

A

1, 3, 2, 4

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

Machine codes are written in what form?

A

Binary or hexadecimal

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

what is assembly language

A

A type of low-level programming language that uses instructions specific to hardware.

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

what does an assembler do

A

A computer program that translates a program written in an assembly language into machine code.

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

what does a compiler do

A

A computer program that translates a program written in high-level language into machine code all at once and then executes it.

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

what is a compiler mainly used for

A

putting a finished product onto systems

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

what is a translator

A

A utility program that translates the program written by programmers and codes in an assembly language into binary form.

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

What are the 3 types of translators

A

Assemblers
Compilers
Interpreters

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

advantages of compilers

A

Object code executes faster

Executable code can be saved and doesn’t need to be compiled.

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

disadvantages of compilers

A

Error doesn’t get flagged until the end of the process. If an error is discovered, the entire program may need to be recompiled.

Risk compiler might not generate all the required machine language, causing bugs.

Executable code produced is specific to the machine.

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

what does an interpreter do

A

A computer program that reads a statement from a program written in high-level language, performs the action specified by the statement and then proceeds to the next statement and so on.

(Runs the code line by line)

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

What is an interpreter used mainly for

A

error checking

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

What translator do we use to turn low-level code into executable machine code?

A

Assemblers

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

What translators can we use to turn high-level code into executable machine code?

A

Interpreters
Compilers

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