Languages and translators Flashcards

(18 cards)

1
Q

What are low level languages

A

Programming languages which have simple commands, and more understandable to computers by using mnemonics

An example is assembly language

They are used to directely manipulate hardware.

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

Advantages of low level languages

A

Executed quickly and are more memory efficient.

Does not need to be compiled or interpreted

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

Disadvantages of low level languages

A

Hard to read, harder to understand and debug

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

Translator used for low level languages

A

Assembler

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

What does an assembler convert?

A

Assembly language to machine code

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

How does an assembler convert?

A

Turns basic commands into binary code which is recognized by a specific processor

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

What are high level languages

A

Programming languages which are more similar to english, and are designed to be more understandable to humans

They can run on any system

Example includes Python

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

Advantages of high level languages

A

Easier for humans to write, understand, debug, read

Also easier to maintain programs written with high level languages

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

Disadvantages of high level languages

A

Takes longer to execute
Cannot use special hardware
Programs are longer

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

Translator used for high level languages

A

Compiliers or interpreters

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

What does a compilier convert?

A

High level to machine code

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

What does an interpreter convert?

A

High level to machine code

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

How does a compilier convert?

A

Produces an executable file in one go
An error report is provided for the whole code after compilation

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

Advantages of using a compilier

A

Faster
Only needs to be complied once (exe file)

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

Disadvantages of using a compilier

A

Harder to check for mistakes (cuz they shown at the end)
Need to recompile if changed

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

How does an interpreter convert?

A

Each line is translated before execution
Stops as soon as an error is found

17
Q

Advantages of using an interpreter

A

Useful for spotting errors
Better for development

18
Q

Disadvantages of using an interpreter

A

It is slower
The program needs to be interpreted every time before use