HamroCSIT Logo
HAMRO CSIT
  • Course New
  • Entrance
    • Entrance Preparation
    • MCQ Questions
    • Colleges
    • Entrance Class
    • Entrance Books
    • Free Entrance Video Course
  • Semester
    • First Semester
    • Second Semester
    • Third Semester
    • Fourth Semester
    • Fifth Semester
    • Sixth Semester
    • Seventh Semester
    • Eight Semester
  • Questions
  • Subscription Automated
  • Notices
  • Articles
  • More
    • Ask Question
    • College Ambassadors
    • Financial Support Program
    • Contribute
    • Contact Us
Login Register
Hamro CSIT User Account
  • Sign In
  • Create Account


Shape | Hamro CSIT Shape | Hamro CSIT Shape | Hamro CSIT Shape | Hamro CSIT
Subject

Theory of Computation

This course presents a study of Finite State Machines and their languages. It covers the details of finite state automata, regular expressions, context free grammars. More, the course includes design of the Push-down automata and Turing Machines. The course also includes basics of undecidability and intractability.

Subject Image | Hamro CSIT
  • Chapters
  • Syllabus
  • Question Banks
  • Questions
  • Text Book
  • Practical
  • Viva

Exam Year

  • TOC Question Bank 2081
  • TOC Question Bank 2080 new
  • TOC Model Question
  • TOC Question Bank 2080
  • TOC Question Bank 2079
  • TOC Question Bank 2078
  • TOC Question Bank 2076

Tribhuvan University

Institute of Science and Technology

2080

Bachelor Level / fourth-semester / Science

Computer Science and Information Technology( CSC262 )

Theory of Computation

Full Marks: 60 + 20 + 20

Pass Marks: 24 + 8 + 8

Time: 3 Hours

Candidates are required to give their answers in their own words as far as practicable.

The figures in the margin indicate full marks.

Section A

Attempt any two questions.

1

What is NFA? How is it different from DFA? How is NFA to DFA conversion done? Convert the following NFA into DFA.

- Hamro CSIT

2

How does Turing machine accept a string? Design a Turing Machine over the alphabet {0,1,a} that processes the string defined by L = {a01a,a10a,a0101a}. Show both transition diagram and table. Show acceptance of a0101a.

3

Define context free grammar with an example. Explain with example, how context free grammar is converted to Chomsky Normal Form.

Section B

Attempt any eight questions.

4

Define string, substring, empty string, and empty language over alphabet {a,b}.

5

Design a DFA that accepts single line and multi-line comments of the C-Language.

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.

7

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

8

Design a PDA over {x,y} which accepts strings defined by the language L = {xnynxy | n>=0}. Show acceptance of xyxy.

9

Design a Turing machine that computes a function f(n)=0.

10

How abstract, decision and optimization problems are different from each other?

11

How is PDA to CFG conversion done? Consider a PDA that accepts by empty stack, P=({p,q},{0,1},{Z},δ,p,z); with δ defined as

δ(p,0,z)=(p,0z), δ(p,0,0)=(p,00), δ(p,1,0)=(p,ε), δ(p,ε,z)=(q,ε),

Now construct an equivalent CFG.

12

What is the meaning of the term “Context Free” in context free grammar? Justify with a suitable example. What is the need of a parse tree?

Theory of Computation Question Bank Solution 2080
Solution Video
Solution
Share

Share this link via

Or copy link

logoHAMROCSIT

Hamro CSIT is a comprehensive web and mobile platform that provides B.Sc. CSIT students with resources like notes, syllabi, question banks, solved past papers, practical files, and free entrance preparation materials — all in one place.

  • [email protected]
Semester
  • First Semester
  • Second Semester
  • Third Semester
  • Fourth Semester
  • Fifth Semester
  • Sixth Semester
  • Seventh Semester
  • Eighth Semester
Links
  • About Us
  • FAQs
  • Sitemap
  • Privacy Policy
  • Terms and Conditions
  • College Ambassadors
  • Financial Support Program
Hits Counter
20219072
Google Play App Store
Follow Us

Copyright 2026 | HAMROCSIT | All Right Reserved

Official Payment Partner Esewa Logo
HAMROCSIT.COM

Copyright 2024 | HAMROCSIT.COM | All Right Reserved - Nymna Technology