PL Chapter 03 04

PL Chapter 03 04

University

13 Qs

quiz-placeholder

Similar activities

CD QUIZ S6 25-3-22

CD QUIZ S6 25-3-22

University

10 Qs

Beginer Level Quiz

Beginer Level Quiz

University

13 Qs

UNIX

UNIX

1st Grade - Professional Development

10 Qs

Minecraft 1.17 Quiz

Minecraft 1.17 Quiz

2nd Grade - Professional Development

12 Qs

untitled

untitled

6th Grade - University

12 Qs

CREATING ONLINE PRESENCE WITH WIX

CREATING ONLINE PRESENCE WITH WIX

KG - Professional Development

10 Qs

TEP13 LEARNER - CENTERED PEDAGOGY*

TEP13 LEARNER - CENTERED PEDAGOGY*

University

10 Qs

Workshop_2

Workshop_2

University

10 Qs

PL Chapter 03 04

PL Chapter 03 04

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Murat Ak

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...

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

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?