Applications generations Flashcards

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

What is a translator ?

A

A translator is a program that converts high-level source code into low-level machine code, which is then ready to be executed by a computer.

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

The different types of translators?

A

There are three types of translator that convert different types of code and work in different ways, i.e. compilers, interpreters, and assemblers.

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

How do compilers work?

A

converts high level source code into machine code all at once

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

What are the cons of using compilers?

A

Cons of compilers:
a. This initial compilation process is longer than using an interpreter or an assembler.
b. If changes need to be made, the whole program must be recompiled.
c. Once code has been compiled to produce machine code, it can only be executed on certain devices - compiled code is specific to a particular processor type and operating system.

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

What are the pros of using compilers?

A

Pros of compilers:
a. Compile code can be run in a machine without an actual translator being present in the machine.

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

How do interpreters work?

A

Interpreters translate and execute code line-by-line, reporting the immediate error in a line and stopping, useful for testing sections of code and pinpointing errors.

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

What are the pros of using interpreters?

A

Pros of interpreters :
a. They initially are faster than compilers as code is instantly executed.
b. Code can be executed on a range of platforms as long as the right interpreter is available, thus making interpreted code more portable.

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

What are the cons of using interpreters?

A

Cons of interpreters :
a. But are slower than running compiled code as code must be translated each time it is executed with an interpreter.
b. Interpreted code requires an interpreter in order to run on different devices.

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

Talk about assembly code and assemblers

A

Assembly code is considered to be a low-level language that it’s platform specific, as the instructions used are dependent on the instruction set of the processor. Assemblers translate assembly code into machine code.

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

What does LDA stands for in assembly language?

A

Load

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

What does SUB stands for in assembly language?

A

Subtract

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

What does ADD stands for in assembly language?

A

Add

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

What does HLT stands for in assembly language?

A

halt

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

What does STA stands for in assembly language?

A

Store

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

What does INP stands for in assembly language?

A

input

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

What does OUT stands for in assembly language?

A

output

17
Q

What does BRZ stands for in assembly language?

A

Branch if zero

18
Q

What does BRP stands for in assembly language?

A

Branch if zero or positive

19
Q

What does BRA stands for in assembly language?

A

Branch always

20
Q

What does DAT stands for in assembly language?

A

Data storage