Parser - unit 2 and 3

Parser - unit 2 and 3

University

15 Qs

quiz-placeholder

Similar activities

Practical IT Skills

Practical IT Skills

University

15 Qs

Workshop - Introduce Of a Wireshark

Workshop - Introduce Of a Wireshark

1st Grade - University

12 Qs

เครื่องจักรทัวริง

เครื่องจักรทัวริง

University

15 Qs

U01 Principles of Computer Science (Quiz 1)

U01 Principles of Computer Science (Quiz 1)

11th Grade - University

20 Qs

Netiquette

Netiquette

University

11 Qs

Computer Graphics

Computer Graphics

University

20 Qs

Lesson 2 - Passing Data to Subsystems

Lesson 2 - Passing Data to Subsystems

University

10 Qs

Network Security

Network Security

University

10 Qs

Parser - unit 2 and 3

Parser - unit 2 and 3

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

shanthini Sampath

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A grammar that produces more than one parse tree for some sentence is called __________

Ambiguous

UnAmbiguous

Regular

None of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following derivations does a top-down parser use while parsing an input ?

Which of the following derivations does a top-down parser use while parsing an input ?

Which of the following derivations does a top-down parser use while parsing an input ?

Rightmost derivation

 Rightmost derivation traced out in reverse

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following error can a compiler check?

Syntax Error

Logical Error

Both Logical and Syntax Error

Compiler cannot check errors

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which ine of the following is a top-down parser

LR(k) parser

Operator precedence parser

Recursive Descent parser

LALR(k) parser

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is false?

An LL(1) parser is a top-down parser

An unambiguous grammar has the same leftmost and rightmost derivation

LALR is more powerful than SLR

An ambiguous grammar can never be LR(k) for any k

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

YACC is a: 

Lexical analyzer generator Parser generator 

Parser generator 

Semantic analyzer 

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given grammar 

S –> (L) | a 

L –> L, S | S 

Which of the input recognized by the grammar: 

 ((a, a), a) 

 (a,a) 

((a, a,a),a) 

 All of the above

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?