Question: 1. Consider the following code segment The function big calls subl which calls sub2 which uses x. The value ofx is_with Static scoping function bigo

 1. Consider the following code segment The function big calls sublwhich calls sub2 which uses x. The value ofx is_with Static scoping

1. Consider the following code segment The function big calls subl which calls sub2 which uses x. The value ofx is_with Static scoping function bigo function sub10 ( var x big calls subl sub1 calls sub2 sub2 uses x 7; function sub20 varyx function sub30( var x 10; A. 3 B. 7 C. 10 D not defined 2. Consider the following code segment The function big calls subl which calls sub2 which uses x. With Static scoping, which one of the following statements is CORRECT? function big0 big calls subl subl calls sub2 sub2 uses x function sub10 var x = 7; function sub20 ( var y = x; function sub3) var x = 10; var x = 3 A. The reterence to x in sub2 is big's X. B. The reference to x in sub2 is subl's x C. The reference to x in sub2 is sub3's X. D-The reference to x in sub2 is not defined

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!