Home
SELF STUDY
BrowsePracticeTestsPlaylistDoubts & solutionsFree live classesOther courses

Compiler Design

Quick practice

Question 1 of 5

Consider the following grammar, where a set of terminals are {a, b, c} and a set of non-terminals are: 

{S, P, Q, R}

S → PQR

P→ ∈ | a

Q → ∈ | b

R → c

Select the option which is not correct. 

A

FIRST (Q) = {∈, b}

B

FIRST (P) = {∈, a}

C

FIRST (S) = {∈, a, b, c}

D

FIRST (R) = {c}

Concepts

Get unlimited practice with GATE - CSIT, DSAI & Interview Preparation subscription

pick

Boost your performance with adaptive practice tests

pick

Practice every concept in the syllabus

pick

Compare your speed and accuracy with your peers

pick

Download the app and practice on the go