The concept of Binding

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.
👁 347
statistics
calculate
Questions #: 12
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
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
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

The time at which a binding between an attribute and an entity takes place is called _____ ______

Missing
POINTS (1)

Correct Answer

Explanation

Views:
Trials:
Avg score:
0
sin cos tan
sin-1 cos-1 tan-1 π e
xy x3 x2 ex 10x
y√x 3√x √x ln log
( ) 1/x % n!
7 8 9 + MS
4 5 6 M+
1 2 3 × M-
0 . EXP ÷ MR
± RND C = MC

Document Actions