Search Header Logo

CS401 T02

Authored by Mike Wong

Computers

Professional Development

Used 10+ times

CS401 T02
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1. What does the regular expression (0 + 1)* represent?

Strings of alternating 0s and 1s

All binary strings, including the empty string

Strings containing only 1s

Strings ending with a 1

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

2. Which of the following operations is not part of Kleene operators?

Union (+)

Concatenation

Star (*)

Division (/)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

3. What does the regular expression a*b represent?

Strings containing only b

Strings containing zero or more a's followed by one b

Strings ending with b

Strings with a and b alternating

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

4. Which string is not in the language of the regular expression (ab + ba)*?

abab

baba

abbba

ε

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

5. What does the regular expression 0+11+101 represent?

Strings starting with 0 and ending with 1

Strings containing either "0", "11", or "101"

Binary strings of length 2

Strings with alternating 0s and 1s

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

6. What is true for any regular language?

It cannot be expressed using a DFA

It can only be described by a regular expression

It can be accepted by both DFA and NFA

It always contains the empty string

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

7. According to Kleene's Theorem, a language is regular if and only if:

It can be described using a finite automaton

It has infinite strings

It is accepted by a Turing machine

It has no ε-transitions

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?