2.5.2

Translation - Compliers & Interpreter

Test yourself on Translation - Compliers & Interpreter

Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

Compilers

Translators are special software that convert source code into executable binary. Compilers are just one type of translator:

Compilers

Compilers

  • Compilers translate the whole of a program in one go.
  • Compilers will provide a list of errors once it has attempted the compilation process:
    • This can make debugging easier.
  • C, C++, Visual Basic, and Swift are all compiled languages.
Pros of compilers

Pros of compilers

  • Compilers produce an executable program:
    • There is no need to repeat this process more than once per version of the software.
  • Compilers hide the source code from the end user:
    • This helps to protect developers' intellectual property.
Cons of compilers

Cons of compilers

  • The compilation process can be very slow:
    • This can slow down development if many small changes need to be made.

Interpreters

Interpreters are a type of translator which convert high level languages to executable machine code.

Interpreters

Interpreters

  • Interpreters translate high-level source code into executable binary one line at a time.
  • Python and JavaScript are examples of interpreted languages.
Pros of interpreters

Pros of interpreters

  • Interpreters will stop as soon as they encounter an error:
    • This is useful for debugging.
  • Interpreted languages are 'portable':
    • This means that they can be run on many different types of central processing unit as long as there is an interpreter available for the platform.
Cons of interpreters

Cons of interpreters

  • Running an interpreted program is slower than a compiled program because we have to translate each line every time we run the software.
    • But it is quicker to get started which can be good for small changes.
  • Interpreters do not produce a compiled program file:
    • The process must be repeated each time the program is run.
Jump to other topics
1

Computer Systems

1.1

Systems Architecture

1.2

Memory & Storage

1.3

Computer Networks, Connections & Protocols

1.4

Network Security

1.5

Systems Software

1.6

Ethical, Legal, Cultural & Environmental Concern

2

Computational Thinking, Algorithms & Programming

2.1

Algorithms

2.2

Programming Fundamentals

2.3

Producing Robust Programs

2.4

Boolean Logic

2.5

Programming Languages & IDEs

Practice questions on Translation - Compliers & Interpreter

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
  3. 3
  4. 4
Answer all questions on Translation - Compliers & Interpreter

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium