High and Low level languages Flashcards

1
Q

Assembly lanuage

A

low-level language
closely reflects how opcodes and operands work

machine dependent

instructions use abbreviations called mnemonics

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

High level language

A

Written in a form that is close to human language

No knowledge of hardware/architecture required

machine independent

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

Low level language

A

Written in a form that is close to the processor instruction set

Knowledge of hardware/architecture is required

machine dependent

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

8 advantages of high level language

A
  1. easier to understand for programmers(closer to human language)
  2. portable
  3. no need to have understanding of computer architecture
  4. Much easier to debug and test
  5. Only need to learn a single language
  6. Has built in libraries and functions that can be reused(saves writing time)
  7. One instruction equals many processor instructions
  8. don’t need to manipulate memory addresses directly- no specialist knowledge
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Translators

A

Assembler
Compiler
Interpreter

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

Assembler

A
  1. converts assembly language to machine code all at once
  2. produces an executable file
  3. produces an error report
  4. optimises source code to run efficiently
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Machine code

A

binary instructions
executed by CPU
machine specific
doesn’t need to be translated

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

4 advantages of low level language

A
  1. Program often requires less memory/RAM
  2. Can make use of special hardware
  3. Can use memory addresses directly
  4. Can be written to run and execute faster (optimised speed of processing a program)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Interpreter

A

Translates high-level language into machine code
Translates (the source code) line by line/statement by statement
The interpreter is used each time the code is executed
Stops if it finds an error and will only continue when error is fixed

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

Compiler

A

Translates high-level language into machine code (object code)
Translates (the source code) all at once
Produces an executable file
Produces an error report / list of errors
Optimises the source code (to run efficiently)

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

interpreter advantages

A

faster for developing software and debugging
all of the code doesn’t need to be translated
easier to debug

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

compiler advantages

A

program can be executed without translator
faster execution(all at once)
provides an executable file so you cannot see the code

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