Recent questions tagged runtime-environment

9.4k
views
4 answers
29 votes
Which one of the following is NOT performed during compilation?Dynamic memory allocationType checkingSymbol table managementInline expansion
13.4k
views
4 answers
41 votes
Consider the program given below, in a block-structured pseudo-language with lexical scoping and nesting of procedures permitted.Program main; Var ... Procedure ... set of activation records along with their access links is given by:
9.0k
views
1 answers
28 votes
Faster access to non-local variables is achieved using an array of pointers to activation records called a stackheapdisplayactivation tree
6.1k
views
2 answers
18 votes
A linker reads four modules whose lengths are $200, 800, 600$ and $500$ words, respectively. If they are loaded in that order, what are the relocation constants?$0, 200, 500, 600$0, 200, 1000, 1600$200, 500, 600, 800$200, 700, 1300, 2100$
9.6k
views
3 answers
26 votes
In a resident – OS computer, which of the following systems must reside in the main memory under all situations?AssemblerLinkerLoaderCompiler
6.1k
views
1 answers
13 votes
What will be the output of the following program assuming that parameter passing iscall by valuecall by referencecall by copy restoreprocedure P{x, y, z}; begin y:y+1; z: x+x; end; begin a:= b:= 3; P(a+b, a, a); Print(a); end
15.2k
views
5 answers
30 votes
Consider the following functionvoid swap(int a, int b) { int temp; temp = a; a = b; b = temp; }In order to exchange the values of two variables $x$ and ... return any value$swap (x, y)$ cannot be used as the parameters are passed by value
16.8k
views
4 answers
51 votes
Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statistically linked libraries?Smaller sizes of ... need not be re-linked to take advantage of newer versions of libraries
9.6k
views
5 answers
40 votes
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 ... $25, 220$25, 15$115, 105$
7.2k
views
4 answers
28 votes
Dynamic linking can cause security concerns becauseSecurity is dynamicThe path for searching dynamic libraries is not known till runtimeLinking is insecureCryptographic procedures are not available for dynamic linking
12.9k
views
2 answers
36 votes
The process of assigning load addresses to the various parts of the program and adjusting the code and the data in the program to reflect the assigned addresses is calledAssemblyparsingRelocationSymbol resolution
18.6k
views
10 answers
44 votes
Suppose a processor does not have any stack pointer registers, which of the following statements is true?It cannot have subroutine call ... nested subroutines callInterrupts are not possibleAll subroutine calls and interrupts are possible
3.7k
views
3 answers
27 votes
Consider the following pseudo-code (all data items are of type integer): procedure P(a, b, c); a := 2; c := a + b; end {P} begin x ... ); endDetermine its output, if the parameters are passed to the Procedure $\text{P}$ byvaluereferencename
6.1k
views
1 answers
24 votes
Match the pairs in the following questions by writing the corresponding letters only. ...
21.5k
views
7 answers
41 votes
Which of the following are true?A programming language which does not permit global variables of any kind and has no nesting of procedures/functions, but permits recursion can ... V onlyI, III and IV onlyI, II and V onlyII, III and V only
19.8k
views
3 answers
40 votes
The use of multiple register windows with overlap causes a reduction in the number of memory accesses for:Function locals and parametersRegister saves and restoresInstruction fetches ... $\text{I}, \text{II}$ and $\text{III}$
21.7k
views
2 answers
73 votes
What is the return value of $f(p,p)$, if the value of $p$ is initialized to $5$ before the call? Note that the first parameter is passed by reference, whereas the second parameter is ... if (c==0) return 1; x = x + 1; return f(x,c) * x; }