Previous Module
Next Module

COMPUTER SYSTEMS: Encoding and compression

COMPUTER SYSTEMS: Network topologies

COMPUTER SYSTEMS: Wired and wireless networks, protocols, and layers

COMPUTER SYSTEMS: Threats to computer systems and networks

COMPUTER SYSTEMS: Operating systems and utility software

COMPUTER SYSTEMS: Impact of technology on society

ALGORITHMS AND PROGRAMMING: Types of data

ALGORITHMS AND PROGRAMMING: Producing robust programs

ALGORITHMS AND PROGRAMMING: Designing, creating, and refining algorithms

ALGORITHMS AND PROGRAMMING: Programming languages

  • Computers can only understand machine code (binary), so programs written in high-level or assembly languages must be translated into machine code. 
  • The two main types of translators are compilers and interpreters. For example, Python uses an interpreter which is good for rapid development, whereas C# uses a compiler which is good for performance and deployment.
Feature Compiler Interpreter
Translation style Translates entire program before running Translates and runs line-by-line
Speed Faster after compilation Slower overall
Error detection Shows all errors at once Stops at the first error
File type produced Creates a separate executable file (.exe) Does not produce an executable
Examples C, C++ (compiled) Python, JavaScript (interpreted)
Memory usage Uses more memory initially Lower initial memory usage
When to use Good for large, finished programs Good for testing, debugging, development

Unlock Translators

Subscribe to SnapRevise+ to get immediate access to the rest of this resource.

Premium accounts get immediate access to this resource.

Previous Module
Next Module