CS401 T02

CS401 T02

Professional Development

10 Qs

quiz-placeholder

Similar activities

Day 2

Day 2

Professional Development

10 Qs

Scripting Day 1

Scripting Day 1

Professional Development

10 Qs

Preguntas de JavaScript

Preguntas de JavaScript

Professional Development

14 Qs

Cuestionario Not Null GraphQL

Cuestionario Not Null GraphQL

Professional Development

10 Qs

Python training series quiz

Python training series quiz

Professional Development

9 Qs

Coding - Advanced Level

Coding - Advanced Level

8th Grade - Professional Development

11 Qs

AES: Coding Fundamentals Lessons 1 and 2

AES: Coding Fundamentals Lessons 1 and 2

7th Grade - Professional Development

14 Qs

Quiz de Revisão

Quiz de Revisão

Professional Development

6 Qs

CS401 T02

CS401 T02

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Mike Wong

Used 3+ times

FREE Resource

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

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?