Theory of Computation Subject Wise UGC NET Question Analysis

Theory of Computation Subject Wise UGC NET Question Analysis

Q1➡ | NET December 2022
The Transition function ‘δ’ in multi-tape Turing machine is defined as :
i ➥ δ : 2Q ×  Γk  → 2Q × Γk × {L, R, S}k
ii ➥ δ : Q × Q × Γk → Q × Q × Γk × {L, R, S} k
iii ➥ δ : Q × Γk → Q × Γk × {L, R, S} k
iv ➥ δ : Q × Γk × 2Q → Q × Γk × 2Q × {L, R, S} k
Best Explanation:
Answer: (iii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q2➡ | NET December 2022
In pumping lemma for regular languages, to say a language is satisfying pumping lemma, what is the minimum length of ‘y’ if you consider the string as ‘xyz’.
i ➥ n
ii ➥ 2
iii ➥ 1
iv ➥ 0
Best Explanation:
Answer: (iii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q3➡ | NET December 2022
In the ɛ-NFA , M = ({q0, q1, q2, q3}, {a}, δ , q0, {q3} ) where ‘δ ’ is given in the transition table below, what is the minimum length of string to reach to the final state?
In the  - NFA , M = ({q0,q1,q2,q3}, {a}, ,q0,{q3} ) where ‘’ is given in the transition table below, what is the  minimum length of string to reach to the final state?
i ➥ 0
ii ➥ 1
iii ➥ 2
iv ➥ 3
Best Explanation:
Answer: (ii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q4➡ | NET December 2022
The Transition function ‘δ’ in mu
Which of the following is /are correct about the regular expression?
aa*bb*cc*dd*
(A) The language for the given expression
L = { anbncmdm | n≥1, m≥1 } ∪ { anbmcmdn | n≥1, m≥1 }
(B) The context free language for the given expression is
S→AB | C
A→ aAb | ab
B→ cBd | cd
C→aCd | aDd
D→bDc | BC
(C) The language generated by this expression is equal number of a’s, followed by equal number of b’s , followed by equal number of c’s and followed by equal number of d’s.
Choose the correct answer from the options given below:
i ➥ Only A is correct
ii ➥ Only B is Correct
iii ➥ Both A and B are correct
iv ➥ All the three A, B and C are correct
Best Explanation:
Answer: (iii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q5➡ | NET December 2022
which of the following are correct on regular expression?
(A) φ + L = L + φ = L
(B) ɛ L = L ɛ = L
(C) φ L = L φ = φ
(D) φ L = L φ = L
Choose the correct answer from the options given below:
i ➥ A, B and D only
ii ➥ A, B and C only
iii ➥ B and D only
iv ➥ A and D only
Best Explanation:
Answer: (ii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q6➡ | NET December 2022
Match the following based on the language accepted by using brute force method of parsing.
SaSa |aa	I.	((2n*3)-4);n1
S aaSaa | aa	II.	2n ;n1
S aaaSaaa | aa	III.	((4*2n)-6; n1
S aaaaSaaaa | aa	IV.	2n-2; n1
Choose the correct answer from the options given below:
i ➥ A-(IV), B-(III), C-(I), D-(II)
ii ➥ A-(II), B-(IV), C-(I), D-(III)
iii ➥ A-(I), B-(IV), C-(III), D-(II)
iv ➥ A-(II), B-(III), C-(I), D-(IV)
Best Explanation:
Answer: (ii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q7➡ | NET December 2022
What is the safest order while simplifying context Free Grammar?
i ➥ Elimination of ɛ-productions , Unit productions and then useless symbols & Productions.
ii ➥ Elimination of useless symbols & productions, ɛ- productions and then Unit Productions.
iii ➥ Elimination of Unit productions, ɛ- productions and then useless symbols and productions.
iv ➥ Elimination of ɛ- productions. Useless symbols and productions and then Unit Productions.
Best Explanation:
Answer: (i)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q8➡ | NET December 2022
 A Turing Machine for the language L = { anbmcndm  | n1, m1 } is designed. The resultant model is M = ({q0, q1, q2, q3, q4, q5, q6, q7, qf},  {a,b,c,d,X1,X2,Y1,Y2} ,  , q0, B, {qf} ) and part of  is given in the transition table. You need to write the following questions based on design of Turing Machine for the given language. Not that, while designing the Turing Machine X1 and X2 are used to work with a’s and c’s and Y1 and Y2 are used to handle b’s and d’s of the given strings.
What is the Move in the cell with number ‘M1’ of the resultant Table?
i ➥ (q2,X2,R)
ii ➥ (q2,X2,L)
iii ➥ (q3,X2,L)
iv ➥ Error Entry
Best Explanation:
Answer: (ii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q9➡ | NET December 2022
A Turing Machine for the language L = { anbmcndm | n1, m1 } is designed. The resultant model is M = ({q0, q1, q2, q3, q4, q5, q6, q7, qf}, {a,b,c,d,X1,X2,Y1,Y2} , , q0, B, {qf} ) and part of  is given in the transition table. You need to write the following questions based on design of Turing Machine for the given language. Not that, while designing the Turing Machine X1 and X2 are used to work with a’s and c’s and Y1 and Y2 are used to handle b’s and d’s of the given strings.
What is the Move in the cell with number ‘M2’ of the resultant Table?
i ➥ (q1,X1,R)
ii ➥ (q1,a,R)
iii ➥ (q2,X1,R)
iv ➥ Error Entry
Best Explanation:
Answer: (iv)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q10➡ | NET December 2022
A Turing Machine for the language L = { anbmcndm | n1, m1 } is designed. The resultant model is M = ({q0, q1, q2, q3, q4, q5, q6, q7, qf}, {a,b,c,d,X1,X2,Y1,Y2} , , q0, B, {qf} ) and part of  is given in the transition table. You need to write the following questions based on design of Turing Machine for the given language. Not that, while designing the Turing Machine X1 and X2 are used to work with a’s and c’s and Y1 and Y2 are used to handle b’s and d’s of the given strings.
What is the Move in the cell with number ‘M3’ of the resultant Table?
i ➥ (q1,X1,L)
ii ➥ (q4,X1,R)
iii ➥ (q1,X1,R)
iv ➥ Error Entry
Best Explanation:
Answer: (iii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q11➡ | NET December 2022
A Turing Machine for the language L = { anbmcndm | n1, m1 } is designed. The resultant model is M = ({q0, q1, q2, q3, q4, q5, q6, q7, qf}, {a,b,c,d,X1,X2,Y1,Y2} , , q0, B, {qf} ) and part of  is given in the transition table. You need to write the following questions based on design of Turing Machine for the given language. Not that, while designing the Turing Machine X1 and X2 are used to work with a’s and c’s and Y1 and Y2 are used to handle b’s and d’s of the given strings.
What is the Move in the cell with number ‘M4’ of the resultant Table?
i ➥ (q5,Y1,L)
ii ➥ (q3,Y1,R)
iii ➥ (q4,Y1,L)
iv ➥ (q3,Y1,L)
Best Explanation:
Answer: Mark to All
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q12➡ | NET December 2022
A Turing Machine for the language L = { anbmcndm | n1, m1 } is designed. The resultant model is M = ({q0, q1, q2, q3, q4, q5, q6, q7, qf}, {a,b,c,d,X1,X2,Y1,Y2} , , q0, B, {qf} ) and part of  is given in the transition table. You need to write the following questions based on design of Turing Machine for the given language. Not that, while designing the Turing Machine X1 and X2 are used to work with a’s and c’s and Y1 and Y2 are used to handle b’s and d’s of the given strings.
What is the Move in the cell with number ‘M5’ of the resultant Table?
i ➥ (q4,X2,R)
ii ➥ (q5,X2,R)
iii ➥ (q5,X2,L)
iv ➥ Error Entry
Best Explanation:
Answer: Mark to All
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q13➡ | NET june 2022
Consider the Properties of recursively enumerable sets:
(A) Finiteness
(B) Context freedom
(C) Emptiness
Which of the following is true?
i ➥ Only (A) and (B) are not decidable
ii ➥ Only (B) and (C) are not decidable
iii ➥ Only (C) and (A) are not Decidable
iv ➥ All (A), (B) and (C) are not decidable
Best Explanation:
Answer: (iv)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q14➡ | NET June 2022
Consider the production rules of grammar G:
S→ AbB
A→ aAb/λ
B→ bB/λ
Which of the following language L is generated by grammar G?
i ➥ L={ anbm : n≥0, m>n}
ii ➥ L={ anbm : n≥0, m≥0}
iii ➥ L={ anbm : n≥m}
iv ➥ L={ anbm : n≥m}
Best Explanation:
Answer: (i)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q15➡ | NET June 2022
Consider the language L= {anbm: n≥4, m≤3}
Which of the following regular expression represents language L?
i ➥ aaaa*(λ+b+bb+bbb)
ii ➥ aaaaa*(b+bb+bbb)
iii ➥ aaaaa*(λ+b+bb+bbb)
iv ➥ aaaa*(b+bb+bbb)
Best Explanation:
Answer: I
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q16➡ | NET June 202
Match List (I) with List (II):
Type 0	(I)	Finite automata
Type 1	(II)	Turing Machine
Type 2	(III)	Linear bound automata
Type 3	(IV)	Pushdown automata
Choose the correct answer from the options given below:
i ➥ (A)-(III),(B)-(IV),(C)-(II),(D)-(I)
ii ➥ (A)-(II),(B)-(III),(C)-(IV),(D)-(I)
iii ➥ (A)-(III),(B)-(IV),(C)-(I),(D)-(II)
iv ➥ (A)-(II),(B)-(III),(C)-(I),(D)-(IV)
Best Explanation:
Answer: (ii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q17➡ | NET June 2022
Consider the following NPDA = ({q0, q1, q2}, {a, b}, {1, z}, δ , q0, z, {qf})
(q0, , z) = {(qf, z)}
(q0, a, z) = {( q1, 11z)}
(q1. A, 1) = {( q1, 111)}
(q1, b, 1) = {(q1, )}
(q1, , z) = {( q1, z)}
i ➥ L = {a2nbn : n≥0}
ii ➥ L = {anb2n : n≥0}
iii ➥ L = {a2nbn : n>0}
iv ➥ L = {anb2n : n>0}
Best Explanation:
Answer: (ii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q18➡ | NET June 2022
Consider L = {ab, aa, baa}
Which of the following string is NOT in L?
i ➥ baaaaabaaaaa
ii ➥ abaabaaabaa
iii ➥ aaaabaaaa
iv ➥ baaaaabaa
Best Explanation:
Answer: (i)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q19➡ | NET June 2022
The reduced grammar equivalent to the grammar, whose production rules are given below is
S—> AB | CA
B—> BC | AB
A—> a
C—> aB | b
i ➥ S—> CA , A—> a, C—> b
ii ➥ S—> CA | B , B—> BC | B, A—> a , C—> aB | b
iii ➥ S—> CA | B, B —> BC , A—> a , C—> aB | b
iv ➥ S—> AB | AC, B —> BC | BA, A—> a , C —> aB | b
Best Explanation:
Answer: (i)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q20➡ | NET June 2022
Consider two lists A and B of three strings on {0, 1}
(A)	Only PCP in X has solution
(B)	Only PCP in Y has solution
(C)	PCP in both X and Y has solution
(D)	PCP neither in X nor in Y has solution
i ➥ Only PCP in X has solution
ii ➥ Only PCP in Y has solution
iii ➥ PCP in both X and Y has solution
iv ➥ PCP neither in X nor in Y has solution
Best Explanation:
Answer: (iii)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q21➡ | NET June 2022
Consider the following statements about Context Free Language ( CFL) :
Statement (I) : CFL is closed under homomorphism
Statement (II) : CFL is closed under complement
Which of the following is correct?
i ➥ Statement (I) is true and statement (II) is false
ii ➥ Statement (II) is true and statement (I) is false
iii ➥ Both statement (I) and statement (II) are true
iv ➥ Both statement (I) and statement (II) are false
Best Explanation:
Answer: (i)
Explanation: Upload Soon
More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line


Q22➡ | NET June 2021
Which of the following languages are not regular?
A. L={ (01)n0k | n > k, k>=0 }
B. L={ cnbkan+k | n >= 0, k>=0 }
C. L={ 0n1k | n≠k }
Choose the correct answer from the options given below:
i ➥ A and C only
ii ➥ A and B only
iii ➥ A, B and C
iv ➥ B and C only

Show Answer With Best Explanation

Answer: III
Explanation:
Regular language does not have any memory to compare.
A. L={ (01)n0k | n > k, k>=0 }
Here, occurance of n is greater than occurance of k, for that we need to compare value of n with k, and regular language does not have power to compare. so,it is not regular language. It is Context Free Language.

B. L={ cnbkan+k | n >= 0, k>=0 }
Here, occurance of c is less than or equal to ocuurance of a and Finite Automata cannot do this comparison. So, it is not regular language . It is Context Free Language.

C. L={ 0n1k | n≠k }
Here, occurance of n is not equal to occurance of k, and this type of comparison cannot be done by Finite Automata.So, it is also not regular language . It is Context Free Language.

So, Option(III) is correct.

More Discussion Explanation On YouTubeLearn Topic WiseHelp-Line

Q23➡ | NET June 2021
What language is accepted by the pushdown automaton
M=({q0, q1, q2}, {a, b}, {a, b, z}, δ, q0, z, {q2})
with
δ(q0, a, a) ={ (q0, aa) }; δ(q0, b, a) ={(q0, ba)}
δ(q0, a, b) ={ (q0, ab) }; δ(q0, b, b) ={ (q0, bb) }
δ(q0, a, z) ={ (q0, az) }; δ(q0, b, z) ={ (q0, bz) }
δ(q0, λ, b) ={ (q1, b) }; δ(q0, λ, a) ={ (q1, a) }
δ(q1, a, a) ={ (q1, λ) }; δ(q1, b, b) ={ (q1, λ) }
δ(q1, λ, z) ={ (q2, z) }?
i ➥ L = { w | na(w) <= nb(w), w Є {a, b}+}}
ii ➥ L = { w | na(w) = nb(w), w Є {a, b}+}}
iii ➥ L = { w | nb(w) <= na(w), w Є {a, b}+}}
iv ➥ L= {wwR | w Є {a, b}+}

Show Answer With Best Explanation

Answer: IV
Explanation:
Given,
pushdown automata M=({q0, q1, q2}, {a, b}, {a, b, z}, δ, q0, z, {q2})
where,
{q0, q1, q2} = Finite state of states
{a, b} = Input alphabet
{a, b, z} = Stack alphabet
δ = Transition Function
q0 = Initial state
z = Bottom of the stack
{q2} = Final state
Let’s Draw pushdown automata for a given Transition function:
 What language is accepted by the pushdown automaton M=({q0, q1, q2}, {a, b}, {a, b, z}, δ, q0, z, {q2}) with  δ(q0, a, a) ={ (q0, aa) };
First, keep pushing any number of a’s and b’s in the stack , and then pop one a from stack on seeing input alphabet a and pop one b from stack on seeing input alpbabet b. Keep popping untill we reach end of string λ. when we reach end of string λ and Top of Stack is z, then go to final state.
Let’s take one string and analyze them
suppose string
What language is accepted by the pushdown automaton M=({q0, q1, q2}, {a, b}, {a, b, z}, δ, q0, z, {q2}) with
Language generated by above push down automata (L)= {wwR | w Є {a, b}+}
So, Option(IV) is correct.

More Discussion Explanation On YouTubeLearn Topic WiseHelp-Line

Q24➡ | NET June 2021
L1 = { 0n1n0m | n>=1, m>=1 }
L2 = { 0n1m0m | n>=1, m>=1 }
L3 = { 0n1n0n | n>=1}
Which of the following are correct statements?
A. L3 =L1 ∩ L2
B. L1 and L2 are context free languages but L3 is not a context free language
C. L1 and L2 are not context free languages but L3 is a context free language
D. L1 is a subset of L3
Choose the correct answer from the options given below:
i ➥ A and C only
ii ➥ A and D only
iii ➥ A only
iv ➥ A and B only

Show Answer With Best Explanation

Answer: IV
Explanation:
Statement A: L3 =L1 ∩ L2
L1 = { 0n1n0m | n>=1, m>=1 }
= {010, 0100, 00110, 001100……………………}
L2 = { 0n1m0m | n>=1, m>=1 }
= {010, 0010, 01100, 001100…………………. }
L3 =L1 ∩ L2
= {010, 001100, 000111000…………………….}
= {0n1n0n | n>=1}
Statement A is correct.
Statement B: L1 and L2 are context free languages but L3 is not a context free language
L1 = { 0n1n0m | n>=1, m>=1 }
let’s draw push down automata for above language:
L1 = { 0n1n0m | n>=1, m>=1 }”><br>Language L<sub>1</sub> is Context Free Language.<br><br><strong><strong>L<sub>2</sub> </strong></strong>= { 0<sup>n</sup>1<sup>m</sup>0<sup>m</sup> | n>=1, m>=1 }<br>let’s draw push down automata for above language:<br><img loading==1, m>=1 }”>
Language L2 is Context Free Language.

L3 = { 0n1n0n | n>=1}
Here, n times 0 followed by n times 1 followed by n times 0, this kind of comparison cannot be done by Push Down Automata. So, it is not Context Free Language. It is Context Sensitive Language.
Statement B is correct.

Statement C: L1 and L2 are not context free languages but L3 is a context free language
As statement B is correct, Statement C is obviously incorrect.

Statement D: L1 is a subset of L3
L1 = { 0n1n0m | n>=1, m>=1 }
= {010, 0100, 00110, 001100……………………}
L3 ={ 0n1n0n | n>=1}
= {010, 001100, 000111000…………………….}
As see, L1 is superset L3
Statement D is incorrect.
So, Option(IV) is correct.

More Discussion Explanation On YouTubeLearn Topic WiseHelp-Line

Q25➡ | NET June 2021
Any string of terminals that can generated by the following context free grammar (where S is start non-terminal symbol)

S→XY
X→0X|1X|0
Y→Y0|Y1|0
i ➥ has at least one 1
ii ➥ has no consecutive 0’s or 1’s
iii ➥ should end with 0
iv ➥ has at least two 0’s

Show Answer With Best Explanation

Answer: IV
Explanation:
S-> XY
->0XY | 1XY | 0Y
->0XY0 | 0XY1 | 0X0 | 1XY0 | 1X0 | 0Y0 | 0Y1 | 00
->0XY0 | 0XY1 | 000 | 1XY0 | 100 | 000 | 001 | 00

Option(i): has at least one 1
This is incorrect, because one of the string of above language is 00 which don’t contain 1.

Option(ii): has no consecutive 0’s or 1’s
This is incorrect, because one of the string of above language is 100 which has consecutive 0’s.

Option(iii): should end with 0
This is incorrect, because one of the string of above language is 001 which ends with 1.

Option(iv): has at least two 0’s
This is correct. Because X and Y always end with 0, so string has atleast two 0’s.

More Discussion Explanation On YouTubeLearn Topic WiseHelp-Line

Q26➡ | NET June 2021
Match List I with List II

Choose the correct answer from the options below:
i ➥ A – III, B -I , C – IV, D – II
ii ➥ A – III, B -II , C – I, D – IV
iii ➥ A – III, B -IV, C – I, D – II
iv ➥ A – IV, B -III , C – I, D – II

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q27➡ | NET June 2021
What is the minimum number of states required to the finite automaton equivalent to the transition diagram given below?
i ➥ 3
ii ➥ 4
iii ➥ 5
iv ➥ 6
Answer: III
Click below to see detailed Solution
[Easy Solution]Explanation On YouTubePage FaultHelp-Line

Q28➡ | NET June 2021
Given below are two statements
Statement I:
The family of context free languages is closed under homomorphism
Statement II:
The family of context free languages is closed under reversal.
In light of the above statements, choose the correct answer from the options given below
i ➥ Both Statement I and Statement II are false
ii ➥ Both Statement I and Statement II are true
iii ➥ Statement I is false but Statement II is true
iv ➥ Statement I is true but Statement II is false

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q29➡ | NET June 2021
Find the regular expression for the language accepted by the automata given below.
i ➥ (a+b)ab(ab+bb+ aa*(a+b)ab)*
ii ➥ (aa*(a+b)ab)*
iii ➥ a*(a+b)ab(ab+bb+ aa*(a+b)ab)*
iv ➥ a*ab(ab+bb+ aa*(a+b)ab)*

Show Answer With Best Explanation

Answer: (Marks to all from UGC NET )
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q30➡ | NET November 2020
Which of the following statements is true?
i➥ The union of two context free languages is context free.
ii ➥ The intersection of two context free languages is context free.
iii ➥ The complement of a context free language is context free.
iv ➥ If a language is context free, it can always be accepted by a deterministic pushdown automaton.

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q31➡ | NET November 2020
Consider the following languages:
Consider the following languages: L1={aźZ| ź is an integer} L2={azź | ź>0} L3={ωω| ω{a,b}*}  Which of the languages is (are) regular?”><br>Which of the languages is (are) regular?</td></tr></tbody></table></figure>



<figure class=
i ➥ L1 and L2 only
ii ➥ L1 and L3 only
iii ➥L1 only
iv ➥ None of these

Show Answer With Best Explanation

Answer: IV
Explanation:
Since, Regular Language doesn’t have memory .So, it doesn’t have capacity to hold anything.

In L1, in order to calculate aźZ we have to first calculate zz  & store the value in memory then need to calculate power of a. but we already known that Regular Language doesn’t have capacity to hold anything. So, L1 is not regular language.

In L2, again we have to calculate zź , then store it & then need to find power of a. So, L2 is also not regular language.

In L3, we have to compare first ω with second ω. But, Regular Language doesn’t have capacity to compare two string. So L3 is also not regular language.

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Theory of Computation Subject Wise UGC NET Question Analysis

Q32➡ | NET November 2020
Consider the following regular expressions:
a) r=a(b+a)*
b) s=a(a+b)*
c) t=aa*b
Choose the correct answer from the options given below based on the relation between the languages generated by the regular expressions above:
i ➥ L(r)⊆L(s)⊆L(t)
ii ➥ L(r)⊇L(s)⊇L(t)
iii ➥ L(r)⊇L(t)⊇L(s)
iv ➥ L(s)⊇L(t)⊇L(r)

Show Answer With Best Explanation

Answer: II
Explanation:
R = {a, ab, aa, aba, aaa, aab, abb…….}
S = {a, aa, ab, aab, aaa, abb, aba…….}
T = {ab, aab, aaab, …………………………}
If you notice then r ⊇ s ⊇ t 

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q33➡ | NET November 2020
Let L1 and L2 be languages over Σ =(a,b) represented by the regular expressions (a* + b)* and (a+b)* respectively.
Which of the following is true with respect to the two languages?
i ➥ L1 ⊂ L2
ii ➥ L2 ⊂ L1
iii ➥ L1 = L2
iv ➥ L1 ∩ L2 = ɸ

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q34➡ | NET November 2020
Which of the following grammars is (are) ambiguous?
(A) s → ss | asb | bsa | λ
(B) s → asbs | bsas | λ
(C) s → aAB
A → bBb
B → A | λ where λ denotes empty string
Choose the correct answer from the options given below:
i ➥ (A) and (C) only
ii ➥ (B) only
iii ➥ (B) and (C) only
iv ➥ (A) ,(B) and (C) only

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q35➡ | NET November 2020
Match List I with List II:

LR: Regular languages,
LCF: Context free language,
LREC: Recursive language,
LRE: Recursively enumerable language.
Match List I with List II: LR: Regular languages, LCF: Context free language, LREC: Recursive language,  LRE: Recursively enumerable language. List I                                                                                     List II (A) Recursively Enumerable language                     (I) L'REC U LRE (B) Recursive language                                              (II) L'CF U LREC (C) Context Free language                                        (III) L*R ∩ LCF Choose the correct answer from the options given below: A)	A-II, B-III, C-I B)	A-III, B-I, C-II C)	A-I, B-II, C-III D)	A-II, B-I, C-III
Choose the correct answer from the options given below:
i ➥ A-II, B-III, C-I
ii ➥ A-III, B-I, C-II
iii ➥ A-I, B-II, C-III
iv ➥ A-II, B-I, C-III

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q36➡ | NET November 2020
Consider L=L1 ∩ L2 where
Consider L=L1 ∩ L2 where  L1 = {0m 1m 20n 1n | m,n ≥0} L2 = {0m 1n 2k | m,n,k ≥0} Then, the language L is A)	recursively enumerable but not context free B)	regular C)	Context free but not regular D)	Not recursive
Then, the language L is
i ➥ Recursively enumerable but not context free
ii ➥ Regular
iii ➥ Context free but not regular
iv ➥ Not recursive

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q37➡ | NET November 2020
Given below are two statements:
Statement I: The problem “Is L1 ∧ L2=Ø?” is undecidable for context sensitive languages L1 and L2.
Statement II: The problem “Is W ∈ L?”is decidable for context sensitive language L, (where W is a string).
In the light of the above statements, choose the correct answer from the options given below:
i ➥ Both Statement I and Statement II are true
ii ➥ Both Statement I and Statement II are false
iii ➥ Statement I is correct but Statement II is false
iv ➥ Statement I is incorrect but Statement II is true

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q38➡ | NET November 2020
Let G1 and G2 be arbitrary context free languages and R an arbitrary regular language. Consider the following problems:
A) Is L(G1)=L(G2)?
B) Is L(G2)≤L(G1)?
C) Is L(G1)=R?
Which of the problems are undecidable?

