Regular expression Session 2020-21

Regular expression Session 2020-21

University

20 Qs

quiz-placeholder

Similar activities

Code-101

Code-101

University

20 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

Quiz

Quiz

University

20 Qs

Compiler design -Quiz2

Compiler design -Quiz2

University

15 Qs

IT310 Quiz #1

IT310 Quiz #1

University

15 Qs

Array Java

Array Java

University

15 Qs

Programming in C(1)

Programming in C(1)

University

20 Qs

CodeHS - Intro to Python - Basics and Console Interaction

CodeHS - Intro to Python - Basics and Console Interaction

9th Grade - Professional Development

20 Qs

Regular expression Session 2020-21

Regular expression Session 2020-21

Assessment

Quiz

Computers

University

Medium

Created by

Sandeep Rathor

Used 288+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Regular expressions are used to represent which language

Recursive language

Context free language

Regular language

All of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operation can be applied on regular expressions?

Union

Concatenation

Closure

All of these

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The set of all strings over ∑ = {0,1} in which all strings that beings and ends with 0 is

0(0+1)0

00

00(0+1)0

All of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The set of all strings over ∑ = {a,b} in which all strings having bbbb as substring is

(a+b)* bbbb (a+b)*

(a+b)* bb (a+b)*bb

bbbb (a+b)*

bb (a+b)*

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The set of all strings over ∑ ={a,b} in which a single a is followed by any number of b’s a single b followed by any number of a’s is:

ab* + ba*

ab*ba*

a*b + b*a

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The set of all strings over ∑ = {a,b} in which all strings of a’s and b’s ending in bb is

ab

a*bbb

(a+b)* bb

All of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following identity is wrong?

R + R = R

(R*)* = R*

ɛR = Rɛ = R

ØR = RØ = RR*

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?