Chomsky and CFL

Chomsky and CFL

University

11 Qs

quiz-placeholder

Similar activities

What is it? What are they?

What is it? What are they?

KG - University

10 Qs

Going for Water

Going for Water

KG - Professional Development

15 Qs

What is Linguistics

What is Linguistics

University

11 Qs

B1+ UNIT 2 B LISTENING

B1+ UNIT 2 B LISTENING

University

10 Qs

tikt ok

tikt ok

University

15 Qs

Basic English Competence 1

Basic English Competence 1

University

10 Qs

1st Conditional

1st Conditional

7th Grade - Professional Development

15 Qs

Beginning of the term quiz

Beginning of the term quiz

University

10 Qs

Chomsky and CFL

Chomsky and CFL

Assessment

Quiz

World Languages

University

Practice Problem

Medium

Created by

Julia Ulrich

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When trying to transform a regular expression into a FSA, the first step is to…

write down the vocabulary of strings that are matched.

draw as many states as you can in one minute.

cry.

simplify the regex.

Answer explanation

Media Image

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

If a language is empty, its corresponding FSA…

does not exist.

has no accepting state.

is non-deterministic.

Answer explanation

The language being empty means that there is not a single string that can be accepted. This means that we cannot have an accepting state.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The intersection between two languages denotes…

a single word that exists in both of them.

the set of items that are accepted in one of the languages but not the other.

the set of items that are accepted in both languages.

the set of items that are accepted in at least one of the two languages.

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The corresponding minimal FSA for the regular expression (a|b)[ab]*[cd]*d?c? can be drawn with … states.

3

1

4

2

Answer explanation

Media Image

(a|b)[ab]*[cd]*d?c? can be simplified to [ab]+[cd]*

It becomes clear that two states are enough.

5.

MULTIPLE SELECT QUESTION

10 sec • 1 pt

DFA are not allowed to have…

epsilon edges.

a final state.

multiple transition options for a given input.

more than a certain number of edges going out of a state.

Answer explanation

Media Image

[ab]+[cd]*

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Context-free languages are also called […] in the Chomsky Hierarchy.

Type-0

Type-1

Type-2

Type-3

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Regular languages are […] than context-free languages.

more expressive

less expressive

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?