PL Chapter 03 04

PL Chapter 03 04

University

13 Qs

quiz-placeholder

Similar activities

CD VIVA

CD VIVA

University - Professional Development

10 Qs

Parser - unit 2 and 3

Parser - unit 2 and 3

University

15 Qs

Compiler Design Quiz CSE 1

Compiler Design Quiz CSE 1

University

15 Qs

SMART CARD 2 Get Started With AI

SMART CARD 2 Get Started With AI

University

15 Qs

Compiler Design I

Compiler Design I

University

15 Qs

Compiler Parsing Techniques

Compiler Parsing Techniques

University

10 Qs

Quizz Pengembangan aplikasi SpeechBoard

Quizz Pengembangan aplikasi SpeechBoard

University

10 Qs

Quiz 3 - DFP5023 Chapter 3

Quiz 3 - DFP5023 Chapter 3

University

10 Qs

PL Chapter 03 04

PL Chapter 03 04

Assessment

Quiz

Computers

University

Hard

Created by

Murat Ak

Used 3+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the lowest-level syntactic unit of a language, i.e. most basic units that you can see in a source code?

Sentence

Language

Lexeme

Token

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Is a context-free grammar (CFG) a recognizer or a generator?

Recognizer

Generator

Both

None

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

If we can generate two different parse trees for the same sentence, it means the language is:

a context-free language

in BNF form

ambiguous

infinite

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In a language when we say x=4.56 x becomes a double automatically. So, the type here is a ... attribute.

synthesized

inherited

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a = b + 3 {a > 1}

what is the weakest precondition for this statement?

b>-2

b>2

b<-2

b<2

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which are the most common top-down parsing algorithms?

Recursive descent

LR parsers

LL parsers

RR parsers

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is this?

Recursive descent parsing table

LL parsing table

LR parsing table

RR parsing table

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?