Regular Language & Regular Expression Flashcards

1
Q

If all states of an NFA are accepting states then the language accepted by the NFA is Σ*. True or False?

A

False, as in NFA, it is not necessary that all states have transitions for all symbols.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

There exists a regular language A such that for all languages B , A ∧ B is regular. True or false?

A

True, there exists a regular language {}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Every finite subset of a non-regular set is regular. True or false?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Every subset of a regular set is regular. True or false

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Every finite subset of a regular set is regular. True or false

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The intersection of two regular sets is regular. True or false

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is grammar in TOC?

A

It is a finite set of formal rules for generating syntactically correct sentences or meaningful correct sentences

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Every finite language is regular. True or False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly