range of statements in which a variable is visible and can be referenced
scope
determines where a variable can be accessed or modified in a program
scope
scope is determined before execution at compile time
static scoping/lexical scoping
when a variable with the same name is declared in a nested block, it hides the outer variable
the outer variable can still be accessed using a qualified name
variable hiding/shadowing
TRUE OR FALSE: Pascal uses static/lexical scoping
TRUE
section of code that introduces a new scope for variables
block
TRUE OR FALSE: variables declared in a block are created upon block creation and are deleted upon block deletion
TRUE
TRUE OR FALSE: in Python, indentations are blocks
TRUE