adplus-dvertising

Welcome to the Theory of Computation(TOC) MCQs Page

Dive deep into the fascinating world of Theory of Computation(TOC) with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Theory of Computation(TOC), a crucial aspect of UGC CBSE NET Exam. In this section, you will encounter a diverse range of MCQs that cover various aspects of Theory of Computation(TOC), from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within UGC CBSE NET Exam.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Theory of Computation(TOC). Test your knowledge, expand your horizons, and solidify your grasp on this vital area of UGC CBSE NET Exam.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Theory of Computation(TOC). You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Theory of Computation(TOC) MCQs | Page 1 of 16

Q1.
Given the following expressions of a grammar

E --> E * F / F + E / F
F --> F - F / id

Which of the following is true ?
Discuss
Answer: (b).- has higher precedence than *
Q2.
Which of the following is true while converting CFG to LL(1) grammar ?
Discuss
Answer: (c).Both of the above
Q3.
Let L be a set accepted by a non deterministic finite automaton. The number of states in non-deterministic finite automaton is |Q|. The maximum number of states in equivalent finite automaton that accepts L is
Discuss
Answer: (d).2^|Q|
Q4.
The grammar ‘G1’

S ---> OSO| ISI | 0|1|∈

and the grammar  ‘G2’ is
S ---> as |asb| X,
X -----> Xa | a.

Which is the correct statement ?
Discuss
Answer: (b).G1 is unambiguous, G2 is ambiguous
Q5.
Which of the following regular expression identities are true ?
Discuss
Answer: (c).(r + s)* = (r*s*)*
Q6.
The minimum number of states of the non-deterministic finite automation which accepts the language
{a b a bn| n  ≥  0} ∪ {a b an|n  ≥ 0} is 

a.

3

b.

4

c.

5

d.

6

Discuss
Answer: (c).5
Q7.
Which of the following definitions generates the same Language as L, where
L = {WWR | W ∈ {a, b}*} 
Discuss
Answer: (b).S ∈ asa|bsb|∈
Q8.
If the parse tree of a word w generated by a Chomsky normal form grammar has no path of length greater than i, then the word w is of length 
Discuss
Answer: (c).no greater than 2^(i–1)
Q9.
Given the following statements :

S1: SLR uses follow information to guide reductions.In case of LR and LALR parsers, the look-aheads are associated with the  Items and they make use of the left context available to the parser.
S2: LR grammar is a larger sub-class of context free grammar as compared to that SLR and LALR grammars. 

Which of the following is true ? 
Discuss
Answer: (c).S1 is correct and S2 is not correct
Discuss
Answer: (c).S → aaaA | aaA | λ ; A → aAb | B; ​B →  Bb |  λ ;
Page 1 of 16

Suggested Topics

Are you eager to expand your knowledge beyond Theory of Computation(TOC)? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!