Theory of Computation & Compilers Previous Year Questions
8 Theory of Computation & Compilers (Computer Science) questions asked in BEL PE previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.
Name the phase of compiler, which separates characters of the source language into groups that logically belong together, these groups are called tokens.
The given finite automata is equivalent to which of the following regular expression?
States: q0 (start), q1, q4, q5, q2 and qf (final). Transitions: q0 –a→ q1; q1 –b→ qf; q0 –a→ q4; q4 –a→ q2; q0 –b→ q5; q5 –b→ q2; q2 –a,b→ q2 (self loop); q2 –b→ qf.
Aab (aa + b) (a + b)* a
Bab (aa + bb) (a + b)* b
C(a + b)* (aa + bb) (a + b)*
Dab + (aa + bb) (a + b)* b
Show answerHide answer
Correct answer: (D) ab + (aa + bb) (a + b)* b
How to use these BEL PE Computer Science questions
Every question here was asked in a real BEL PE paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full BEL PE papers as timed tests to check your speed under exam conditions.