The concept of Binding

👁 84
statistics
by Dr. Osama M. Khaled last modified 2022-09-06T00:32:46+00:00

A binding is an association between an attribute and an entity, such as between a variable and its type or value, or between an operation and a symbol.

Questions #: 11
Time: 20 minutes
Pass Score: 80.0%
Style
Mode

A relation between an attribute and an entity

A __________ is an association between an attribute and an entity, such as between a variable and its type or value, or between an operation and a symbol.

Missing
POINTS (1)

Correct Answer

Explanation

Bindings between attributes and entities can take place at

language design time
language implementation time
compile time
load time
link time
run time
POINTS (1)

Correct Answer

Explanation

The asterisk symbol (*) is usually bound to the multiplication operation at

POINTS (1)

Correct Answer

Explanation

Examples of bindings between attributes and entities

  • the asterisk symbol (*) is usually bound to the multiplication operation at (1) transparent .
  • A data type, such as int in C, is bound to a range of possible values at (2) transparent .
  • A variable in a Java program is bound to a particular data type at (3) transparent .
  • A variable may be bound to a storage cell when the program is loaded into memory at (4) transparent . That same binding does not happen until (5) transparent in some cases, as with variables declared in Java methods.
  • A call to a library subprogram is bound to the subprogram code at (6) transparent .
drag and drop the selected option to the right place or type it instead
language implementation time
language design time
compile time
run time
load time
link time
POINTS (1)

Correct Answer

Explanation

Analyze the binding times of the following Java assignment statement

count = count + 5;

  • The type of count is bound at (1) transparent .
  • The set of possible values of count is bound at compiler (2) transparent .
  • The meaning of the operator symbol + is bound at (3) transparent , when the types of its operands have been determined.
  • The internal representation of the literal 5 is bound at compiler (4) transparent .
  • The value of count is bound at (5) transparent with this statement
drag and drop the selected option to the right place or type it instead
compile time
design time
execution time
POINTS (1)

Correct Answer

Explanation

A complete understanding of the binding times for the attributes of program entities is _______ for understanding the semantics of a programming language

POINTS (1)

Correct Answer

Explanation

A binding is _________ if it first occurs before run time begins and remains unchanged throughout program execution

POINTS (1)

Correct Answer

Explanation

If the binding first occurs during run time or can change in the course of program execution, it is called ________

POINTS (1)

Correct Answer

Explanation

Before a variable can be referenced in a program, it must be bound to a data ________

POINTS (1)

Correct Answer

Explanation

The two important aspects of binding a variable to its data type are

how the type is specified
when the binding takes place
POINTS (1)

Correct Answer

Explanation

In programs, types can be specified statically through some form of explicit or implicit declaration

POINTS (1)

Correct Answer

Explanation

Views:
Trials:
Avg score: