TRANSLATIONS/IDE Flashcards

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

LOW LEVEL CODE - ADVANTAGES

A
  • uses less memory.
  • can run faster.
  • can manipulate hardware components directly.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

LOW LEVEL CODE - DISADVANTAGES

A
  • harder to learn
  • hard to find errors within the code/debug
  • specific to one machine.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

HIGH LEVEL CODE - ADVANTAGES

A
  • easy to learn and understand
  • easier to find errors/debug
  • more portable to different machines
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

HIGH LEVEL CODE - DISADVANTAGES

A
  • will run slower

- takes more memory and slower to run

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

WHATS A COMPILER, WHAT DOES IT DO, AND WHAT ARE ITS ADVANTAGES/DISADVANTAGES (COMPARED TO INTERPRETERS)

A

it converts the whole code into an object code (an executable version of the program) before running it. The object runs independently from the source code and compiler. used in distribution.

Advantages:

  • customers cannot see the source code when you distribute the program.
  • code runs quickly when compiled.

Disadvantages:

  • slow to compile.
  • can be more difficult to debug as errors are generated at once for all the code.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

WHATS AN INTERPRETER, WHAT DOES IT DO, AND WHAT ARE ITS ADVANTAGES/DISADVANTAGES (COMPARED TO COMPILERS)

A

it converts the code one instruction at a time, and executes the instruction before moving to the next. it does not create object code and the source code is ran each time. Mainly used in development.

Advantages:

  • Easy to debug code.
  • Code can be developed and tested in stages.

Disadvantages:

  • Interpreter is needed on the target machine.
  • Slower run time because the program is translated every time it is run.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DEFINITIONS

A
  • [Object code] A translated version of the program (source code) that can be run without the source code.
  • [IDE] Integrated Development Environment Features.
  • [Editor] An editor which allows you to enter and edit the code. This can have features to make it easier to write your code by using colour coding and automatically indenting your code.
  • [Run time environment] Allows the code to be run as its being developed.
  • [Translator] May have a compiler or interpreter or both to translate the high level code to machine code.
  • [Error diagnostics] These identify errors in code and potential problems.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly