Time Left - 05:00 mins

CBSE-NET Practices Quiz - 10 (Compiler Design )

Attempt now to get your rank among 204 students!

Question 1

A compiler that runs on the machine and produces code for a different machine is called:

Question 2

Among simple LR (SLR), canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the most powerful, in that order?

Question 3

Consider the following grammar.

What is FOLLOW (Q)?

Question 4

Consider the following code segment.
x = u-t;
y = x*v;
x = y+w;
y = t-z;
y = x*y;
 
The minimum number of total variables required to convert the above code segment to static single assignment form is _________.

Question 5

Consider the following C program.

void f(int, short);

void main()

{

int i = 100;

short s = 12;

short *p = &s;

____________; // call to f()

}

 
Which one of the following expressions, when placed in the blank above, will NOT result in a type checking error?

  • 204 attempts
  • 2 upvotes
  • 4 comments
Jul 13GATE & PSU CS