Pure Interpretation Methods in Programming
8 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is a primary disadvantage of pure interpretation compared to compilation?

  • Execution is significantly faster.
  • It requires less memory.
  • Execution can be 10 to 100 times slower. (correct)
  • It does not provide error messages.
  • Pure interpretation allows for easier implementation of source-level debugging operations.

    True

    Name one example of a high-level language that was purely interpreted in the 1960s.

    Lisp

    A pure interpreter acts as a software simulation of a ________.

    <p>machine</p> Signup and view all the answers

    Match the following programming languages with their status of interpretation:

    <p>JavaScript = Widely used as a web scripting language PHP = Making a significant comeback in web development APL = Early purely interpreted language SNOBOL = Example of a 1960s interpreted language</p> Signup and view all the answers

    What is a bottleneck when using a pure interpreter?

    <p>The decoding of high-level language statements.</p> Signup and view all the answers

    In pure interpretation, error messages can directly refer to ________-level units.

    <p>source</p> Signup and view all the answers

    The symbol table is not needed during the interpretation process.

    <p>False</p> Signup and view all the answers

    Study Notes

    Pure Interpretation Methods

    • Pure interpretation is the opposite of compilation.
    • Programs are executed by another program (interpreter).
    • No translation occurs.
    • The interpreter acts as a software simulation of a machine.
    • Interpreter deals with high-level language statements.
    • It's easy to implement debugging.
    • Error messages directly relate to source code, making errors easy to find
    • Execution is 10 to 100 times slower than compiled systems.
    • Decoding high-level language statements is the main cause of slowness.
    • Each statement must be decoded every time regardless if it was executed before.
    • More space is required for pure interpretation.
    • Symbol table needs to be present for access and modification.
    • Source code may need a more accessible format sacrificing minimised size.
    • Early languages (APL, SNOBOL, Lisp 1960s) used pure interpretation.
    • Less common in high level languages by the 1980s.
    • Pure interpretation is making a comeback, popular in web scripting languages like JavaScript and PHP in recent years.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    Description

    This quiz explores the concept of pure interpretation in programming, contrasting it with compilation. It discusses characteristics such as execution speed, debugging ease, and the evolution of interpreted languages throughout history.

    More Like This

    Use Quizgecko on...
    Browser
    Browser