edited by
5,102 views
7 votes
7 votes

Early binding refers to a binding performed at compile time and late binding refers to a binding performed at execution time. Consider the following statements:

  1. Static scope facilitates w1 bindings.
  2. Dynamic scope requires w2 bindings.
  3. Early bindings w3 execution efficiency.
  4. Late bindings w4 execution efficiency.

The right choices of w1, w2, w3 and w4 (in that order) are

  1. Early, late, decrease, increase
  2. Late, early, increase, decrease
  3. Late, early, decrease, increase
  4. Early, late, increase, decrease
edited by

1 Answer

Best answer
20 votes
20 votes
Static scoping can do early binding (during compile time). Early binding increases efficiency.

Dynamic scoping requires late binding (during execution time). Late binding decreases efficiency as this binding needs to be done at runtime. (but it increases flexibility)

So, answer is (D)
selected by
Answer:

Related questions