NEW
New Website Launch
Experience the best way to solve previous year questions with mock tests (very detailed analysis), bookmark your favourite questions, practice etc...
1

### GATE CSE 2005

Consider line number 3 of the following C - program.
int main ( ) {              /* Line 1 */
int I, N;                   /* Line 2 */
fro (I = 0, I < N, I++);    /* Line 3 */
} 
A
No compilation error
B
Only a lexical error
C
Only syntactic errors
D
Both lexical and syntactic errors
2

### GATE CSE 2003

Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries?
A
Smaller sizes of executable files
B
Lesser overall page fault rate in the system
C
Faster program startup
D
3

### GATE CSE 2003

Consider the syntax directed definition shown below.

Here, gen is a function that generates the output code, and newtemp is a function that returns the name of a new temporary variable on every call. Assume that ti's are the temporary variable names generated by newtemp. For the statement 'X : = Y + Z', the 3-address code sequence generated by this definition is

A
$$X = Y + Z$$
B
$${t_1} = Y + Z;X = {t_1}$$
C
$${t_1} = Y;{t_2} = {t_1} + Z;X = {t_2}$$
D
$${t_1} = Y;{t_2} = Z;\,{t_3} = {t_1} + {t_2};X = {t_3}$$
Write for Us

Do you want to write for us? Help us by contributing to our platform.

#### Questions Asked from Code Generation and Optimization

On those following papers in Marks 2
Number in Brackets after Paper Indicates No. of Questions
GATE CSE 2015 Set 2 (1)
GATE CSE 2015 Set 1 (2)
GATE CSE 2014 Set 2 (1)
GATE CSE 2006 (2)
GATE CSE 2005 (1)
GATE CSE 2003 (2)

### Joint Entrance Examination

JEE Main JEE Advanced WB JEE

### Graduate Aptitude Test in Engineering

GATE CSE GATE ECE GATE EE GATE ME GATE CE GATE PI GATE IN

NEET

Class 12