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

Toc Model Qn

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

Define the extended transition function of DFA. Draw a DFA accepting language L = {1n | n = 2, 3, 4…. }. Show acceptance of strings 1110011 and 1110 using extended transition function.

2

What is deterministic pushdown automaton? Configure a pushdown automaton accepting the language, L={w C wR | w ∈ (0,1)*}. Show instantaneous description of strings 011C110 and 10C10.

3

How a Turing Machine works?  Construct a Turing machine accepting the language L = {(n)n}. Also show the transition diagram of the machine. Illustrate whether a string (()) is accepted by the Turing machine or not.

Section B

Attempt any eight questions.

4

When a grammar is said to be in CNF? Convert the following grammar to CNF:

S → 1A | 0B | ε

A → 1AA | 0S | 0

B → 0BB | 1 | A

C → CA | CS

5

Define epsilon NFA. Configure equivalent epsilon NFA for the regular expression (ab U a)*.

6

Differentiate Kleene closure from positive closure. For ∑ = {0,1}, compute ∑* and ∑2.

7

Write the regular expression over {0,1} for strings

  • Not ending with 0
  • Of length at least 3 that ends with 00.
8

What is undecidable problem? Define post’s correspondence problem with an example.

9

How pumping lemma can be used to prove that any language is not a regular language? Show that language, L = {0n1n | n>0} is not a regular language.

10

Discuss how Turing Machine with multiple tracks differs from a Turing Machine with multiple tapes.

11

How context free grammars are defined? Write a context free grammar over {0,1}, where the strings start and end with the same symbol.

12

What is halting problem? How can you argue that halting problem is undecidable?

Theory of Computation Question Bank Solution Toc Model Qn
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
20219216
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