Languages Flashcards

(13 cards)

1
Q

What are the features of a compiler

A

Shows all errors at the end, translates source code into a machine code executable file, translates it all at once

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

What are the features of a interpreter

A

Shows all errors line by line, translates source code into machine code line by line

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

What are the advantages of a compiler

A

Faster to run, source code is hidden

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

What are the disadvantages of a compiler

A

Compiled code is not cross platform, must be recompiled every time it is edited

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

What are the advantages of interpreter

A

Errors can be spotted quickly

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

What are the disadvantages of interpreter

A

Source code can be copied, slower, translated every time it is run

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

What are the characteristics of a low level language

A

Humans cannot understand low level languages, requires the programmer to understand the processors registers and structure, code is not transferable between different processors

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

What are three characteristics of a high level language

A

Uses English like statements, must be translated to be run and code is transferable between different processors

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

What are examples of low level languages

A

Machine code and assembly

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

What is assembly language

A

A language used for programming in embedded systems

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

Why are some programs written in low level language

A
  1. Machine code doesn’t need translation
  2. Assembly is fast to translate
  3. Faster execution of code
  4. Gives the programmer direct control of hardware
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why is a compiler needed

A

To translate the code and pick up errors

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

What is machine code

A

Code for the cpu to execute, written in binary, does not need to be translated

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