Click to Get updated NTA UGC NET CS Test Series           Study Material for UGC NET Computer Science- 2019

Compiler Design - Runtime environments

21:

Given the following Pascal-like program segment
Procedure A,
x, y : integer ;
Procedure B;
x, z : real ;
S1
end B;
Procedure C;
i : integer ;
S2
end C
end A;
The variables accessible in S1 and S2 are

 A. x of A, y, x of B and z in S1 and x of B, y and i in S2 B. x of B, y and z in S1 and x of B, i and z in S2 C. x of B, z and y in S1 and x of A, i and y in S2 D. none of these Answer Report Discuss Option: C Explanation : Click on Discuss to view users comments. vishu said: (12:32pm on Tuesday 15th January 2013) in procedure c, how come x of B can have scope?i think option c is correct. shristi said: (2:18pm on Thursday 23rd May 2013) i think c is right Gargi said: (3:59pm on Saturday 28th May 2016) i also think c is correct. Write your comments here:
22:

An intermediate code form is

 A. postfix notation B. syntax trees C. three address codes D. all of these Answer Report Discuss Option: D Explanation : Click on Discuss to view users comments. Write your comments here:
23:

 A. exactly 3 address B. at the most 3 address C. no unary operators D. none of these Answer Report Discuss Option: B Explanation : Click on Discuss to view users comments. jayasree said: (10:37am on Tuesday 9th April 2013) three address code involves at most 3 addresses Write your comments here:
24:

The best way to compare the different implementations of symbol table is to compare the time required to

 A. add a new name B. make an inquiry C. add a new name and make an inquiry D. all of these Answer Report Discuss Option: D Explanation : Click on Discuss to view users comments. P.Sampurnima said: (12:38am on Saturday 4th May 2013) Three address code involves atleast two operands or atmost three operands.i.e minimum 2 operands should be there or maximum 3 operands should be there. Write your comments here:
25:

Advantage of panic mode of error recovery is that

 A. it is simple to implement B. it never gets into an infinite loop C. both (a) and (b) D. none of these Answer Report Discuss Option: C Explanation : Click on Discuss to view users comments. Write your comments here:

X