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.

download Export
search_insights Statistics
stylus_note White Board
Quran
calculate Calculator
dictionary Dictionary
fullscreen Full Screen

QUESTION OF
Views #: 622
Questions #: 12
Time: 20 minutes
Pass Score: 80.0%
Style
Mode

A relation between an attribute and an entity

1 pts

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
note_alt Add notes
flag Flag

Correct Answer

Explanation

Bindings between attributes and entities can take place at

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

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

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

Examples of bindings between attributes and entities

1 pts
  • 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).
Please drag and drop the selected option in the right place or type it instead
language implementation time
language design time
compile time
run time
load time
link time
note_alt Add notes
flag Flag

Correct Answer

Explanation

Analyze the binding times of the following Java assignment statement

1 pts

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
Please drag and drop the selected option in the right place or type it instead
compile time
design time
execution time
note_alt Add notes
flag Flag

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

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

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

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

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

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

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

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

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

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

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

1 pts
volume_mute
note_alt Add notes
flag Flag

Correct Answer

Explanation

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

1 pts
Missing
note_alt Add notes
flag Flag

Correct Answer

Explanation

Keywords
Year 11