Choose the correct answer from the options given below:
i ➥ (A) only
ii ➥ (B) only
iii ➥ (A) and (B) only
iv ➥ (A), (B) and (C)

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Theory of Computation Subject Wise UGC NET Question Analysis

Q39➡ | NET December 2019
Let G = (V, T, S, P) be any context-free grammar without any λ-productions or unit productions. Let K be the maximum number of symbols on the right of any production P. The maximum number of production rules for any equivalent grammar in Chomsky normal form is given by:
i ➥ (K – 1) |P| + |T| – 1
ii ➥ (K – 1) |P| +| T|
iii ➥ K |P| + |T| – 1
iv ➥ K |P| + |T|

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q40➡ | NET December 2019
Consider the following languages:
Consider the following languages: L1 = {anbncm} ∪ {an bm cm}, n. m ≥ o L2 = {ωωR |ω ∈ {a, b}*} Where R represents reversible operation. Which one of the following is (are) inherently ambiguous language(s)?

Which one of the following is (are) inherently ambiguous language(s)?
i ➥ Only L1
ii ➥ Only L2
iii ➥ Both L1 and L2
iv ➥ Neither L1 nor L2

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q41➡ | NET December 2019
Consider Σ = {w, x} and T = {x, y, z}. Define homomorphism h by :
h(x) = xzy
h(w) = zxyy
If L is the regular language denoted by r=(w+x*)(ww)*. then the regular language h(L) is given by
i ➥ (z x yy + xy) (z x yy)
ii ➥ (zxyy + (xzy)* (zxyy zxyy)*
iii ➥ (zxyy + xyz) (zxyy)*
iv ➥ (zxyy + (xzy)* (zxyy zxyy)

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q42➡ | NET December 2019
Consider the following statements:
S1: These exists no algorithm for deciding if any two Turning machine M1 and M2 accept the same language.
S2: Let M1 and M2 be arbitrary Turing machines. The problem to determine L(M1)⊆ L(M2)is undecidable.

Which of the statements is (are) correct?
i ➥ Only S1
ii ➥ Only S2
iii ➥ Both S1 and S2
iv ➥ Neither S1 nor S1

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q43➡ | NET December 2019
Consider the following grammar :
S→0A|0BB
A→00A| λ
B→1B|11C
C→B
Which language does this grammar generate?
i ➥ L((00) * 0+(11)*1)
ii ➥ L(0(11)* + 1(00)*)
iii ➥ L((00)*0)
iv ➥ L(0(11) *1)

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q44➡ | NET December 2019
Let A = (001, 0011, 11, 101} and B = (01, 111, 111, 010}. Similarly, let C = {00, 001, 1000} and D = {0, 11,011}.
Which of the following pairs have a post-correspondence solution?
i ➥ Only pair (A, B)
ii ➥ Only pair (C, D)
iii ➥ Both (A, B) and (C, D)
iv ➥ Neither (A, B) nor (C, D)

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q45➡ | NET December 2019
Consider the language L={n>2} on Σ={a,b}. Which one of the following generates the language L?
i ➥ S →aA |a,A → aAb |b
ii ➥ S → aaA |λ, A → aAb|λ
iii ➥ S → aaaA |a, A → aAb|λ
iv ➥ S → aaaA , A → aAb|λ

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q46➡ | NET December 2019
Consider the following statements with respect to the language L = {anbn | n ≥ 0}
Consider the following statements with respect to the language L = {anbn | n ≥ 0}   Which one of the following is correct? A)	only S1 and S2 B)	only S1 and S3 C)	only S2 and S3 D)	S1, S2 and S3
Which one of the following is correct?
i ➥ Only S1 and S2
ii ➥ Only S1 and S3
iii ➥ Only S2 and S3
iv ➥ S1, S2 and S3

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q47➡ | NET June 2019
Which of the following problems is/are decidable problem(s) (recursively enumerable) on a Turing machine M?
(a) G is a CFG with L(G)=∅
(b) There exist two TMs M1 and M2 such that L(M) ⊆{L(M1)UL(M2)}= language of all TMs
(c) M is a TM that accepts w using a most 2|w| cells of tape
i ➥ (a) and (b) only
ii ➥ (a) only
iii ➥ (a), (b) and (c)
iv ➥ (c) only

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q48➡ | NET June 2019
For a statement
A language L ⊆ Σ* is recursive if there exists some Turing machine M
Which of the following conditions is satisfied for any string w?
i ➥ If w ε L, then m accepts w and M will not halt
ii ➥ If w ∉ L, then M accepts w and M will halt by reaching at final state
iii ➥ If w ∉ L, then M halts without reaching to acceptable state
iv ➥ If w ε L, then M halts without reaching to an acceptable state

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q49➡ | NET June 2019
Match List-I with List-II:
Where L1 : Regular language
L2 : Context-free language
L3 : Recursive language
L4 : Recursively enumerable language
Match List-I with List-II: Where L1 : Regular language L2 : Context-free language L3 : Recursive language L4 : Recursively enumerable language List-I                                              List-2 (a) L'3 U L4                                 (i) Context-free language (b) L'2 U L3                                 (ii) Recursively enumerable language (c) L1* ∩ L2                            (iii) Recursive language Choose the correct from those given below: A)	(a)-(ii); (b)-(i); (c)-(iii) B)	(a)-(ii); (b)-(iii); (c)-(i) C)	(a)-(iii); (b)-(i); (c)-(ii) D)	(a)-(i); (b)-(ii); (c)-(iii)
Choose the correct from those given below:
i ➥ (a)-(ii); (b)-(i); (c)-(iii)
ii ➥ (a)-(ii); (b)-(iii); (c)-(i)
iii ➥ (a)-(iii); (b)-(i); (c)-(ii)
iv ➥ (a)-(i); (b)-(ii); (c)-(iii)

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q50➡ | NET June 2019
How can the decision algorithm be constructed for deciding whether context-free language L is finite?
(a) By constructing redundant CFG in CNF generating language L
(b) By constructing non-redundant CFG G in CNF generating language L
(c) By constructing non-redundant CFG in CNF generating language L-{∧} (∧ stands for null)
Which of the following is correct?
i ➥ (a) only
ii ➥ (b) only
iii ➥ (c) only
iv ➥ None of(a),(b) and (c)

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q51➡ | NET June 2019
How many states are there in a minimum state automata equivalent to regular expression given below?
Regular expression is a*b(a+b).
i ➥ 1
ii ➥ 2
iii ➥ 3
iv ➥ 4

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q52➡ | NET June 2019
Consider the following grammar:
S→ XY
X→ YaY | a and y → bbX
Which of the following statements is/are true about the above grammar?
(a) Strings produced by the grammar can have consecutive three a’s
(b) Every string produced by the grammar have alternate a and b
(c) Every string produced by the grammar have at least two a’s
(d) Every string produced by the grammar have b’s in multiple of 2.
i ➥ (a) only
ii ➥ (b) and (c) only
iii ➥ (d) only
iv ➥ (c) and (d) only

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q53➡ | NET December 2018
Consider the following two languages:
L 1 = {X| for some y with | Y| = 2 |X| , XY∈ L and L is regular language}
L 2 = { X | for some y such that |X| = |Y|, XY∈ L and L is regular language}
Which one of the following is correct?
i ➥ Both L 1 and L 2 are regular languages
ii ➥ Both L 1 and L 2 are not regular languages
iii ➥ Only L 1 is regular language
iv ➥ Only L 2 is regular language

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q54➡ | NET December 2018
Consider the following language:
L 1 = { an+m bn am | n, m ≥ 0 }
L 2 = { an+m bn+m an+m |n, m ≥ 0 }
Which one of the following is correct?
i ➥ Only L 1 is Context Free Language
ii ➥ Both L 1 and L 2 are not Context Free Language
iii ➥ Only L 1 is Context Free Language
iv ➥ Both L 1 and L 2 are Context Free Language

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q55➡ | NET December 2018
Consider the following problems:
(i) Whether a finite automaton halts on all inputs?
(ii) Whether a given Context Free Language is regular?
(iii) Whether a Turing Machine computes the product of two numbers?
Which one of the following is correct?
i ➥ Only (ii) and (iii) are undecidable problems
ii ➥ (i), (ii) and (iii) are undecidable problems
iii ➥ Only (i) and (ii) are undecidable problems
iv ➥ Only (i) and (iii) are undecidable problems

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q56➡ | NET December 2018
Consider the language L given by
L = { 2nk | k > 0 , and n is non−negative integer number }
The minimum number of states of finite automaton which accept the language L is
i ➥ n
ii ➥ n+1
iii ➥ 2n
iv ➥ n (n + 1 )/2

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q57➡ | NET December 2018
Which of the following problem is decidable for recursive language (L) ?
i ➥ Is L = ф ?
ii ➥ Is w∈L, where w is a string ?
iii ➥ Is L=R, where R is given regular set ?
iv ➥ Is L = Σ* ?

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q58➡ | NET December 2018
Consider R to be any regular language and L1, L2 be any two context-free languages Which one of the following is correct ?
A. (L1 ⋃ L2 ) − R is context free
B. L’1 is context free
C. L1 − R is context free
D. L1 ⋂ L2 is context free
i ➥ A, B and D only
ii ➥ A and C only
iii ➥ B and D only
iv ➥ A only

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q59➡ | NET June 2018
Two finite state machines are said to be equivalent if they :
i ➥ Have the same number of edges
ii ➥ Have the same number of states
iii ➥ Recognize the same set of tokens
iv ➥ Have the same number of states and edges

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q60➡ | NET June 2018
The finite state machine given in figure below recognizes:
i ➥ Any string of odd number of a’s
ii ➥ Any string of odd number of b’s
iii ➥ Any string of even number of a’s and odd number of b’s
iv ➥ Any string of odd number of a’s and odd number of b’s

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q61➡ | NET June 2018
A pushdown automata behaves like a Turing machine when the number of auxiliary memory is:
i ➥ 0
ii ➥ 1
iii ➥ 1 or more
iv ➥ 1 or more

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q62➡ | NET June 2018
Pushdown automata can recognize language generated by :
i ➥ Only context free grammar
ii ➥ Only regular grammar
iii ➥ Context free grammar or regular grammar
iv ➥ Only context sensitive grammar

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q63 | NET June 2018
To obtain a string of n Terminals from a given Chomsky normal form grammar, the number of productions to be used is:
i ➥ 2n−1
ii ➥ 2n
iii ➥ n+1
iv ➥ n2

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q64➡ | NET June 2018
Context sensitive language can be recognized by a:
i ➥ Finite state machine
ii ➥ Deterministic finite automata
iii ➥ Non-deterministic finite automata
iv ➥ Linear bounded automata

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q65➡ | NET June 2018
The set A={ 0n 1n 2n | n=1, 2, 3, ……… } is an example of a grammar that is :
i ➥ Context sensitive
ii ➥ Context free
iii ➥ Regular
iv ➥ None of the above

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q66➡ | NET November 2017 Paper III
The logic of pumping lemma is an example of______________.
i ➥ Iteration
ii ➥ Recursion
iii ➥ The divide and conquer principle
iv ➥ The pigeonhole principle

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q67➡ | NET November 2017 Paper III
Pumping lemma for regular language is generally used for proving:
i ➥ Whether two given regular expressions are equivalent
ii ➥ A given grammar is ambiguous
iii ➥ A given grammar is regular
iv ➥ A given grammar is not regular

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q68➡ | NET November 2017 Paper III
Which of the following problems is undecidable?
i ➥ To determine if two finite automata are equivalent
ii ➥ Membership problem for context free grammar
iii ➥ Finiteness problem for finite automata
iv ➥ Ambiguity problem for context free grammar

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q69➡ | NET November 2017 Paper III
Finite state machine can recognize language generated by__________.
i ➥ Only context free grammar
ii ➥ Only context sensitive grammar
iii ➥ Only regular grammar
iv ➥ any unambiguous grammar

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q70➡ | NET November 2017 Paper III
The language L = {ai b ci │ i >= 0} over the alphabet {a, b, c} is:
i ➥ A regular language.
ii ➥ Not a deterministic context free language but a context free language.
iii ➥ Recursive and is a deterministic context free language.
iv ➥ Not recursive.

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q71➡ | NET November 2017 Paper III
Which of the following statements is not correct?
i ➥ Every recursive language is recursively enumerable.
ii ➥ L = {0n1n 0n │n=1, 2 , 3, ….} is recursively enumerable.
iii ➥ Recursive languages are closed under intersection.
iv ➥ Recursive languages are not closed under intersection.

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q72➡ | NET November 2017 Paper III
Context free grammar is not closed under:
i ➥ Concatenation
ii ➥ Complementation
iii ➥ Kleene Star
iv ➥ Union

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q73➡ | NET November 2017 Paper III
Consider the following languages:
L1 = {am bn │ m ≠ n}
L2 = {am bn │ m = 2n+1}
L3 = {am bn │ m ≠ 2n}
Which one of the following statement is correct ?
i ➥ Only L1 and L2 are context free languages
ii ➥ Only L1 and L3 are context free languages
iii ➥ Only L2 and L3 are context free languages
iv ➥ L1, L2 and L3 are context free languages

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q74➡ | NET January 2017 Paper II
Which of the following strings would match the regular expression : p+ [3 – 5]∗ [xyz]?
I. p443y
II. p6y
III. 3xyz
IV. p35z
V. p353535x
VI. ppp5
i ➥ I, III and VI only
ii ➥ IV, V and VI only
iii ➥ II, IV and V only
iv ➥ I, IV and V only

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q75➡ | NET January 2017 Paper III
Which of the following are not regular?
(A) Strings of even number of a’s.
(B) Strings of a’s, whose length is a prime number.
(C) Set of all palindromes made up of a’s and b’s.
(D) Strings of a’s whose length is a perfect square.
i ➥ (A) and (B) only
ii ➥ (A), (B) and (C) only
iii ➥ (B), (C) and (D) only
iv ➥ (B) and (D) only

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q76➡ | NET January 2017 Paper III
Consider the languages L1 = φ and L2 = {1}. Which one of the following represents L1* ∪ L1L2 ?
i ➥ {∈}
ii ➥ {∈, 1}
iii ➥ Φ
iv ➥ 1*

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q77➡ | NET January 2017 Paper III
Given the following statements :
(A) A class of languages that is closed under union and complementation has to be closed under intersection.
(B) A class of languages that is closed under union and intersection has to be closed under complementation.
Which of the following options is correct?
i ➥ Both (A) and (B) are false.
ii ➥ Both (A) and (B) are true.
iii ➥ (A) is true, (B) is false.
iv ➥ (A) is false, (B) is true.

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q78➡ | NET January 2017 Paper III
Let G = (V, T, S, P) be a context-free grammar such that every one of its productions is of the form A → v, with |v| = K > 1. The derivation tree for any W ∈ L(G) has a height h such that
i ➥ logK|W| ≤ h ≤ logK((|W|-1) / k-1)
ii ➥ logK|W| ≤ h ≤ logK(K|W|)
iii ➥ logK|W| ≤ h ≤ K logK|W|
iv ➥ logK|W| ≤ h ≤ ((|W|-1) / k-1)

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q79➡ | NET January 2017 Paper III
Given the following two languages: L1= {an bn | n ≥ 0, n ≠ 100} L2 = {w ∈ {a, b, c}*| na(w) = nb(w) = nc(w)} Which of the following options is correct ?
i ➥ Both L1 and L2 are not context free language
ii ➥ Both L1 and L2 are context free language.
iii ➥ L1 is context free language, L2 is not context free language.
iv ➥ L1 is not context free language, L2 is context free language.

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q80➡ | NET January 2017 Paper III
Given the following two statements :
A. L = {w|na(w) = nb(w)} is deterministic context free language, but not linear.
B. L = {an bn} ∪ {an b2n} is linear, but not deterministic context free language.
Which of the following options is correct ?
i ➥ Both (A) and (B) are false.
ii ➥ Both (A) and (B) are true.
iii ➥ (A) is true, (B) is false.
iv ➥ (A) is false, (B) is true.

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q81➡ | NET January 2017 Paper III
Which of the following pairs have different expressive power?
i ➥ Single-tape-turing machine and multi-dimensional turing machine.
ii ➥ Multi-tape turing machine and multi-dimensional turing machine.
iii ➥ Deterministic pushdown automata and non-deterministic pushdown automata.
iv ➥ Deterministic finite automata and Non-deterministic finite automata

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q82➡ | NTA UGC NET January 2017 Paper III
Which of the following statements is false?
i ➥ Every context-sensitive language is recursive.
ii ➥ Multi-tape turing machine and multi-dimensional turing machine.
iii ➥ The family of recursively enumerable languages is closed under union.
iv ➥ The families of recursively enumerable and recursive languages are closed under reversal.

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q83➡ | NET June 2016 Paper II
The number of strings of length 4 that are generated by the regular expression (0|∈)1+ 2* (3|∈), where | is an alternation character, {+, *} are quantification characters, and ∈ is the null string, is :
i ➥ 08
ii ➥ 10
iii ➥ 11
iv ➥ 12

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q84➡ | NET June 2016 Paper III
Let Σ = {a, b} and language L = {aa, bb}. Then, the complement of L is
i ➥ {λ, a, b, ab, ba} ∪ {w∈{a, b}* | |w| > 3}
ii ➥ {a, b, ab, ba} ∪ {w∈{a, b}* | |w| > 3}
iii ➥ {w ∈ { a, b}* | |w| > 3} ∪ {a, b, ab, ba}
iv ➥ {λ, a, b, ab, ba} ∪ {w ∈ {a, b}* | |w| ≥ 3}

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q85➡ | NET June 2016 Paper III
Consider the following identities for regular expressions:
(a) (r + s)* = (s + r)*
(b) (r*)* = r*
(c) (r* s*)* = (r + s)*
Which of the above identities are true?
i ➥ (a) and (b) only
ii ➥ (b) and (c) only
iii ➥ (c) and (a) only
iv ➥ (a), (b) and (c)

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q86➡ | NET June 2016 Paper III
Given the following two languages :
L1 = {uwwRν | u, v, w ∈ {a, b}+}
L2 = {uwwRν | u, ν, w ∈ {a, b}+, |u| > |ν|}
Which of the following is correct ?
i ➥ L1 is regular language and L2 is not regular language.
ii ➥ L1 is not regular language and L2 is regular language.
iii ➥ Both L1 and L2 are regular languages.
iv ➥ Both L1 and L2 are not regular languages

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q87➡ | NET June 2016 Paper III
Given a Turing Machine M = ({q0 , q1 }, {0, 1}, {0, 1, B}, δ, B, {q1 }) Where δ is a transition function defined as
δ(q0 , 0) = (q0 , 0, R)
δ(q0 , B) = (q1 , B, R)
The language L(M) accepted by Turing machine is given as :
i ➥ 0* 1*
ii ➥ 00*
iii ➥ 10*
iv ➥ 1*0*

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q88➡ | NET June 2016 Paper III
Let G = (V, T, S, P) be a context-free grammar such that every one of its productions is of the form A → ν, with |ν| = k > 1. The derivation tree for any string W ∈ L (G) has a height such that
i ➥ h<((|W| – 1)/k-1)
ii ➥ logk|W| < h
iii ➥ logk|W| < h < ((|W| – 1)/k-1)
iv ➥ logk|W| <= h <= ((|W| – 1)/k-1)

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q89➡ | NET August 2016 Paper II
Which of the following is FALSE?
i ➥ The grammar S→aS|aSbS|∈, where S is the only non-terminal symbol, and ∈ is the null string, is ambiguous.
ii ➥ An unambiguous grammar has same leftmost and rightmost derivation.
iii ➥ An ambiguous grammar can never be LR(k) for any k.
iv ➥ Recursive descent parser is a top-down parser

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q90➡ | NET August 2016 Paper III
The regular expression for the complement of the language L = {anbm|n ≥ 4, m ≤ 3} is:
i ➥ (λ + a + aa + aaa) b* + a* bbbb* + (a + b)* ba(a + b)*
ii ➥ (λ + a + aa + aaa) b* + a* bbbbb* + (a + b)* ab(a + b)*
iii ➥ (λ + a + aa + aaa) + a* bbbbb* + (a + b)* ab(a + b)*
iv ➥ (λ + a + aa + aaa)b* + a* bbbbb* + (a + b)* ba(a + b)*

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q91➡ | NET August 2016 Paper III
Consider the following two languages : L1 = {0i1j| gcd (i, j) = 1} L2 is any subset of 0*.
Which of the following is correct ?
i ➥ L1 is regular and L2* is not regular
ii ➥ L1 is not regular and L2* is regular
iii ➥ Both L1 and L2* are regular languages
iv ➥ Both L1 and L2* are not regular languages

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q92➡ | NET August 2016 Paper III
Let L be the language generated by regular expression 0*10* and accepted by the deterministic finite automata M. Consider the relation RM defined by M. As all states are reachable from the start state, RM has____equivalence classes.
i ➥ 2
ii ➥ 4
iii ➥ 5
iv ➥ 6

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q93➡ | NET August 2016 Paper III
Let L = {0n1n|n ≥ 0} be a context free language. Which of the following is correct ?
i ➥ L’ is context free and Lk is not context free for any k ≥ 1
ii ➥ L’ is not context free and Lk is not context free for any k ≥ 1
iii ➥ Both L’ and Lk is for any k ≥ 1 are context free
iv ➥ Both L’ and Lk is for any k ≥ 1 are not context free

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q94➡ | NET August 2016 Paper III
Given a Turing Machine M = ({q0, q1, q2, q3}, {a, b}, {a, b, B}, δ, B, {q3}) Where δ is a transition function defined as
δ( q0 , a) = ( q1 , a, R)
δ( q1 , b) = ( q2 , b, R)
δ( q2 , a) = ( q2 , a, R)
δ( q3 , b) = ( q3, b, R)
The language L(M) accepted by the Turing Machine is given as:
i ➥ aa*b
ii ➥ Abab
iii ➥ aba*b
iv ➥ aba*

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q95➡ | NET December 2015 Paper III
The family of context sensitive languages is___________under union and______under reversal.
i ➥ closed, not closed
ii ➥ not closed, not closed
iii ➥ closed, closed
iv ➥ not closed, closed

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q96➡ | NET December 2015 Paper III

