6 votes 6 votes 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; show; end; begin x:=0.25 show; small end. Then the output of the program is: 0.125 0.125 0.25 0.25 0.25 0.125 0.125 0.25 Programming in C gate1999 programming variable-binding normal out-of-syllabus-now + – Kathleen asked Sep 23, 2014 • retagged Dec 20, 2015 by Akash Kanase Kathleen 5.8k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 17 votes 17 votes ans c) In dynamic scoping, if a variable is not found in the local scope it is looked up on at the function from which the call is made. Aditi Dan answered Dec 19, 2014 • selected Dec 22, 2014 by Arjun Aditi Dan comment Share Follow See all 7 Comments See all 7 7 Comments reply rajatmyname commented Apr 11, 2017 reply Follow Share Mam, can you explain what we mean by real data type? 0 votes 0 votes Prashant. commented Apr 11, 2017 reply Follow Share Real data type used to represent Real numbers. 0 votes 0 votes rajatmyname commented Apr 11, 2017 reply Follow Share but sir is there any real keyword in c programming language practically? 0 votes 0 votes Prashant. commented Apr 11, 2017 reply Follow Share Program given is in Pascal language, May be in Pascal there is keyword name real. In c we use int, float, long int etc which are subset of real. http://www.algorithmic-solutions.info/leda_manual/real.html 0 votes 0 votes eyeamgj commented Sep 10, 2017 reply Follow Share finding outputs of procedural language is still in syllabus? 0 votes 0 votes tonystark007 commented Sep 16, 2017 reply Follow Share Its answer should be option: "b: .25 .25" because x is also declared in procedure small hence scope of variable x = .125 will be limited to procedure small only. 0 votes 0 votes hem chandra joshi commented Nov 16, 2017 reply Follow Share so if it would ask for static scope then c would be the answer ? @bikram sir 0 votes 0 votes Please log in or register to add a comment.
6 votes 6 votes .... Hira Thakur answered Nov 16, 2017 Hira Thakur comment Share Follow See all 0 reply Please log in or register to add a comment.