programming languages and IDEs Flashcards

1
Q

Machine code

A
  • have an opcode instruction and
    address or data to use
  • binary representation of instructions
    in a format the CPU can decode and
    execute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Low level language

A
  • written in assembly code
  • translated by an assembler into
    machine code
  • used for embedded systems
  • used for device drivers
  • works on one type of processor only
  • programmer works with memory
    directly
  • harder to write and understand
  • memory efficient
  • code is fast to execute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

High level languages

A
  • source code written in languages
  • translated by complier or interpreter
    into machine code
  • quicker and easier to write and
    understand
  • work on many type of processors
  • one code instruction translate to many
    macine code instructions
    -lots of data structures to use
  • less memory efficient
  • code can be slower to execute if not
    optimised
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

complier

A

translates source code from high- level languages into object code and then into machine code
- whole program is translated in
machine code before its run

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

Advantages of complier

A
  • execution is faster
  • code is optimised
  • original source code is a secret
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Disadvantages of complier

A
  • difficult to write code as the program
    will not run with syntax error
  • code needs to be recompiled when
    code changes
  • design for specific type of processor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Interpretor

A

Translates source code from high level languages into machine code
- program is translated line by as program is running

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

Advantages of inerpreters

A
  • easy to write code as program will always run until it find a syntax error
  • doesnt have to be recompiled when code changes
  • easier for beginners to learn coding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Disadvantages of interpretors

A
  • execution is slower
  • code is not optimised
  • source code is needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly