Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged runtime-environment
0
votes
2
answers
61
Gate Compiler Runtime Administration
In Storage allocation strategies the following strategies are there : 1)Static Allocation 2)Stack Allocation 3)Heap Allocation What is the difference among all three?
In Storage allocation strategies the following strategies are there :1)Static Allocation2)Stack Allocation3)Heap AllocationWhat is the difference among all three?
LavTheRawkstar
4.3k
views
LavTheRawkstar
asked
Nov 10, 2016
Compiler Design
compiler-design
runtime-environment
+
–
16
votes
2
answers
62
GATE CSE 1987 | Question: 1-xx
For the program given below what will be printed by the write statements marked $(1)$ and $(2)$ in the program if the variables are dynamically scoped? Var x, y:interger; procedure P(n:interger); begin x := (n+2)/(n-3); end; procedure Q Var x, y:interger; begin x:=3; y:=4; P ... (1) end; begin x:=7; y:=8; Q; Write(x); __(2) end. $3, 6$ $6, 7$ $3, 7$ None of the above
For the program given below what will be printed by the write statements marked $(1)$ and $(2)$ in the program if the variables are dynamically scoped?Var x, y:interger; ...
makhdoom ghaya
3.4k
views
makhdoom ghaya
asked
Nov 8, 2016
Compiler Design
gate1987
compiler-design
variable-scope
runtime-environment
+
–
25
votes
2
answers
63
GATE CSE 1987 | Question: 1-xix
Study the following program written in a block-structured language: Var x, y:interger; procedure P(n:interger); begin x:=(n+2)/(n-3); end; procedure Q Var x, y:interger; begin x:=3; y:=4; P(y); Write(x) __(1) end; begin x:=7; y:=8; Q; Write(x); ... marked $(1)$ and $(2)$ in the program if the variables are statically scoped? $3, 6$ $6, 7$ $3, 7$ None of the above.
Study the following program written in a block-structured language:Var x, y:interger; procedure P(n:interger); begin x:=(n+2)/(n-3); end; procedure Q Var x, y:interger; b...
makhdoom ghaya
7.3k
views
makhdoom ghaya
asked
Nov 8, 2016
Compiler Design
gate1987
compiler-design
variable-scope
runtime-environment
+
–
1
votes
1
answer
64
UGC NET CSE | June 2010 | Part 2 | Question: 31
In an absolute loading scheme, which loader function is accomplished by a loader ? Re-allocation Allocation Linking Loading
In an absolute loading scheme, which loader function is accomplished by a loader ?Re-allocationAllocationLinkingLoading
makhdoom ghaya
2.3k
views
makhdoom ghaya
asked
Sep 15, 2016
Compiler Design
ugcnetcse-june2010-paper2
system-software&-compilers
compiler-design
runtime-environment
+
–
2
votes
2
answers
65
UGC NET CSE | December 2014 | Part 3 | Question: 19
Consider the following statements $S1, S2$ and $S3$: $S1$: In call-by-value, anything that is passed into a function call is unchanged in the caller's scope when the function returns. $S2$: In call-by-reference, a function receives implicit reference to a ... $S3$ and $S1$ are true. $S2$ and $S1$ are true. $S1, S2, S3$ are true.
Consider the following statements $S1, S2$ and $S3$:$S1$: In call-by-value, anything that is passed into a function call is unchanged in the caller’s scope when the fun...
makhdoom ghaya
2.8k
views
makhdoom ghaya
asked
Jul 25, 2016
Compiler Design
ugcnetcse-dec2014-paper3
compiler-design
runtime-environment
parameter-passing
+
–
19
votes
2
answers
66
ISRO2015-80
Consider the following code fragment void foo(int x, int y) { x+=y; y+=x; } main() { int x=5.5; foo(x,x); } What is the final value of $\textsf{x}$ in both call by value and call by reference, respectively? $5$ and $16$ $5$ and $12$ $5$ and $20$ $12$ and $20$
Consider the following code fragmentvoid foo(int x, int y) { x+=y; y+=x; } main() { int x=5.5; foo(x,x); }What is the final value of $\textsf{x}$ in both call by value an...
go_editor
7.2k
views
go_editor
asked
Jun 21, 2016
Compiler Design
isro2015
compiler-design
runtime-environment
parameter-passing
+
–
5
votes
4
answers
67
ISRO2007-57
Which of the following programming language(s) provides garbage collection automatically Lisp C++ Fortan C
Which of the following programming language(s) provides garbage collection automaticallyLispC++FortanC
go_editor
3.9k
views
go_editor
asked
Jun 10, 2016
Programming in C
isro2007
programming
runtime-environment
+
–
3
votes
2
answers
68
When a function is recursively called, all automatic variables
When a function is recursively called, all automatic variables : are initialized during each execution of the function are retained from the last execution are maintained in a stack are ignored
When a function is recursively called, all automatic variables :are initialized during each execution of the functionare retained from the last executionare maintained in...
Sanjay Sharma
12.7k
views
Sanjay Sharma
asked
Jun 9, 2016
Programming in C
runtime-environment
+
–
6
votes
1
answer
69
CMI2014-A-06
Suppose we are working with a programming language that supports automatic garbage collection. This means that: Uninitialized variables are assigned null values. Unreferenced dynamically allocated memory is added back to free space. Unreachable $\text{if – then – else}$ branches are pruned. Expressions where array indices exceed array bounds are flagged.
Suppose we are working with a programming language that supports automatic garbage collection. This means that:Uninitialized variables are assigned null values.Unreferenc...
go_editor
792
views
go_editor
asked
May 27, 2016
Compiler Design
cmi2014
compiler-design
runtime-environment
+
–
10
votes
3
answers
70
CMI2011-A-08
In programming languages like C, C++, Python $\dots$ the memory used by a program is typically separated into two parts, the stack and the heap. Consider the following statements: A stack is efficient for managing nested function calls. Stack space is limited while heap space is not. ... $2$ is false. $2$ and $3$ are true but $1$ is false. All three statements are true.
In programming languages like C, C++, Python $\dots$ the memory used by a program is typically separated into two parts, the stack and the heap. Consider the following st...
go_editor
1.7k
views
go_editor
asked
May 19, 2016
Compiler Design
cmi2011
compiler-design
runtime-environment
+
–
7
votes
1
answer
71
CMI2010-A-08
In programming language terminology, $\text{ call by value }$ refers to the fact that: A function call can return a value. When a function is called, arguments are copied into local storage. Functions can indirectly modify the value of external variables. Every argument passed to a function must have a value.
In programming language terminology, $\text{ call by value }$ refers to the fact that:A function call can return a value.When a function is called, arguments are copied i...
go_editor
1.2k
views
go_editor
asked
May 19, 2016
Compiler Design
cmi2010
compiler-design
runtime-environment
parameter-passing
+
–
4
votes
3
answers
72
ISRO-2013-7
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 := 3 second (add) first () write_integer(x) What does it print if the language uses dynamic scoping with deep binding? $2$ $3$ $4$ $5$
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 :...
makhdoom ghaya
8.0k
views
makhdoom ghaya
asked
Apr 25, 2016
Compiler Design
isro2013
runtime-environment
variable-binding
+
–
22
votes
3
answers
73
GATE CSE 1991 | Question: 09b
For the following code, indicate the output if static scope rules dynamic scope rules are used var a,b : integer; procedure P; a := 5; b := 10; end {P}; procedure Q; var a, b : integer; P; end {Q}; begin a := 1; b := 2; Q; Write ('a = ', a, 'b = ', b); end
For the following code, indicate the output if static scope rulesdynamic scope rulesare usedvar a,b : integer; procedure P; a := 5; b := 10; end {P}; procedure Q; var a, ...
go_editor
4.2k
views
go_editor
asked
Apr 24, 2016
Compiler Design
gate1991
runtime-environment
normal
compiler-design
parameter-passing
descriptive
+
–
7
votes
1
answer
74
GATE CSE 1992 | Question: 10b
Show the activation records and the display structure just after the procedures called at lines marked $x$ and $y$ have started their execution. Be sure to indicate which of the two procedures named $A$ you are referring to. Program Test; Procedure A; Procedure B; Procedure A; begin …… end A; begin y: A; end B; begin B; end A; begin x: A; end Test
Show the activation records and the display structure just after the procedures called at lines marked $x$ and $y$ have started their execution. Be sure to indicate which...
go_editor
1.5k
views
go_editor
asked
Apr 24, 2016
Programming in C
gate1992
parameter-passing
programming
runtime-environment
normal
descriptive
+
–
43
votes
5
answers
75
GATE CSE 2003 | Question: 74
The following program fragment is written in a programming language that allows global variables and does not allow nested declarations of functions. global int i=100, j=5; void P(x) { int i=10; print(x+10); i=200; j=20; print (x); } main() {P(i ... by name parameter passing mechanism, the values printed by the above program are $115, 220$ $25, 220$ $25, 15$ $115, 105$
The following program fragment is written in a programming language that allows global variables and does not allow nested declarations of functions.global int i=100, j=5...
go_editor
12.8k
views
go_editor
asked
Apr 24, 2016
Compiler Design
gatecse-2003
programming
compiler-design
parameter-passing
runtime-environment
normal
+
–
0
votes
1
answer
76
Binding
After the assignment pi=3.14 if the storage address 200 associated with varaible pi is used , then the assignment changes 1) Enviorment 2) state c) binding d) none As far as i know Binding happen at run time . Now whenever we declare a variable we are binding ... Enviorment . Now assigning the value to this variable is a state . So now after assignment the STATE would changes . am i right ?
After the assignment pi=3.14 if the storage address 200 associated with varaible pi is used , then the assignment changes1) Enviorment2) statec) bindingd) noneAs far as i...
Dexter
4.0k
views
Dexter
asked
Apr 12, 2016
Compiler Design
compiler-design
runtime-environment
+
–
1
votes
1
answer
77
Compilers
System programs such as Compiler are designed so that they are 1) Recursive 2) Serially usable 3) Non reusable 4) Reenterable Please provide explanation too
System programs such as Compiler are designed so that they are1) Recursive2) Serially usable3) Non reusable4) ReenterablePlease provide explanation too
Dexter
2.0k
views
Dexter
asked
Apr 12, 2016
Compiler Design
compiler-design
runtime-environment
+
–
21
votes
1
answer
78
GATE CSE 1989 | Question: 3-viii
In which of the following case(s) is it possible to obtain different results for call-by-reference and call-by-name parameter passing? Passing an expression as a parameter Passing an array as a parameter Passing a pointer as a parameter Passing as array element as a parameter
In which of the following case(s) is it possible to obtain different results for call-by-reference and call-by-name parameter passing?Passing an expression as a parameter...
Cruise Device
4.5k
views
Cruise Device
asked
Jan 22, 2016
Compiler Design
gate1989
parameter-passing
runtime-environment
compiler-design
multiple-selects
+
–
7
votes
4
answers
79
Parameter Passing | GATE 1993 | common data questions 6 marks
Consider the block of code given below: Program PARAM(input,output); var m,n:integer; procedure P(var x,y:integer); var m:integer; begin m:=1; x:=y+1; end; procedure Q(x:integer; var y:integer); begin x:=y+1; end; begin m:=0; P ... of the above 32. What is the scope of m declared in the main program? a)PARAM,P,Q b)PARAM,P c)PARAM,Q d)P,Q
Consider the block of code given below:Program PARAM(input,output);var m,n:integer;procedure P(var x,y:integer);var m:integer;beginm:=1;x:=y+1;end;procedure Q(x:integer; ...
Aspi R Osa
3.2k
views
Aspi R Osa
asked
Dec 10, 2015
Compiler Design
parameter-passing
runtime-environment
+
–
1
votes
2
answers
80
ISRO2014-39
If only one memory location is to be reserved for a class variable, no matter how many objects are instantiated, then the variable should be declared as extern static volatile const
If only one memory location is to be reserved for a class variable, no matter how many objects are instantiated, then the variable should be declared asexternstaticvolati...
ajit
2.4k
views
ajit
asked
Aug 15, 2015
Programming in C
programming
isro2014
runtime-environment
+
–
25
votes
1
answer
81
GATE IT 2007 | Question: 33
Consider the program below in a hypothetical language which allows global variable and a choice of call by reference or call by value methods of parameter passing. int i ; program main () { int j = 60; i = 50; call f (i, j); print i, j; } procedure f (x, y) { i = 100; x ... :$ i = 100, j = 60$ Call by value : $i = 100, j = 60$; Call by reference :$ i = 10, j = 70$
Consider the program below in a hypothetical language which allows global variable and a choice of call by reference or call by value methods of parameter passing. ...
Ishrat Jahan
8.5k
views
Ishrat Jahan
asked
Oct 29, 2014
Compiler Design
gateit-2007
programming
parameter-passing
normal
compiler-design
runtime-environment
+
–
21
votes
1
answer
82
GATE CSE 1996 | Question: 2.17
The correct matching for the following pairs is ... $\text{A-4 B-3 C-1 D-2}$ $\text{A-4 B-3 C-2 D-1}$ $\text{A-3 B-4 C-2 D-1}$
The correct matching for the following pairs is$$\begin{array}{ll|ll} \text{(A)}&\text{Activation record} & \text{(1)} &\text{Linking loader} \\ \text{(B)} &\text{Locati...
Kathleen
5.8k
views
Kathleen
asked
Oct 9, 2014
Operating System
gate1996
operating-system
easy
runtime-environment
+
–
13
votes
6
answers
83
GATE CSE 1995 | Question: 2.4
What is the value of $X$ printed by the following program? program COMPUTE (input, output); var X:integer; procedure FIND (X:real); begin X:=sqrt(X); end; begin X:=2 FIND(X); writeln(X); end. $2$ $\sqrt{2}$ Run time error None of the above
What is the value of $X$ printed by the following program?program COMPUTE (input, output); var X:integer; procedure FIND (X:real); begin X:=sqrt(X); end; begin X:=2 FIND(...
Kathleen
6.9k
views
Kathleen
asked
Oct 8, 2014
Compiler Design
gate1995
compiler-design
parameter-passing
runtime-environment
easy
+
–
44
votes
1
answer
84
GATE CSE 1995 | Question: 1.14
A linker is given object modules for a set of programs that were compiled separately. What information need to be included in an object module? Object code Relocation bits Names and locations of all external symbols defined in the object module Absolute addresses of internal symbols
A linker is given object modules for a set of programs that were compiled separately. What information need to be included in an object module?Object codeRelocation bitsN...
Kathleen
16.6k
views
Kathleen
asked
Oct 8, 2014
Compiler Design
gate1995
compiler-design
runtime-environment
normal
+
–
11
votes
3
answers
85
GATE CSE 1993 | Question: 26
A stack is used to pass parameters to procedures in a procedure call. If a procedure $P$ has two parameters as described in procedure definition: procedure P (var x :integer; y: integer); and if $P$ is called by ; $P(a, b)$ State precisely in a ... $b$ In the generated code for the body of procedure $P$, how will the addressing of formal parameters $x$ and $y$ differ?
A stack is used to pass parameters to procedures in a procedure call.If a procedure $P$ has two parameters as described in procedure definition:procedure P (var x :intege...
Kathleen
2.9k
views
Kathleen
asked
Sep 29, 2014
Compiler Design
gate1993
compiler-design
parameter-passing
runtime-environment
normal
descriptive
+
–
14
votes
2
answers
86
GATE CSE 1993 | Question: 7.7
A part of the system software which under all circumstances must reside in the main memory is: text editor assembler linker loader none of the above
A part of the system software which under all circumstances must reside in the main memory is:text editorassemblerlinkerloadernone of the above
Kathleen
6.4k
views
Kathleen
asked
Sep 29, 2014
Compiler Design
gate1993
compiler-design
runtime-environment
easy
+
–
19
votes
4
answers
87
GATE CSE 1997 | Question: 1.10
Heap allocation is required for languages. that support recursion that support dynamic data structure that use dynamic scope rules None of the above
Heap allocation is required for languages.that support recursionthat support dynamic data structurethat use dynamic scope rulesNone of the above
Kathleen
7.1k
views
Kathleen
asked
Sep 29, 2014
Compiler Design
gate1997
compiler-design
easy
runtime-environment
+
–
17
votes
2
answers
88
GATE CSE 1997 | Question: 1.8
A language $L$ allows declaration of arrays whose sizes are not known during compilation. It is required to make efficient use of memory. Which one of the following is true? A compiler using static memory allocation can be written for $L$ A compiler ... $L$; an interpreter must be used A compiler using dynamic memory allocation can be written for $L$ None of the above
A language $L$ allows declaration of arrays whose sizes are not known during compilation. It is required to make efficient use of memory. Which one of the following is tr...
Kathleen
4.6k
views
Kathleen
asked
Sep 29, 2014
Compiler Design
gate1997
compiler-design
easy
runtime-environment
+
–
24
votes
3
answers
89
GATE CSE 2010 | Question: 14
Which languages necessarily need heap allocation in the runtime environment? Those that support recursion. Those that use dynamic scoping. Those that allow dynamic data structure. Those that use global variables.
Which languages necessarily need heap allocation in the runtime environment?Those that support recursion.Those that use dynamic scoping.Those that allow dynamic data stru...
go_editor
8.3k
views
go_editor
asked
Sep 29, 2014
Compiler Design
gatecse-2010
compiler-design
easy
runtime-environment
+
–
49
votes
3
answers
90
GATE CSE 2014 Set 3 | Question: 18
Which of the following statements are CORRECT? Static allocation of all data areas by a compiler makes it impossible to implement recursion. Automatic garbage collection is essential to implement recursion. Dynamic allocation of activation records is essential to implement recursion. Both heap ... and $2$ only $2$ and $3$ only $3$ and $4$ only $1$ and $3$ only
Which of the following statements are CORRECT?Static allocation of all data areas by a compiler makes it impossible to implement recursion. Automatic garbage collection i...
go_editor
13.0k
views
go_editor
asked
Sep 28, 2014
Compiler Design
gatecse-2014-set3
compiler-design
runtime-environment
normal
+
–
Page:
« prev
1
2
3
4
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register