# The concept of Binding

👁 84
statistics

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)

#### Bindings between attributes and entities can take place at

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

POINTS (1)

#### Examples of bindings between attributes and entities

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

#### Analyze the binding times of the following Java assignment statement

count = count + 5;

• The type of count is bound at (1) .
• The set of possible values of count is bound at compiler (2) .
• The meaning of the operator symbol + is bound at (3) , when the types of its operands have been determined.
• The internal representation of the literal 5 is bound at compiler (4) .
• The value of count is bound at (5) 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)

POINTS (1)

POINTS (1)

POINTS (1)

POINTS (1)

#### 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)

POINTS (1)