Leading and Trailing

Leading and Trailing

University

5 Qs

quiz-placeholder

Similar activities

Quiz JS DW v1

Quiz JS DW v1

University

10 Qs

T02: Python - The Basics

T02: Python - The Basics

University

10 Qs

Python Quiz

Python Quiz

University

10 Qs

BINARY BRAINS

BINARY BRAINS

University

10 Qs

Python - Functions

Python - Functions

University

10 Qs

Day 4

Day 4

12th Grade - University

10 Qs

PYTHON_CHAPTER 2

PYTHON_CHAPTER 2

University

10 Qs

DBMS 1

DBMS 1

University

10 Qs

Leading and Trailing

Leading and Trailing

Assessment

Quiz

Computers

University

Medium

Created by

vijay vasanth

Used 2+ times

FREE Resource

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