Code: 105402Computer Science & Eng.4th Semester6 Examination Papers

Formal language & automata theory

Official Bihar Engineering University examination question papers, marks distribution, and questions transcript. Available exam sessions: 2025, 2022, 2021, 2020, 2019, 2018.

Exam Year:

Get Instant AI Answers on this Paper

Open BEU Connect Android app to solve any numerical or derive formulas step by step.

Ask AI in App
Official Exam Paper TranscriptB.Tech 4th Semester Examination, 2025
Bihar Engineering University, Patna
B.Tech 5th Semester Exam., 2025

Formal Language & Automata Theory

Time: 03 HoursCode: 105503Semester: VFull Marks: 70

Instructions:

  1. The marks are indicated in the right-hand margin.
  2. There are NINE questions in this paper.
  3. Attempt FIVE questions in all.
  4. Question No. 1 is compulsory.
Q.1 Choose the correct option / answer the following (Any seven question only):[2 x 7 = 14]
  1. Which of the following is the smallest unit in the definition of a language?

    1. Grammar
    2. Alphabet
    3. String
    4. Production
  2. A language is a

    1. Set of alphabets
    2. Set of strings over an alphabet
    3. Set of grammars
    4. Set of automata
  3. Which grammar type is the most powerful?

    1. Type-0
    2. Type-1
    3. Type-2
    4. Type-3
  4. Epsilon (ε) transitions are allowed in

    1. DFA only
    2. Both DFA and NFA
    3. NFA only
    4. None
  5. Context-Free Grammars are equivalent to

    1. Finite Automata
    2. Turing Machines
    3. Linear Bounded Automata
    4. Pushdown Automata
  6. Pumping Lemma for CFLs is used to prove a language is

    1. Not Context-Free
    2. Regular
    3. Decidable
    4. Turing recognizable
  7. Which of the following requires context sensitivity?

    1. anbn
    2. anbncn
    3. (a+b)*
    4. a*
  8. Recursively Enumerable languages are also called

    1. Turing Recognizable
    2. Turing Decidable
    3. Regular
    4. Context-Free
  9. The Halting Problem is

    1. Decidable
    2. Undecidable
    3. Context-Free
    4. Regular
  10. Which of the following is used to prove many undecidability results?

    1. Pumping Lemma
    2. Rice’s Theorem
    3. Chomsky Normal Form
    4. Subset Construction
Q.2 Solve both questions :[7 x 2 = 14]
  1. Define the terms: Alphabet, Language, Grammar, and Derivation. Explain the relationship between them with suitable examples.

  2. Explain Chomsky Hierarchy of languages with examples of each type and their corresponding automata.

Q.3 Solve both questions :[7 x 2 = 14]
  1. Explain the concept of a Finite Automaton. List and describe its main components. Also, differentiate between Deterministic Finite Automaton and Non-deterministic Finite Automaton with suitable examples.

  2. Construct a DFA that accepts all strings over {0,1} containing even number of 0s and odd number of 1s. Also, write its formal 5-tuple definition.

Q.4 Solve both questions :[7 x 2 = 14]
  1. Convert the regular expression (a + b)abb(a + b) into an equivalent DFA. Show all steps.

  2. Using Pumping Lemma, prove that the language L = {0n1n | n ≥ 0} is not regular.

Q.5 Solve both questions :[7 x 2 = 14]
  1. Explain how ambiguity arises in the grammar E → E + E | E * E | id | (E). Remove the ambiguity by rewriting the grammar.

  2. Using Pumping Lemma for CFLs, prove that L = {anbncn | n ≥ 0} is not context-free.

Q.6 Solve both questions :[7 x 2 = 14]
  1. Explain Linear Bounded Automata and its relationship with Context-Sensitive Languages.

  2. Explain the basic model of a Turing Machine with its formal 7-tuple definition.

Q.7 Solve both questions :[7 x 2 = 14]
  1. Design a Turing Machine that accepts the language L = {anbn | n ≥ 0}. Show the transition diagram/table and trace for input aabb.

  2. State and explain the Church-Turing Thesis.

Q.8 Solve both questions :[7 x 2 = 14]
  1. Explain the concept of Universal Turing Machine. How does it help in proving undecidability?

  2. Discuss the power and limitations of Turing Machines. Compare Turing Machines with Pushdown Automata.

Q.9 Write short note on any two of the following:[7 x 2 = 14]
  1. Pushdown Automata

  2. Rice’s theorem

  3. Minimization of finite automata

  4. Closure properties of CFLs

Related Official Syllabus

Formal Language and Automata Theory

105402

Official BEU curriculum units & topics for this examination subject.

Unit- 1.0: Introduction

Alphabet • Languages and grammars • Productions and derivation • Chomsky hierarchy of languages

Unit- 2.0: Regular languages and finite automata

Regular expressions and languages • Deterministic finite automata (DFA) and equivalence with regular expressions • Nondeterministic finite automata (NFA) and equivalence with DFA • Regular grammars and equivalence with finite automata • Properties of regular languages • Pumping lemma for regular languages • Minimization of finite automata

Unit- 3.0: Context-free languages and pushdown automata

Context-free grammars (CFG) and Context-free languages (CFL) • Chomsky and Greibach normal forms • Nondeterministic pushdown automata (PDA) and equivalence with CFG • Parse trees • Ambiguity in CFG • Pumping lemma for context-free languages • Deterministic pushdown automata • Closure properties of CFLs

Unit- 4.0: Context-sensitive languages

Context-sensitive grammars (CSG) and Context-sensitive languages • Linear bounded automata and equivalence with CSG

Unit- 5.0: Turing machines

The basic model for Turing machines (TM) • Turing recognizable (Recursively enumerable) and Turing-decidable (recursive) languages and their closure properties • Variants of Turing machines • Nondeterministic TMs and equivalence with deterministic TMs • Unrestricted grammars and equivalence with Turing machines • TMs as enumerators

View Complete 4th Semester Syllabus

Prepare Better with BEU Connect

  • Download papers for 100% offline study
  • Ask AI for step-by-step problem breakdown
  • Attempt official GATE CBT mock tests
  • Calculate SGPA and track attendance
Download Android App