Match the following:
Net december 2015 toc questionMatch the following: A (a)-(i), (b)-(ii), (c)-(iii), (d)-(iv) B (a)-(i), (b)-(ii), (c)-(iv), (d)-(iii) C (a)-(iv), (b)-(iii), (c)-(ii), (d)-(i) D (a)-(iv), (b)-(iii), (c)-(i), (d)-(ii)
i ➥ (a)-(i), (b)-(ii), (c)-(iii), (d)-(iv)
ii ➥ (a)-(i), (b)-(ii), (c)-(iv), (d)-(iii)
iii ➥ (a)-(iv), (b)-(iii), (c)-(ii), (d)-(i)
iv ➥ (a)-(iv), (b)-(iii), (c)-(i), (d)-(ii)

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q97➡ | NET December 2015 Paper III
The language of all non-null strings of a’s can be defined by a context free grammar as follows: S → aS|Sa|a The word a3 can be generated by _________different trees.
i ➥ Two
ii ➥ Three
iii ➥ Four
iv ➥ Five

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q98➡ | NET December 2015 Paper III
The context free grammar given by
S → XYX
X → aX|bX|λ
Y → bbb
generates the language which is defined by regular expression:
i ➥ (a + b)*bbb
ii ➥ abbb(a + b)*
iii ➥ (a + b)*(bbb)(a + b)*
iv ➥ (a + b)(bbb)(a + b)*

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q99➡ | NET December 2015 Paper III
There are exactly __ different finite automata with three states x, y and z over the alphabet {a, b} where x is always the start state.
i ➥ 64
ii ➥ 56
iii ➥ 1024
iv ➥ 5832

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q100➡ | NET December 2015 Paper III
Given the following two languages: L1 = {an b an |n > 0} L2 = {an b an bn + 1|n > 0} Which of the following is correct ?
i ➥ L1 is context free language and L2 is not context free language
ii ➥ L1 is not context free language and L2 is context free language
iii ➥ Both L1 and L2 are context free languages
iv ➥ Both L1 and L2 are not context free languages

