Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A program _ is an abstraction in a programming language for the memory location in a von Neumann architecture computer. QUESTION 2 A variable is
A program _ is an abstraction in a programming language for the memory location in a von Neumann architecture computer. QUESTION 2 A variable is characterized by such attributes as: Name Address Value Type Lifetime Scope All of above There are two types of special words in programming languages to separate the syntactic parts of statements and programs. A keyword is a special word that is special only in certain contexts. A(n) word is a special word that cannot be used as a name; it is special in all contexts. QUESTION 4 The address of a variable (I-value) is the machine memory address with which it is associated. Which of the following is an incorrect statement of the address of a variable? A variable may have different addresses at different times during execution. The same name my have different addresses at different places in a program. If two variable names can be used to access the same memory location, they are called aliases. Aliases are harmful to program efficiency. A type determines the range of values that a variable can have and the set of operations that are defined for values of that type. True False QUESTION 6 A binding is an association, such as between an attribute and an entity, or between an operation and a symbol. A binding time is the time at which a binding takes place, and there several possibilities including: Language design time Language implementation time Compile time Load and linking time Runtime All of above A binding is if it first occurs before run time and remains unchanged throughout program execution. QUESTION 8 The of a variable is the time during which it is bound to a particular memory cell. Which storage binding scheme is described below? Storage bindings are created for variables when their declaration statements are elaborated. It allows recursion and conserves storage, however, it incurs overhead of allocation and deallocation and doesn't support history sensitive variables for subprograms. Static Stack-dynamic Explicit heap-dynamic Implicit heap-dynamic QUESTION 10 The of a variable is the range of statements over which it is visible
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started