Time Left - 06:00 mins

BARC CS 2018 Nuclear Quiz -2 (CD)

Attempt now to get your rank among 465 students!

Question 1

In a two-pass assembler, symbol table is

Question 2

Consider the following expression of C program.
abcd + ( 2 - 5 += 6/2--;
How many tokens are generated by the above expression during lexical analysis?

Question 3

Consider the following grammar
E E(E) E | ∈
Which one of the following is true?
1) The grammar is ambiguous
2) The grammar is unambiguous
3) The grammar will generate all strings having balanced parenthesis

Question 4

Identify the “call tree” for the following program.
Procedure main();
Procedure P1(a: integer)
begin
if(a<>0) then
begin
P1(a-1);
P2(a);
end
end;
Procedure P2(b: integer)
begin
if(b<>0) then
P2(b-1);
end
end;
begin
P1(1);
P2(1);
end;

Question 5

In a bottom up evaluation of a syntax directed definition, inherited attributes can

  • 465 attempts
  • 2 upvotes
  • 12 comments
Sep 26GATE & PSU CS