Concepts of Programming Languages (11th Edition)
Concepts of Programming Languages (11th Edition)
11th Edition
ISBN: 9780133943023
Author: Robert W. Sebesta
Publisher: PEARSON
bartleby

Concept explainers

Question
Book Icon
Chapter 5, Problem 2PE
Program Plan Intro

Static scoping:

This means that the scope of a variable can be determined prior to the execution. So that, compiler can determines the type of every variable in the source code. It provides a method of non-local access of a variable.

Example: ALGOL, Ada, C, and Pascal are statically scoped.

Dynamic scoping:

This means that the scope of a variable is dynamic. That is, it refers to change. The call stack can be different from every time a current function is called, and so the function might have different variables depending on where it is called from.

Example: Common LISP supports dynamic scoping.

Blurred answer
Students have asked these similar questions
Some programming languages are typeless. What are the obvious advantages anddisadvantages of having no types in a language?
Explain the meaning of having no types in a language?
Explain what the term "portability" means in terms of programming languages.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education