GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2021 set1

GATE 2021 set1 · CS · MCQ · 1 mark · Compiler Design › Syntax Analysis (Parsing)

GATE 2021 set1 Computer Science and Information Technology question: Consider the following statements. S 1 : Every SLR(1) grammar is unambiguous but there…

Consider the following statements.

: Every SLR(1) grammar is unambiguous but there are certain unambiguous grammars that are not SLR(1).

: For any context-free grammar, there is a parser that takes at most time to parse a string of length .

Which one of the following options is correct?

  1. (A)

    is true and is false

  2. (B)

    is false and is true

  3. (C)

    is true and is true

  4. (D)

    is false and is false

Show answer

Official answer: C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion