GATE | Gate IT 2007 | Question 35

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:

i. Static scope facilitates w1 bindings.

ii. Dynamic scope requires w2 bindings.

iii. Early bindings w3 execution efficiency.

iv. Late bindings w4 execution efficiency.

The right choices of wl, w2, w3 and w4 (in that order) are
(A) Early, late, decrease, increase
(B) Late, early, increase, decrease
(C) Late, early, decrease, increase
(D) Early, late, increase, decrease

Answer: (D)

Explanation: Early binding can be done in Static Scoping(during compile time). Early binding increases efficiency (running time will be reduced).
Late binding can be done in Dynamic scoping (during execution time). Late binding decreases efficiency as it needs to be done at run-time. (but it increases flexibility)

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.