Recent questions tagged runtime-environments

1
Consider the following statements. $S_1:$ The sequence of procedure calls corresponds to a preorder traversal of the activation tree. $S_2:$ The sequence of procedure returns corresponds to a postorder traversal of the activation tree. Which one of the following options is correct? $S_1$ is true and ... $S_2$ is true $S_1$ is true and $S_2$ is true $S_1$ is false and $S_2$ is false
2
The identification of common sub-expression and replacement of run time computations by compile-time computations is: Local optimization Constant folding Loop Optimization Data flow analysis
3
Which of the following statement(s) regarding a linker software is/are true ? A function of a linker is to combine several object modules into a single load module. A function of a linker is to replace absolute references in an object module by symbolic references to locations in other modules. Only I Only II Both I and II Neither I nor II
4
Consider the following statements. Symbol table is accessed only during lexical analysis and syntax analysis. Compilers for programming languages that support recursion necessarily need heap storage for memory allocation in the run-time environment. Errors violating the condition any variable must be ... of the above statements is/are TRUE? I only I and III only Ⅱ only None of Ⅰ, Ⅱ and Ⅲ
5
The task of adjusting programs so that they may be placed in arbitrary core locations is called relocation. This task is often performed by the relocating loaders. Given below are the tasks performed by the relocating loaders. Identify the correct sequence in which the tasks need to be performed. 1. Resolve symbolic references between ... $2 \: 1 \: 3 \: 4$ $3 \: 1 \: 4 \: 2$ $2 \: 1 \: 4 \: 3$
1 vote
6
The two basic operations that are often performed with the symbol table are: 1. Set and reset 2. Set and insert 3. Insert and lookup 4. Reset and lookup
7
1 vote
8
Does Heap Allocation support both recursion and dynamic memory allocation? Because,a stack can be implemented using dynamic memory allocation.Please correct me. Test Series answer shows only dynamic memory allocation
1 vote
9
Which of the Following is True ? A. Symbol table Construction is during the analysis part of the Compiler. B. Type checking is Done during Syntax Analysis phase C. SDD with only synthesized attribute have an order of evaluation D. Both A and C Please Explain the C part only rest are easy :)
1 vote
10
What is runtime enviornment (Is it do anything more than running the program?)? Where Stack Pointer generally needed?Why it is needed runtime and not compile time? Has it any link with interrupts?
11
As actual parameters are stored in the Actual parameter field in case of Activation record then where does formal parameters will be stored? f(a,b) { a(e,f) } Here e,f are actual parameters that will be stored in actual parameter field,but where does formal parameters a,b will be stored for f activation record?
12
13
14
In a computing center there are four types of jobs according to their arrival times (in seconds), their priorities and their run times (in seconds); see the table below: -----------------Type 1------ Type 2---- Type 3---- Type 4 arrival ... robin on every priority level - the higher the priority, the sooner they run) scheduling algorithm. [please use a quantum that provides short response time.]
1 vote
15
16
Match the following with respect to activation record fields: A 1 → A, D; 2 → B, C B 1 → A, C; 2 → B, D C 1 → B, C; 2 → A, D D 1 → B, D; 2 → A, C Doubt:- Control link points to caller activation record.Can some one confirm?
17
Consider the following statements: S1 : Static allocation can not support recursive function. S2 : Stack allocation can support pointers but can not deallocate storage at run-time. S3 : Heap allocation can support pointers and it can allocate or deallocate storage at run-time. Which of the above statements are true? a S1 and S2 b S2 and S3 c S3 and S1 d S1, S2 and S3
1 vote
18
19
Consider the following table : ... $a-q, b-r, c-s, d-p$ $a-r, b-s, c-q, d-p$ $a-r, b-s, c-p, d-q$
20
Self doubt--Hello i am preparing for gate on my own reading textbooks. There is a very detailed garbage collection part in runtime environments part in Aho ullman.. How much to read from there.. Any past gate rankers and fellow gate aspirants kindly reply.