Recent questions tagged variable-binding

5 5 votes
3 answers 3 answers
10.5k
10.5k views
Consider the following psuedocode:x: integer := 1 y: integer := 2 procedure add x:= x + y procedure second (P: Procedure) x: integer := 2 p() procedure first y: integer :...
7 7 votes
3 answers 3 answers
10.1k
10.1k views
7 7 votes
1 answers 1 answer
6.7k
6.7k views
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:Static sco...
30 30 votes
5 answers 5 answers
12.6k
12.6k views
Consider the program below in a hypothetical programming language which allows global variables and a choice of static or dynamic scoping.int i; program main() { i = 10; ...
1 1 vote
1 answers 1 answer
2.6k
2.6k views
Consider the program below:Program main: var r:integer; procedure two: begin write (r); end procedure one: var r:integer; begin r:=5; two; end begin r:=2; two; one; two; ...
9 9 votes
3 answers 3 answers
8.5k
8.5k views
Consider the following program in a language that has dynamic scooping:var x: real; procedure show: begin print(x);end; procedure small; var x: real; begin x: = 0.125; sh...
2 2 votes
2 2 answers
7.6k
7.6k views
Consider the following class definitions in a hypothetical Object Oriented language that supports inheritance and uses dynamic binding. The language should not be assumed...
To see more, click for the full list of questions or popular tags.