HamiIT
Sign inGet started
Home
ADD CONTENT

Sign in Required

Please sign in to add content

Sign In
ProgramsBsc CSITSemester 4Theory of Computation Unit III: Regular Expressions (6 Hrs.)
Chapter Study

Bsc CSIT Semester 4 – Theory of Computation – Unit III: Regular Expressions (6 Hrs.)

Comprehensive questions and detailed answers for Unit III: Regular Expressions (6 Hrs.). Perfect for exam preparation and concept clarity.

9
Questions
45
Marks
Back to All Chapters
1

Give the regular expressions for following language over alphabet {0, 1}.

a. Set of all strings with 2nd symbol from right is 1.

b. Set of all strings starting with 00 or 11 and ending with 10 or 01.

MediumTHEORY5 marks2076(TU Final)
2

Show that language

L=0m1m∣m≥1L = { 0^m 1^m | m ≥ 1 }L=0m1m∣m≥1

is not a regular language.

MediumTHEORY5 marks2076(TU Final)
3

Give the regular expressions for the following language over alphabet {a, b}.

a. Set of all strings with substring bab or abb.

b. Set of all strings whose 3 symbol is ‘a’ and 5 symbol is ‘b’.

MediumTHEORY5 marks2078(TU Final)
4

Show that L = { a | n is a prime number } is not a regular language.

MediumTHEORY5 marks2078(TU Final)
5

Convert the following regular expression into equivalent Finite Automata

a. (0+1)*10(1+0)

b. 1*0(0+1)*1

MediumTHEORY5 marks2079(TU Final)
6

Write regular expression over {a,b} that represents

a. Strings having exactly two a’s and atleast two b’s.

b. Strings having an even number of a’s and each a followed by at least one b.

MediumTHEORY5 marks2080(TU Final)
7

Using pumping lemma, prove that the language L = {a b c | j=i+k} is not regular.

MediumTHEORY5 marks2080(TU Final)
8

Differentiate Kleen closure from positive closure. Compute positive and Kleen closure of {ab}.

MediumTHEORY5 marks2080(TU Final)
9

Construct regular expression over {1,2,….9} that represents

a. strings of even numbers with length 4 starting with 2 and ending with 8.

b. strings starting with odd numbers and ending with even numbers.

MediumTHEORY5 marks2080(TU Final)
Showing 9 questions

Exam Years

Past question papers

2080
TU Final•2 questions
2080
TU Final•2 questions
2079
TU Final•1 questions
2078
TU Final•2 questions
2076
TU Final•2 questions

Questions in Unit III: Regular Expressions (6 Hrs.)

Give the regular expressions for following language over alphabet {0, 1}. a. Set of all strings with 2nd symbol from right is 1. b. Set of all strings starting with 00 or 11 and ending with 10 or 01.

Marks: 5

Year: 2076 Final TU

(a) Strings whose second symbol from the right is 1 Let the alphabet be {0, 1}. If the second-from-right symbol is 1, the string must look like:   x 1 y where y is a single symbol (0 or 1) and x ∈ {

Show that language \[L = { 0^m 1^m | m ≥ 1 }\] is not a regular language.

Marks: 5

Year: 2076 Final TU

Question 4: Show that L = { 0^m 1^m | m ≥ 1 } is not a regular language Proof (by Pumping Lemma for Regular Languages): Assume, for contradiction, that L is regular. Then by the Pumping Lemma there ex

Give the regular expressions for the following language over alphabet {a, b}. a. Set of all strings with substring bab or abb. b. Set of all strings whose 3 symbol is ‘a’ and 5 symbol is ‘b’.

Marks: 5

Year: 2078 Final TU

Regular Expressions for Languages over Alphabet {a, b} a. Set of all strings with substring 'bab' or 'abb' The language consists of any string that contains bab or abb as a contiguous part. The regul

Show that L = { a | n is a prime number } is not a regular language.

Marks: 5

Year: 2078 Final TU

Proof that $L = \{a^n \mid n \text{ is a prime number}\}$ is Not Regular We use the Pumping Lemma for Regular Languages to show by contradiction that $L$ is not a regular language. 1. Assume $L$ is Re

Convert the following regular expression into equivalent Finite Automata a. (0+1)10(1+0) b. 10(0+1)1

Marks: 5

Year: 2079 Final TU

(a) Regular expression: \((0+1)^\,1\,0\,(1+0)\) - \(Q = \{q0, q1, q2, q3\}\) - \(\Sigma = \{0, 1\}\) - Start state: \(q0\) - Final state: \(F = \{q3\}\) Transition Function: - \(\delta(q0, 0)

Write regular expression over {a,b} that represents a. Strings having exactly two a’s and atleast two b’s. b. Strings having an even number of a’s and each a followed by at least one b.

Marks: 5

Year: 2080 Final TU

(a) Regular Expression for strings over {a, b} having exactly two a’s and at least two b’s To have exactly two a’s, we place the two a’s in the string and the rest must be b’s. Also total number of

Using pumping lemma, prove that the language L = {a b c | j=i+k} is not regular.

Marks: 5

Year: 2080 Final TU

Proof (Pumping Lemma) that \(L=\{a^i b^j c^k \mid j = i + k\}\) is not regular 1. Pumping Lemma: If \(L\) is an infinite regular language then there exists a pumping length \(p\ge1\) such that eve

Differentiate Kleen closure from positive closure. Compute positive and Kleen closure of {ab}.

Marks: 5

Year: 2080 Final TU

Kleene Closure vs Positive Closure (5 Marks) 1. Difference | Point | Kleene Closure (A\) | Positive Closure (A⁺) | |-----------|---------------------------|-----------------------------| | Meaning |

Construct regular expression over {1,2,….9} that represents a. strings of even numbers with length 4 starting with 2 and ending with 8. b. strings starting with odd numbers and ending with even

Marks: 5

Year: 2080 Final TU

Construct Regular Expressions over {1,2,…,9} a) Strings of even numbers with length 4 starting with 2 and ending with 8 - Even digits = {2,4,6,8} - Length = 4 - Must start with 2 and end with 8

About Unit III: Regular Expressions (6 Hrs.) Questions

This page contains comprehensive questions from the Unit III: Regular Expressions (6 Hrs.) chapter of Theory of Computation , part of the Bsc CSIT Semester 4 curriculum. All questions include detailed model answers from past TU exam papers.

Study Tips

  • Review concepts before attempting questions
  • Practice writing complete answers
  • Compare your answers with model solutions
  • Focus on questions from recent years
  • Use direct links (#question-ID) to bookmark and share specific questions

Related Resources

← Back to Theory of Computation Chapters

Unit III: Regular Expressions (6 Hrs.) chapter questions with answers for Theory of Computation (Bsc CSIT Semester 4). Prepare for TU exams with our comprehensive question bank and model answers.

H
Hami IT

Empowering IT students with quality education resources and comprehensive exam preparation materials.

Programs

  • Flutter
  • Java
  • DevOps

Company

  • About Us
  • Contact

Contact

  • 📧hamiit.dev@gmail.com
  • 📞+977 9813706443
  • 📍Kathmandu, Nepal

© 2026 Hami IT. All rights reserved.