GATE 2016 (Session 2) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2016 (Session 2)

65 questions

MCQ 38 · NAT 271-mark 30 · 2-mark 35

Questions 26–30 of 65

Q26Finite Automata1 markNAT
The number of states in the minimum sized DFA that accepts the language defined by the regular expression
(0+1)* (0+1)(0+1)*
is _______.

Q27Regular Language1 markMCQ−0.33 if wrong
Language L1 is defined by the grammar: S1→aS1b∣εS_{1}\rightarrow aS_{1}b|\varepsilon
Language L2 is defined by the grammar: S2→abS2∣εS_{2}\rightarrow abS_{2}|\varepsilon
Consider the following statements:
P: L1 is regular
Q: L2 is regular
Which one of the following is TRUE?

Q28Context Free Language1 markMCQ−0.33 if wrong
Consider the following types of languages: L1L_{1}:Regular, L2L_{2}:Context-free, L3L_{3}:Recursive, L4L_{4}:Recursively enumerable.
Which of the following is/are TRUE?
I. Lˉ3∪L4\bar{L}_{3}\cup L_{4} is recursivelyenumerable
II. Lˉ2∪L3\bar{L}_{2}\cup L_{3} is recursive
III. L1∗∪L2L_{1}^{*}\cup L_{2} is context-free
IV. L1∪Lˉ2L_{1}\cup \bar{L}_{2} is context-free

Q29Runtime Environment1 markMCQ−0.33 if wrong
Match thefollowing:
(P) Lexical analysis(i) Leftmost derivation (Q) Top down parsing(ii) Type checking (R) Semantic analysis(iii) Regular expressions (S) Runtime environments(iv) Activation records

Q30Memory Management1 markMCQ−0.33 if wrong
In which one of the following page replacement algorithms it is possible for the page fault rate to increase even when the number of allocated frames increases?