Select the correct option.
L1={a^2x | x>=0}
L2={a^3y | y>=0}
Consider a language L3 such that, L3= L1.L2. The number of states in minimal DFA accepting L3 will be _________
R= a(aa)* (bb*)*b
Select the correct language generated by R from the given options:
S→ aA | bB | ϵ
A→aA | bB | ϵ
B→aA | bB
The number of states in minimal DFA which accepts L(G) _______
LA = {a^x a^y | x,y ≥ 0 & x = y}
LB = {a^x a^y | x,y ≥ 0 & x ≠ y }
Select the correct option.
S1: The equivalence of a DFA and a DPDA is decidable.
S2: The equivalence of a NFA and a DPDA is undecidable.
Select the correct option.
S → Aa
A → d | SB
B → ϵ | b
Select the correct option
S → Aa
A → d | SB
B → ϵ | b
Select the correct option / options.
int main (void)
{
int num_val=2;
num_val *=5;
printf( “\n Output %d \n”,num_val++);
return 0 ;
}
The number of tokens in following code are ____
N→L {N.c=L.c}
L→L1 B {L.c=L1.c+B.c}
L→B {X}
B→0 {Y}
B→1 {B.c=1}
Select the correct semantic action in place of X and Y.
Code A:
for(int i=0; i<=100; i++)
{
sum= x/y * i;
a[i]= b[i] + c[i];
}
Code B:
t=x/y;
for(int i=0; i<=100; i+=2)
{
sum= t * i;
a[i]= b[i] + c[i];
a[i+1]= b[i+1] + c[i+1];
}
Select the correct option / options.
Code A
for(int i=1 ; i<1000; i++)
{
x= i * 5;
}
Code B
x=0;
for(int i=1 ; i<1000; i++)
{
x= x + 5;
}
Select the correct option.
Select the correct option/ options with respect to given finite automata.
L1 ={a^i b^j c^k d^l | i=k OR j=l}
L2 ={a^i b^k c^j d^l | i=k AND j=l}
Select the correct option..
L1= {ww | w ϵ {a}* }
L2= {wXw | w ϵ {a}* & X is a symbol other than {a,b} }
Select the correct option.


P: Given a Turing machine M over the input alphabet Σ, any state q of M And a word w∈Σ*, does the computation of M on w visit the state q.
Select the correct option / options with reference to problem P.
P1: Whether a Turing machine takes 2021 steps on some input.
P2: Whether a Turing machine accepts some string of length 2021.
Select the correct option
S→(X) | (t)
X→aS | S
Select the correct option / options. [MSQ]
S→ xAw | yBw | xBe | yAe
A→z
B→z
Select the correct option / options. [MSQ]
id
|
+
|
*
|
$
| |
id
|
.>
|
.>
|
.>
| |
+
|
<.
|
.>
|
<.
|
.>
|
*
|
<.
|
.>
|
.>
|
.>
|
$
|
<.
|
<.
|
<.
|
Select the correct function table from the option.
a = b + c
c = a + d
f = a +b
d = f - b
e = c - d
a = e + b
The minimum number of nodes and edges present in the DAG representation of the above basic block respectively are
The number of nodes and edges in the control flow graph of the above three address code are _______ and _________ respectively