Time Left - 06:00 mins

BARC CS 2018 Nuclear Quiz -1 ( CD )

Attempt now to get your rank among 487 students!

Question 1

Given the following expressions of a grammar
E E * F / F + E / F
F F – E / id
Which of the following is true?

Question 2

A shift-reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of the grammar.
S x x W [ print “1”]
S y [print “2”]
W S z[print “3”], what is the translation of “x x x x y z z”?

Question 3

A grammar G is LL(1) if and only if the following conditions hold for two distinct production
I. where a is some terminal symbol of the grammar.
II.
III.

Question 4

Loop unrolling is a code optimization technique:

Question 5

Consider the following intermediate program in three address code

Which one of the following corresponds to a static single assignment form of the above code?
  • 487 attempts
  • 3 upvotes
  • 2 comments
Apr 12GATE & PSU CS