Podcast
Questions and Answers
Match the following concepts with their definitions:
Match the following concepts with their definitions:
Referencing Environment = Collection of all variables visible in a statement Named Constant = Variable bound to a value only once, value cannot be changed Initialization = Binding of a variable to a value at the time it is bound to storage Aliasing in Variables = Multiple variables referring to the same memory location
Match the following programming terms with their descriptions:
Match the following programming terms with their descriptions:
Keywords vs. Reserved Words = Words with special meaning vs. words reserved by the language Variables Attributes = Properties associated with variables like scope or lifetime Variable Types and Values = Different data types a variable can hold and their corresponding values Binding in Programming = Association of an entity (variable) with properties like type and value
Match the following authors with their book titles:
Match the following authors with their book titles:
Robert W. Sebesta = Concepts of Programming Languages Mordechai Ben-Ari = Understanding Programming Languages Allan B. Tucker and Robert E. Noonan = Programming Languages: Principles and Paradigms No match needed = Mc-Graw Hill 04 Handout 1
Static variables are bound to different memory cells after program execution terminates.
Static variables are bound to different memory cells after program execution terminates.
Stack-dynamic variables have their storage bindings created after their declaration statements are elaborated.
Stack-dynamic variables have their storage bindings created after their declaration statements are elaborated.
Explicit heap-dynamic variables are allocated and deallocated by implicit run time instructions.
Explicit heap-dynamic variables are allocated and deallocated by implicit run time instructions.
Implicit heap-dynamic variables are bound to heap storage only when they are assigned values.
Implicit heap-dynamic variables are bound to heap storage only when they are assigned values.
Static scoping is also known as dynamic scoping.
Static scoping is also known as dynamic scoping.
Dynamic scoping is based on spatial relationship of subprograms.
Dynamic scoping is based on spatial relationship of subprograms.
The scope of a variable refers to a range of statements in which the variable is invisible.
The scope of a variable refers to a range of statements in which the variable is invisible.
Elaboration of a declaration refers to the storage allocation and binding process.
Elaboration of a declaration refers to the storage allocation and binding process.
Alias variables have different names but refer to the same memory location.
Alias variables have different names but refer to the same memory location.
Variables with static lifetimes are bound to random memory cells during program execution.
Variables with static lifetimes are bound to random memory cells during program execution.