UGC NET Computer Science Theory of Computation and Compilers Previous Year Questions (PYQs)
Practise 46 Theory of Computation and Compilers questions asked in UGC NET Computer Science from 2020–2025. Questions cover Finite automata, Regular expressions, Context-free grammars, Turing machines, Chomsky hierarchy of languages and Compiler phases and lexical analysis. Every question is shown with its options and the correct answer, free to read.
46 PYQs2020–2025Answers includedFree
Practise Theory of Computation and Compilers as timed sets
Focused 10-question sets with instant scoring, explanations, and weak-area analysis.
The kinds of symbols for basic syntactic elements of first-order logic are:
A. Constant
B. Domain
C. Predicate
D. Temporal
E. Function
AB and D only
BA, B and C only
CA, C and E only
DC and D only
Answer:(C)A, C and E only
Explanation
Constants, predicates and functions are object-language symbols in first-order logic. A domain is part of the interpretation and “temporal” is not a basic first-order syntactic symbol. The correct option follows from the stated definition or calculation; the other options omit a necessary condition or describe a different concept.
Which statement is true about the pumping lemma for regular languages?
AIt applies to all regular languages
BIt applies only to infinite regular languages
CIt applies to all context-free languages
DIt applies to all recursively enumerable languages
Answer:(A)It applies to all regular languages
Explanation
Every regular language satisfies the pumping-lemma property. The lemma is chiefly useful for proving that a language is not regular when sufficiently long strings are considered; it does not apply to arbitrary context-free or recursively enumerable languages.
Regarding code optimisation, choose the correct sequence.
A. Algebraic simplification
B. Use of machine idioms
C. Redundant-instruction elimination
D. Flow-of-control optimisation
E. Improved target code
AA, C, B, D, E
BB, C, D, A, E
CC, D, A, B, E
DD, B, A, C, E
Answer:(C)C, D, A, B, E
Explanation
The standard optimisation progression removes redundant instructions, improves flow of control, performs algebraic simplification, uses machine idioms, and yields improved target code. The correct option follows from the stated definition or calculation; the other options omit a necessary condition or describe a different concept.
A. Conflict resolution B. Common subexpression C. Quadruples D. L-attributed definitions
I. Three-address code II. Precedence III. Syntax-directed translations IV. Directed acyclic graph
AA-III, B-II, C-IV, D-I
BA-II, B-IV, C-I, D-III
CA-II, B-III, C-I, D-IV
DA-IV, B-I, C-II, D-III
Answer:(B)A-II, B-IV, C-I, D-III
Explanation
Conflict resolution uses precedence, a common subexpression is represented by a DAG, quadruples are a three-address-code representation, and L-attributed definitions are syntax-directed translations.
Which of the following CFG(s) is/are in Chomsky Normal Form? All capital letters are variables and lower-case letters are terminals.
Grammar
Productions
A
S → ABC | AB; A → a; B → b; C → d
B
X → RT | TR; T → l; R → XT | r
C
P → qP | sQ; M → MN | MP
D
N → nmin; P → P
AA and B only
BB only
CC only
DB and D only
Answer:(B)B only
Explanation
CNF permits a variable to produce two variables, or a single terminal. Grammar B meets that requirement; A has a three-variable right-hand side, C combines a terminal and variable, and D has invalid productions.
A. A problem which is NP-complete can be solved in polynomial time.
B. All NP-complete problems are NP-hard problems.
C. If an NP-hard problem can be solved in polynomial time, then all NP-complete problems can be solved in polynomial time.
D. All NP-hard problems are not NP-complete.
AA and C only
BB and D only
CA, B and C only
DA, B, C and D
Answer:(D)A, B, C and D
Explanation
NP-complete problems are NP-hard. A polynomial-time algorithm for any NP-hard problem would also put every NP-complete problem in P; NP-hard contains problems beyond NP-complete. Following the paper’s formulation, all four statements are selected.
Which language is represented by the displayed Turing-machine transition function?
A{aⁿbⁿ | n ≥ 0}
B{abⁿ | n ≥ 1}
C{ab* | n > 0}
D{aⁿb* | n > 1}
Answer:(B){abⁿ | n ≥ 1}
Explanation
The machine marks the initial a, scans and marks the corresponding b symbols, and accepts the resulting single-a followed by one-or-more-b pattern described by option B. The transition notation in the source page is diagrammatic, so this follows the official final key.
A. Type-0 grammar B. Type-1 grammar C. Type-2 grammar D. Type-3 grammar
I. Linear grammar II. GNF III. x → y, |x| ≤ |y|; x,y ∈ (V ∪ T)* IV. Recursively enumerable
AA-I, B-II, C-III, D-IV
BA-II, B-I, C-III, D-IV
CA-III, B-II, C-IV, D-I
DA-IV, B-III, C-I, D-II
Answer:(D)A-IV, B-III, C-I, D-II
Explanation
Type-0 grammars are recursively enumerable; Type-1 has noncontracting productions |x| ≤ |y|; Type-2 grammars can be in Greibach normal form; and Type-3 grammars are linear. The correct option follows from the stated definition or calculation; the other options omit a necessary condition or describe a different concept.
Yacc generates LALR(1) parsers. It combines LR parsing power with compact tables relative to canonical LR parsing. The correct option follows from the stated definition or calculation; the other options omit a necessary condition or describe a different concept.
For the automaton described in the accompanying comprehension passage, which displayed diagram represents the minimum-state DFA?
DFA options 1-4 for Question 141
ADFA diagram 1
BDFA diagram 2
CDFA diagram 3
DDFA diagram 4
Answer:(D)DFA diagram 4
Explanation
The official final answer key marks this question as dropped, so no displayed DFA should be treated as a reliable scored answer. The source diagrams are attached for review and preservation of the original question.
For the automaton in the preceding comprehension passage, which displayed diagram is correct?
DFA options 1-4 for Question 142
ADFA diagram 1
BDFA diagram 2
CDFA diagram 3
DDFA diagram 4
Answer:(C)DFA diagram 3
Explanation
The official final answer key selects diagram 3. It has the required transition path to the accepting state and the loops needed to preserve acceptance after the target pattern has been recognized.
For the preceding automaton passage, which displayed DFA represents the language accepted by the machine?
DFA options 1-4 for Question 143
ADFA diagram 1
BDFA diagram 2
CDFA diagram 3
DDFA diagram 4
Answer:(C)DFA diagram 3
Explanation
The official final answer key selects diagram 3. Its transitions track the required substring while allowing arbitrary symbols before and after it, matching the language described in the passage.
For the automaton described in the comprehension passage, which regular expression represents its accepted language?
A(a+b)*aab
Baba(a+b)*
Cb(a+b)*b(a+b)a(a+b)
D(a+b)abb(a+b)
Answer:(D)(a+b)abb(a+b)
Explanation
The official final key selects (a+b)*abb(a+b)*, i.e. all strings over {a,b} containing abb as a substring. The correct option follows from the stated definition or calculation; the other options omit a necessary condition or describe a different concept.
For the automaton described in the comprehension passage, which grammar represents the language accepted by the machine?
AS → AabbB, A → aA | ε, B → bB | ε
BS → abbA, A → aA | ε | bA
CS → AabbA, A → aA | bA | ε
DS → Aabb, A → aA | bA | ε
Answer:(C)S → AabbA, A → aA | bA | ε
Explanation
Option C generates all strings over {a,b} that contain abb as a substring, matching the regular expression selected for the same passage. The correct option follows from the stated definition or calculation; the other options omit a necessary condition or describe a different concept.
Consider the Grammar:
T → Qx
Q → RS
R → y ∣ ϵ
S → z ∣ ϵ
Here x, y, z are terminals and T, Q, R, S are non-
terminals.
What will be the follow set of the non-terminal R?
A{x,y}
B{y,z}
C{z,x}
D{ϵ}
Answer:(C){z,x}
Explanation
In Q → RS, whatever can begin S follows R, contributing z. Because S can also derive ε, anything following Q follows R as well, and T → Qx supplies x. Hence FOLLOW(R) = {z, x}, which is option C.
Which of the following properties correctly
describe a Regular Grammar ?
A. All production rules are of the form A→xB or
A→x, where A and B are non terminal symbols
and x is a terminal symbol.
B. Regular grammars are more powerful than
context-free grammars and can express any type
of language.
C. There is a direct correspondence between
regular grammar and finite automata.
D. Regular grammars can generate languages
that are not recognised by any type of automata.
A(A) and (B) Only
B(B) and (C) Only
C(C) and (D) Only
D(A) and (C) Only
Answer:(D)(A) and (C) Only
Explanation
(A) is true: right-linear rules of the form A → xB or A → x define a regular grammar. (C) is true: every regular grammar has an equivalent finite automaton and vice versa. (B) is false — regular grammars are strictly weaker than context-free ones. (D) is false — the languages they generate are exactly those finite automata accept. Only (A) and (C), so option D.
If L₁ and L₂ are context free languages, which one of the following is true about L₁ ∩ L₂?
AL1 L2 is context free.
BL1 L2 is Regular
CL1 L2 is Recursive Enumerable
DL1 L2 is Context Sensitive
Answer:(C)L1 L2 is Recursive Enumerable
Explanation
Context-free languages are not closed under intersection, so L₁ ∩ L₂ need not be context-free, and it certainly need not be regular. Both languages are recursive and therefore recursively enumerable, and that class is closed under intersection, so the intersection is guaranteed to be recursively enumerable. Option C is the only statement that always holds.
Which of the following tasks could be attained
using syntax trees in compiler design ?
A. Type Checking
B. Code Generation
C. Code Optimization
D. Error Handling
A(A), (B), (C) Only
B(B), (C), (D) Only
C(A), (C), (D) Only
D(A), (B), (D) Only
Answer:(A)(A), (B), (C) Only
Explanation
A syntax tree is the structured representation the compiler walks for type checking (A), code generation (B) and code optimisation (C). It can reveal that an error exists, but recovering from errors is the job of the error-handling machinery rather than the tree itself. Only (A), (B) and (C) — option A.
(III) Object-oriented programming language for web applications.
(D) JAVA
(IV) Used for data storage and transport.
A(A)-(I), (B)-(III), (C)-(II), (D)-(IV)
B(A)-(II), (B)-(III), (C)-(IV), (D)-(I)
C(A)-(II), (B)-(I), (C)-(IV), (D)-(III)
D(A)-(III), (B)-(I), (C)-(IV), (D)-(II)
Answer:(C)(A)-(II), (B)-(I), (C)-(IV), (D)-(III)
Explanation
HTML defines page structure, so (A)-(II). DHTML adds dynamic, interactive behaviour, giving (B)-(I). XML carries and stores data, so (C)-(IV). Java is the object-oriented language used for web applications, so (D)-(III). Option C is correct.
Arrange the following stages of a Turing Machine
(TM) operation in the correct order as they occur
during computation.
A. Writing a symbol on the tape
B. Moving the tape head left to right
C. Reading a symbol from the tape
D. Transitioning to a new state based on the
current state and symbol read
E. Halting and accepting or rejecting the input
A(C), (A), (B), (D), (E)
B(C), (B), (A), (D), (E)
C(C), (D), (A), (B), (E)
D(C), (D), (B), (A), (E)
Answer:(C)(C), (D), (A), (B), (E)
Explanation
One Turing machine step reads the symbol under the head (C), combines it with the current state to choose a transition (D), writes a symbol (A) and moves the head (B). The machine halts and accepts or rejects when no further transition applies (E). That order is option C.
Which of the following languages can be recognized by a Non-Deterministic Finite Automaton (NFA) but cannot be recognized by a Deterministic Finite Automaton (DFA)?
A. L₁ = {w ∈ {0,1}* | the length of w is even}
B. L₂ = {w ∈ {0,1}* | the length of w is odd}
C. L₃ = {w ∈ {0,1}* | all 0s precede all 1s in w}
D. L₄ = {w ∈ {0,1}* | w contains an equal number of 0s and 1s}
E. L₅ = {w ∈ {0,1}* | all 1s precede all 0s in w}
A(A) and (B) only
B(B) and (C) only
C(C) and (D) only
DNone of the above
Answer:(D)None of the above
Explanation
NFAs and DFAs recognize exactly the same regular languages. L₁, L₂, L₃, and L₅ are regular and recognized by both, while L₄ is non-regular and recognized by neither. Therefore option D is correct.
Arrange the following stages of parsing in the
correct order as they typically occur in the
compilation process.
A. Lexical Analysis
B. Sematic Analysis
C. Syntax Analysis
D. Intermediate Code Generation
E. Code Optimization
A(A), (B), (C), (D), (E)
B(A), (C), (B), (D), (E)
C(A), (D), (B), (C), (E)
D(A), (C), (D), (B), (E)
Answer:(B)(A), (C), (B), (D), (E)
Explanation
Compilation runs lexical analysis (A) to produce tokens, syntax analysis (C) to build the parse tree, semantic analysis (B) to check types and meaning, intermediate code generation (D), then code optimisation (E). That order is option B.
Arrange the following Language Classes in
ascending order according to their expressive
power, as defined by Chomsky hierarchy:
A. Context-free languages
B. Context-sensitive languages
C. Regular languages
D. Unrestricted Grammars
A(C), (A), (B), (D)
B(C), (A), (D), (B)
C(A), (C), (B), (D)
D(A), (D), (B), (C)
Answer:(A)(C), (A), (B), (D)
Explanation
By expressive power the Chomsky hierarchy runs regular ⊂ context-free ⊂ context-sensitive ⊂ unrestricted, recognised respectively by finite automata, pushdown automata, linear bounded automata and Turing machines. Ascending order is therefore (C), (A), (B), (D) — option A.
Which of the following languages are context-free?
A. {wⁱxʲyᵏzˡ | i + k = j + l; i, j, k, l ≥ 0}
B. {wⁱxʲyᵏzˡ | i = j and k = l; i, j, k, l ≥ 0}
C. {wⁱxʲyᵏzˡ | i = j = k and k ≠ l; i, j, k, l ≥ 0}
D. {wⁱxʲyᵏzˡ | i = j = k + l; i, j, k, l ≥ 0}
E. {wⁱxʲyᵏzˡ | i = j = l and k ≠ l; i, j, k, l ≥ 0}
A(A) and (B) only
B(B) and (C) only
C(C) and (D) only
D(D) and (E) only
Answer:(A)(A) and (B) only
Explanation
Language A has one balance condition that can be handled by a stack, and language B is an intersection/concatenation of simple equality constraints expressible as a context-free language. The remaining languages impose simultaneous multi-count dependencies that are not context-free, so option A is correct.
Let L={ab, aa, baa}. Which of the following strings are not in L*.
Aabaabaaabaa
Baaaabaaaa
Cbaaaaabaaaab
Dbaaaaabaa
Answer:(C)baaaaabaaaab
Explanation
The key idea is stated in the problem: Let L={ab, aa, baa}. Which of the following strings are not in L*.. The correct answer is C: baaaaabaaaab. It follows the governing definition, algorithm, or calculation in this theory of computation and compilers item; the other choices fail to satisfy one or more stated conditions.
Let A={a, b} and L=A*. Let x={a"b", n>0}. The languages L U X and X are respectively :
ANot regular, Regular
BRegular, Regular
CRegular, Not regular
DNot Regular, Not Regular
Answer:(C)Regular, Not regular
Explanation
The key idea is stated in the problem: Let A={a, b} and L=A*. Let x={a"b", n>0}. The languages L U X and X are respectively :. The correct answer is C: Regular, Not regular. It follows the governing definition, algorithm, or calculation in this theory of computation and compilers item; the other choices fail to satisfy one or more stated conditions.
Which of the following symbol table implementation is best suited if access time is to be minimum ?
A_ Linear list
BSearch tree
CHash Table
DSelf organisation list
Answer:(C)Hash Table
Explanation
The key idea is stated in the problem: Which of the following symbol table implementation is best suited if access time is to be minimum ?. The correct answer is C: Hash Table. It follows the governing definition, algorithm, or calculation in this theory of computation and compilers item; the other choices fail to satisfy one or more stated conditions.
Consider a Grammar E>E+n|ExXn|n for a sentence n+n Xn, the handles in the right-sentential form of the reduction are ?
An,E+nandE+nxn
Bn,E+nand E+Exn
Cn,n+nandn+nxn
Dn,E+nand Exn
Answer:(D)n,E+nand Exn
Explanation
The key idea is stated in the problem: Consider a Grammar E>E+n|ExXn|n for a sentence n+n Xn, the handles in the right-sentential form of the reduction are ?. The correct answer is D: n,E+nand Exn. It follows the governing definition, algorithm, or calculation in this theory of computation and compilers item; the other choices fail to satisfy one or more stated conditions.
One of the purposes of using intermediate code in compilers is to :
Amake parsing and semantic analysis simpler
Bimprove error recovery and error reporting
Cincrease the chances of reusing the machine independent code optimizer in other compilers
Dimprove the register allocation
Answer:(C)increase the chances of reusing the machine independent code optimizer in other compilers
Explanation
The key idea is stated in the problem: One of the purposes of using intermediate code in compilers is to :. The correct answer is C: increase the chances of reusing the machine independent code optimizer in other compilers. It follows the governing definition, algorithm, or calculation in this theory of computation and compilers item; the other choices fail to satisfy one or more stated conditions.
The sum of minimum and maximum number of final states for a Deterministic Finite Automata (DFA) having 'P" state is equal to : () Pp
Ap
Bp-1
Cp+1
Dp+2
Answer:(C)p+1
Explanation
The key idea is stated in the problem: The sum of minimum and maximum number of final states for a Deterministic Finite Automata (DFA) having 'P" state is equal to : () Pp. The correct answer is C: p+1. It follows the governing definition, algorithm, or calculation in this theory of computation and compilers item; the other choices fail to satisfy one or more stated conditions.
Three address codes can be represented in special structures known as :
A. Quadruples
B. Triples
C. Patterns
D. Indirect Triples Choose the correct answer from the options given below :
A(A) and (B) Only
B(A), (B) and (D) Only
C(B) and (C) Only
D(B), (Cand (D) Only
Answer:(B)(A), (B) and (D) Only
Explanation
The key idea is stated in the problem: Three address codes can be represented in special structures known as :
A. Quadruples
B. Triples
C. Patterns
D. Indirect Triples Choose the correct answer from the options given below :. The correct answer is B: (A), (B) and (D) Only. It follows the governing definition, algorithm, or calculation in this theory of computation and compilers item; the other choices fail to satisfy one or more stated conditions.
Which of the statement is/are CORRECT ?
A. Moore and Mealy machines are finite state machines with output capabilities.
B. Any given Moore machine has an equivalent Mealy machine.
C. Any given Mealy machine has an equivalent Moore machine.
D. Moore machine is not a finite state machine. Choose the correct answer from the options given below :
Arrange the following phases of a compiler as per their order of execution (start to end)
A. Target code generation
B. Syntax Analysis
C. Code optimization
D. Semantic Analysis
E. Lexical Analysis Choose the correct answer from the options given below :
The prototyping model has the sequence :
A. Customer Evaluation
B. Quick design
C. Requirements
D. Implement
E. Design Choose the correct answer from the options given below :
AC → A → D → B → E
BB → C → A → D → E
CC → B → D → A → E
DE → B → C → D → A
Answer:(C)C → B → D → A → E
Explanation
The key idea is stated in the problem: The prototyping model has the sequence :
A. Customer Evaluation
B. Quick design
C. Requirements
D. Implement
E. Design Choose the correct answer from the options given below :. The correct answer is C: C → B → D → A → E. It follows the governing definition, algorithm, or calculation in this theory of computation and compilers item; the other choices fail to satisfy one or more stated conditions.
Consider L = L₁ ∩ L₂, where L₁ = {0ᵐ1ᵐ20ⁿ1ⁿ | m, n ≥ 0} and L₂ = {0ᵐ1ⁿ2ᵏ | m, n, k ≥ 0}. Then L is
ARecursively enumerable but not context-free
BRegular
CContext-free but not regular
DNot recursive
Answer:(C)Context-free but not regular
Explanation
For a string to be in both languages, the portion after 2 in L₁ must be empty and the number of 1s before 2 must equal the number of 0s. Thus L reduces to {0ᵐ1ᵐ2 | m ≥ 0}, which is context-free but not regular.
Let L₁ and L₂ over Σ = {a, b} be represented by (a* + b)* and (a + b)* respectively. Which statement is true?
AL₁ ⊂ L₂
BL₂ ⊂ L₁
CL₁ = L₂
DL₁ ∩ L₂ = ∅
Answer:(C)L₁ = L₂
Explanation
The inner expression a* + b can generate either any run of a characters or a single b. Repeating it with the outer star generates every string over {a, b}, exactly as (a + b)* does. Therefore L₁ = L₂; neither language excludes a mixed a/b string.
AThe union of two context-free languages is context-free.
BThe intersection of two context-free languages is context-free.
CThe complement of a context-free language is context-free.
DEvery context-free language can be accepted by a deterministic pushdown automaton.
Answer:(A)The union of two context-free languages is context-free.
Explanation
Context-free languages are closed under union. They are not closed under intersection or complement, and deterministic PDAs recognise only the smaller class of deterministic context-free languages.
Which of the following is not an intermediate code form?
ASyntax trees
BThree-address codes
CQuadruples
DPostfix notation
Answer:(A)Syntax trees
Explanation
Three-address code, quadruples, and postfix notation are linear intermediate-code representations used in translation. A syntax tree is a structural representation of the parsed program rather than an intermediate code sequence.
Which of the following are applications of a compiler symbol table?
A. Storage allocation
B. Checking type compatibility
C. Suppressing duplicate-error messages
A(A) and (B) only
B(A) and (C) only
C(B) and (C) only
D(A), (B), and (C)
Answer:(D)(A), (B), and (C)
Explanation
A symbol table records identifiers and their attributes. Compilers consult it for storage allocation and type checking, and it also lets them recognise a repeated declaration so duplicate diagnostics are controlled. Thus all three listed uses apply.
Let G₁ and G₂ be arbitrary context-free grammars and R an arbitrary regular language. Which problems are undecidable?
A. Is L(G₁) = L(G₂)?
B. Is L(G₁) ⊂ L(G₂)?
C. Is L(G₁) = R?
A(A) only
B(B) only
C(A) and (B) only
D(A), (B), and (C)
Answer:(D)(A), (B), and (C)
Explanation
Equivalence and proper inclusion for arbitrary context-free languages are undecidable. Equality with a regular language is also undecidable: choosing R = Σ* would decide the undecidable universality problem for context-free grammars.
L₁ = {aᶻ | z is an integer},
L₂ = {a²ᶻ | z > 0}, and
L₃ = {ww | w ∈ {a,b}*}.
Which are regular?
AL₁ and L₂ only
BL₁ and L₃ only
CL₂ only
DL₃ only
Answer:(A)L₁ and L₂ only
Explanation
The first two languages are unary languages described by simple length patterns and are regular. The copy language {ww} requires matching an arbitrary string with itself, which is not regular.
Which grammars are ambiguous?
A. S → SS | aSb | bSa | a
B. S → aSbS | bSaS | ε
C. S → aAB; A → bBb; B → A | ε
A(A) and (C) only
B(A) and (B) only
C(B) and (C) only
D(A), (B), and (C)
Answer:(D)(A), (B), and (C)
Explanation
Ambiguity means that one terminal string can have two different parse trees. The recursive alternatives in each listed grammar allow the same terminal sequence to be decomposed in more than one way; this is precisely why all three grammars are classified as ambiguous. A grammar need not have visibly identical productions to be ambiguous.
List I List II
A. Recursively Enumerable language @ LpecULnx
B. Recursive language CQ). ‘Fee Base
C. Context Free language (II) Le A Ler
List I
List II
Items are listed in the question stem.
Match each item to its stated description or complexity.
AOCR review required
BOCR review required
CALI, B-II, C-II (4) A-II, B-I, C-III
DOCR review required
Answer:(C)ALI, B-II, C-II (4) A-II, B-I, C-III
Explanation
Use the containment chain Regular ⊂ Context-free ⊂ Recursive ⊂ Recursively enumerable. The set expressions in option C are the only ones consistent with these inclusions.
Consider the following regular expressions:
(a) r=a(b+a)*
(b) s=a(a+b)*
(c) t=aa*b
AOCR review required
BOCR review required
CL(r)DL(t)D L(s) (4) L(s)aL(t)DL(r)
DOCR review required
Answer:(B)OCR review required
Explanation
Compare the strings generated by the three expressions directly. The relation stated in option B is the one that preserves the required containments between the languages.
Given below are two statements:
Statement I: The problem "Is L; AL; = $?" is undecidable for context sensitive languages
L, and L3.
Statement II: The problem "Is WeL?" is decidable for context sensitive language L, (where
W isa string).
In the light of the above statements, choose the correct answer from the options given below
qd) Both Statement I and Statement II are true
AOCR review required
BBoth Statement I and Statement II are false
CStatement I is correct but Statement II is false
DStatement I is incorrect but Statement II is true.
Answer:(A)OCR review required
Explanation
Emptiness of the intersection of arbitrary context-sensitive languages is undecidable, while membership for a context-sensitive language is decidable because a linear-bounded automaton has a finite bounded configuration space for a fixed input.
Sign in to read the full explanation
Frequently asked questions
How many Theory of Computation and Compilers questions have been asked in UGC NET Computer Science?
46 Theory of Computation and Compilers questions appear in the UGC NET Computer Science papers held between 2020–2025, and all of them are on this page with their answer key.
Are the answers on this page free?
Yes. Every question, its options, and the correct answer are free to read with no account. Signing in additionally unlocks the detailed explanation under each question.
Is Theory of Computation and Compilers an important topic for UGC NET Computer Science?
Theory of Computation and Compilers appears in every recent UGC NET Computer Science paper, across all 4 sittings covered here. Its share of the paper makes it worth revising thoroughly rather than sampling.
How should I practise Theory of Computation and Compilers after reading these questions?
Attempt the Theory of Computation and Compilers topic-wise sets, which put the same questions into a timed interface with instant scoring and weak-area analysis afterwards.