in Programming retagged by
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 wl, 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
in Programming retagged by

1 Answer

19 votes
19 votes
Best answer
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


Its just like let suppose we are famish and want to have dinner .Now there are two cases (1) i already know how to cook (kneading,rolling the dough, baking roti, cooking vegetable) so before cooking(Execution) at the time of planning( Compilation)i called 4 person ( Binding) to do these 4 tasks Thats Early binding ::Everything done before.( like ,binding of functions with their machine language instruction and variables with their value....)

Case (2) i dont know cooking and this time during cooking( Execution) as i face particular task i call person related to that task at that moment( ofcourse this " at the monent" phenomenon will consume time.Thats late binding : Things done at run time.
Execution efficiency (in computing terms) refers to speed of execution or minimal number of resources used .. ?

Related questions