Show Answer With Best Explanation

Answer: I
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q101➡ | NET December 2015 Paper III
Consider a language A defined over the alphabet Σ={0, 1} as A={0⌊n/2⌋1n :n>=0}. The expression ⌊n/2⌋ means the floor of n/2, or what you get by rounding n/2 down to the nearest integer.
Which of the following is not an example of a string in A?
i ➥ 011
ii ➥ 0111
iii ➥ 0011
iv ➥ 001111

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q102➡ | NET JUNE 2015 Paper III
Minimal deterministic finite automaton for the language L = {0n | n ≥ 0, n ≠ 4} will have:
i ➥ 1 final state among 5 states
ii ➥ 4 final states among 5 states
iii ➥ 1 final state among 6 states
iv ➥ 5 final states among 6 states

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q103➡ | NET JUNE 2015 Paper III
The regular expression corresponding to the language L where L = { x ε {0, 1}*|x ends with 1 and does not contain substring 00 } is:
i ➥ (1 + 01) * (10 + 01)
ii ➥ (1 + 01) * 01
iii ➥ (1 + 01) * (1 + 01)
iv ➥ (10 + 01) * 01

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q104➡ | NET JUNE 2015 Paper III
i ➥ q0 and q0 respectively
ii ➥ q0 and q1 respectively
iii ➥ q0 and q2 respectively
iv ➥ q0 and q3 respectively

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q105➡ | NET JUNE 2015 Paper III
A context free grammar for L = { w | n0 ( w ) > n 1 ( w ) } is given by:
i ➥ S → 0 | 0 S | 1 S S
ii ➥ S → 0 S | 1 S | 0 S S | 1 S S | 0 | 1
iii ➥ S → 0 | 0 S | 1 S S | S 1 S | S S 1
iv ➥ S → 0 S |1 S | 0 | 1

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q106➡ | NET JUNE 2015 Paper III
Given the following two statements:
S1 : If L1 and L2 are recursively enumerable languages over ∑ , then L1 ∪ L2 and L2 ∩ L2 are also recursively enumerable.
S2 : The set of recursively enumerable languages is countable. Which of the following is correct ?
i ➥ S1 is correct and S2 is not correct
ii ➥ S1 is not correct and S2 is correct
iii ➥ Both S1 and S2 are not correct.
iv ➥ Both S1 and S2 are not correct.

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q107➡ | NET JUNE 2015 Paper III
Given the following grammars:
G1 : S → AB|aaB
A → aA | ∈
B → bB | ∈
G2: S → A|B
A → aAb | ab
B → abB | ∈
Which of the following is correct?
i ➥ G1 is ambiguous and G2 is unambiguous grammars
ii ➥ G1 is unambiguous and G2 is ambiguous grammars
iii ➥ both G1 and G2 are ambiguous grammars
iv ➥ both G1 and G2 are unambiguous grammars

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q108➡ | NET Dec 2014 Paper III
Given two languages :
L1 = {(ab)n ak | n > k, k ≥ 0}
L2 = {an bm | n ≠ m}
Using pumping lemma for regular language, it can be shown that
i ➥ L1 is regular and L2 is not regular
ii ➥ L1 is not regular and L2 is regular
iii ➥ L1 is regular and L2 is regular
iv ➥ L1 is not regular and L2 is not regular

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q109➡ | NET Dec 2014 Paper III
Regular expression for the complement of language L = {an bm | n ≥ 4, m ≤ 3} is
i ➥ (a + b)* ba(a + b)*
ii ➥ a* bbbbb*
iii ➥ (λ+a+aa+aaa)b∗+(a+b)∗ba(a+b)∗
iv ➥ None of the above

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q110➡ | NET Dec 2014 Paper III
Given the recursively enumerable language (LRE), the context sensitive language (LCS), the recursive language (LREC), the context free language (LCF) and deterministic context free language (LDCF). The relationship between these families is given by
i ➥ LCF ⊆ LDCF ⊆ LCS ⊆ LRE ⊆ LREC
ii ➥ LCF ⊆ LDCF ⊆ LCS ⊆ LREC ⊆ LRE
iii ➥ LDCF ⊆ LCF ⊆ LCS ⊆ LRE ⊆ LREC
iv ➥ LDCF ⊆ LCF ⊆ LCS ⊆ LREC ⊆ LRE

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q111➡ | NET Dec 2014 Paper III

