UGC NET Computer Science Compiler Design Previous Year Questions (PYQs) – Page 1 of 12

UGC NET Computer Science Compiler Design Previous Year Questions (PYQs) – Page 1 of 12

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations
Reset
Showing 112 questions
logo
🎓 UGC NET Computer Science📅 Year: 2023📚 Computer🏷 Compiler Design

Consider the following finite automata F1 that accepts a language L.


Let F2 be a finite automata which is obtained by reversal of F1. Then which of the following is correct?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2024📚 Computer🏷 Compiler Design

The number of tokens in the following line:

for i in range(begin : end : step) :


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2023📚 Computer🏷 Compiler Design

The compiler for high level language that runs on one machine and produces code for other machine is called-

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2023📚 Computer🏷 Compiler Design

The maximum yield length of the following CNF CFG is

S → AB

A → CD

B → e

C → a

D → b

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Compiler Design

What is the safest order while simplifying Context Free Grammar?


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2020📚 Computer🏷 Compiler Design

Simplified expression/s for following Boolean function

$F(A,B,C,D)=\sum(0,1,2,3,6,12,13,14,15)$

is/are

(A) $A'B' + AB + A'C'D'$

(B) $A'B' + AB + A'CD'$

(C) $A'B' + AB + BC'D'$

(D) $A'B' + AB + BCD'$

Choose the correct answer from the options given below:

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2024📚 Computer🏷 Compiler Design

An ambiguous grammar is one which has:

A. More than one derivations
B. More than one left most derivations
C. More than one right most derivations
D. More than one Parse tree
E. More than one syntax tree

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Compiler Design

A Turing Machine for the language
$L=a^n b^m c^n d^m \mid n \ge 1,\ m \ge 1$ is designed.

The resultant model is

$M=({q_0,q_1,q_2,q_3,q_4,q_5,q_6,q_7,q_f},{a,b,c,d},{a,b,c,d,X_1,X_2,Y_1,Y_2},\delta,q_0,B,{q_f})$

and part of $\delta$ is given in the transition table.

You need to write the following questions based on design of Turing Machine for the given language.

Note that, while designing the Turing Machine $X_1$ and $X_2$ are used to work with $a$'s and $c$'s and $Y_1$ and $Y_2$ are used to handle $b$'s and $d$'s of the given string.


What is the Move in the cell with number 'M1' of the resultant Table ?


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Compiler Design

A Turing Machine for the language
$L=a^n b^m c^n d^m \mid n \ge 1,\ m \ge 1$ is designed.

The resultant model is

$M=({q_0,q_1,q_2,q_3,q_4,q_5,q_6,q_7,q_f},{a,b,c,d},{a,b,c,d,X_1,X_2,Y_1,Y_2},\delta,q_0,B,{q_f})$

and part of $\delta$ is given in the transition table.

You need to write the following questions based on design of Turing Machine for the given language.

Note that, while designing the Turing Machine $X_1$ and $X_2$ are used to work with $a$'s and $c$'s and $Y_1$ and $Y_2$ are used to handle $b$'s and $d$'s of the given string.


What is the Move in the cell with the number $M2$ of the resultant Table?


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Compiler Design

A Turing Machine for the language
$L=a^n b^m c^n d^m \mid n \ge 1,\ m \ge 1$ is designed.

The resultant model is

$M=({q_0,q_1,q_2,q_3,q_4,q_5,q_6,q_7,q_f},{a,b,c,d},{a,b,c,d,X_1,X_2,Y_1,Y_2},\delta,q_0,B,{q_f})$

and part of $\delta$ is given in the transition table.

You need to write the following questions based on design of Turing Machine for the given language.

Note that, while designing the Turing Machine $X_1$ and $X_2$ are used to work with $a$'s and $c$'s and $Y_1$ and $Y_2$ are used to handle $b$'s and $d$'s of the given string.


What is the Move in the cell with number $M3$ of the resultant Table?


1
2
3
4

UGC NET Computer Science


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

UGC NET Computer Science


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...