in Programming in C edited by
5,111 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
in Programming in C edited by
5.1k views

1 Answer

20 votes
20 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
by

2 Comments

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.
20
20
Execution efficiency (in computing terms) refers to speed of execution or minimal number of resources used .. ?
0
0
Answer:

Related questions