Interpreted

4.1 Compare programming language categories

📘CompTIA ITF+ (FC0-U61)


Interpreted languages are a category of programming languages that do not need to be fully converted to machine code before running. Instead, they are executed line by line by a program called an interpreter.

  • This makes them easier to test and debug, because you can see errors immediately while the program runs.
  • The downside is that they are usually slower than compiled languages, because each line has to be interpreted as the program runs.

In IT environments, interpreted languages are commonly used for automation, web development, and system scripting.


Types of Interpreted Languages

There are three main types of interpreted languages you need to know for the exam:


1. Scripting Languages

  • Definition: A scripting language is an interpreted language designed to automate tasks or control other software.
  • How it works: Scripts are usually small programs that run within a host environment, like a web browser or a server.
  • IT Use Cases:
    • Automating server maintenance tasks
    • Automating file processing
    • Managing databases
  • Examples:
    • Python – Automates IT tasks like backups, file management, and server scripts.
    • PowerShell – Automates Windows system administration.
    • Bash – Automates Linux commands and system scripts.

Key point for exam: Scripting languages are interpreted and usually designed for automating tasks within an IT environment.


2. Scripted Languages

  • Definition: Sometimes used interchangeably with scripting languages, but specifically, scripted languages run within another software environment or application and extend its functionality.
  • How it works:
    • The script is executed by the host application.
    • Often used to customize software behavior without changing the software itself.
  • IT Use Cases:
    • Customizing how a spreadsheet program works (like Excel macros)
    • Adding automation or behavior in software applications
  • Examples:
    • JavaScript – Runs in web browsers to add interactive elements on web pages.
    • VBScript – Automates Microsoft Office tasks and legacy applications.

Key point for exam: Scripted languages depend on a host application to run, and they allow customization or automation inside software.


3. Markup Languages

  • Definition: Markup languages are not traditional programming languages, but they are interpreted by browsers or other software to structure and display data.
  • How it works:
    • They describe the content and layout of data.
    • They are interpreted by a parser (like a web browser) to render information correctly.
  • IT Use Cases:
    • Displaying websites
    • Formatting documents
    • Exchanging data between systems
  • Examples:
    • HTML (HyperText Markup Language) – Structures web pages.
    • XML (eXtensible Markup Language) – Stores and transfers data between systems.
    • JSON – Formats data for web APIs.

Key point for exam: Markup languages describe data structure or presentation and are interpreted by software, not compiled.


Summary Table

TypePurpose / UseExampleRuns in
ScriptingAutomate tasks, system scriptsPython, PowerShellOS / interpreter
ScriptedExtend host software functionalityJavaScript, VBScriptSoftware host
MarkupStructure and present dataHTML, XML, JSONBrowser / parser

Exam Tips

  1. Remember: Interpreted languages run line by line; compiled languages are fully converted before running.
  2. Scripting vs Scripted: Scripting = automates tasks; Scripted = runs inside a host application.
  3. Markup languages are special: They are interpreted but mainly for structuring and presenting data, not performing logic.
Buy Me a Coffee