Search Header Logo

Leading and Trailing

Authored by vijay vasanth

Computers

University

Used 2+ times

Leading and Trailing
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the LEADING(S) for the following grammar?

S➔S-B|B

B➔B*A|A

A➔(S)|id

LEADING(S)={-,*,),id}    

LEADING(S)={-,*,(,id}    

LEADING(S)={-,*,(,)}

LEADING(S)={-,*,(}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the TRAILING(T) for the following grammar?

E➔E+T|T

T➔T*F|F

F➔id|(E)

TRAILING(T)={+,*,(}        

TRAILING(T)={*,id,(}

TRAILING(T)={*,id,)}      

TRAILING(T)={+,*,id}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If production is of form  A→ αa or A → αaB where B is Non-terminal, and α can be any string then it is applicable to

Trailing

Leading

LR

LALR

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Leading and Trailing are two functions belongs to

Predictive Parser

Operator Precedence parser

Syntax Analayzer

Intermediate Code Generator

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is uesd to map terminal symbols to integers in Operator precedence parsers?

precedence functions      

operator function

Lex Function

Iterative Function

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?