i ➥ a-ii, b-iv, c-iii, d-i
ii ➥ a-ii, b-iv, c-i, d-iii
iii ➥ a-iv, b-i, c-ii, d-iii
iv ➥ a-i, b-iv, c-iii, d-ii

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q112➡ | NET Dec 2014 Paper III
According to pumping lemma for context free languages :
Let L be an infinite context free language, then there exists some positive integer m such that any w ∈ L with | w | ≥ m can be decomposed as w = u v x y z
i ➥ with | vxy | ≤ m such that uvi xyi z ∈ L for all i = 0, 1, 2
ii ➥ with | vxy | ≤ m, and | vy | ≥ 1, such that uvi xyi z ∈ L for all i = 0, 1, 2, …….
iii ➥ with | vxy | ≥ m, and | vy | ≤ 1, such that uvi xyi z ∈ L for all i = 0, 1, 2, …….
iv ➥ with | vxy | ≥ m, and | vy | ≥ 1, such that uvi xyi z ∈ L for all i = 0, 1, 2, …….

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q113➡ | NET JUNE 2014 Paper II
The context free grammar for the language L = {anbmck | k = |n – m|, n ≥ 0, m ≥ 0, k ≥ 0} is
i ➥ S → S1S3, S1 → aS1c | S2| λ, S2 → aS2b|λ, S3 → aS3b| S4 | λ, S4 → bS4c|λ
ii ➥ S → S1S3, S1→ aS1S2c | λ, S2 → aS2b|λ, S3 → aS3b| S4 |λ, S4 → bS4c|λ
iii ➥ S → S1|S2, S1→ aS1S2c | λ, S2 → aS2b | λ, S3 → aS3b | S4 |λ, S4 → bS4c|λ
iv ➥ S → S1 | S3, S1→ aS1c|S2 | λ, S2 → aS2b | λ, S3 → a S3b| S4 | λ, S4 → bS4c | λ

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q114➡ | NET JUNE 2014 Paper II
The regular grammar for the language
L = {w|na(w) and nb(w) are both even,
w ∈ {a, b}*} is given by :
(Assume, p, q, r and s are states)
i ➥ p → aq | br | λ, q → bs | ap
r → as | bp, s → ar | bq, p and s are initial and final states.
ii ➥ p → aq | br, q → bs | ap
r → as | bp, s → ar | bq, p and s are initial and final states.
iii ➥ p → aq | br | λ, q → bs | ap
r → as | bp, s → ar | bq p is both initial and final states.
iv ➥ p → aq | br, q → bs | ap
r → as | bp, s → ar | bq p is both initial and final states

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q115➡ | NET JUNE 2014 Paper III
Let L be any language. Define even (W) as the strings obtained by extracting from W the letters in the even-numbered positions and even(L) = {even (W) | W ∈ L}. We define another language Chop (L) by removing the two leftmost symbols of every string in L given by Chop(L) = {W | ν W ∈ L, with | ν | = 2}. If L is regular language then
i ➥ even(L) is regular and Chop(L) is not regular
ii ➥ Both even(L) and Chop(L) are regular
iii ➥ even(L) is not regular and Chop(L) is regular
iv ➥ Both even(L) and Chop(L) are not regular

Show Answer With Best Explanation

Answer: II
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q116➡ | NET JUNE 2014 Paper III

Code:
i ➥ a-iv, b-iii, c-i, d-ii
ii ➥ a-iv, b-iii, c-ii, d-i
iii ➥ a-iii, b-iv, c-i, d-ii
iv ➥ a-iii, b-iv, c-ii, d-i

Show Answer With Best Explanation

Answer: III
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

Q117➡ | NET JUNE 2014 Paper III
Given the following two languages :
L1 = {anbn | n > 1} ∪ {a}
L2 = {w C wR | w ∈ {a, b}*}
Which statement is correct ?
i ➥ Both L1 and L2 are not deterministic.
ii ➥ L1 is not deterministic and L2 is deterministic
iii ➥ L1 is deterministic and L2 is not deterministic
iv ➥ Both L1 and L2 are deterministic

Show Answer With Best Explanation

Answer: IV
Explanation: Upload Soon

More DiscussionExplanation On YouTubeLearn Topic WiseHelp-Line

error: Content is protected !!
Open chat
1
Hi,how Can We Help You ?