PREVIOUS YEAR SOLVED PAPERS - December 2015 Paper 3

Avatto > > UGC NET COMPUTER SCIENCE > > PREVIOUS YEAR SOLVED PAPERS > > December 2015 Paper 3

21. Let n = 4 and (a1, a2, a3, a4) = (do, if, int, while).Let p(1 : 4) = (3 / 8, 3 / 8, 1 /8, 1 / 8) and Let q(1 : 4) = (2 / 8, 3 / 8, 1 / 8, 1 / 8, 1 / 8) where p(i) and q(i) denotes the probability with which we search a and the identifier x being searched satisfy ai < x < ai+1 respectively. The optimal search tree is given by

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


22. The family of context sensitive languages is __________ under union and __________ under reversal.

  • Option : B
  • Explanation : The family of context-sensitive languages is not closed under union and not closed under reversal.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


23. Match the following

List IList II
(a) {an bn | n > 0} is a deterministic context free language(i) but not recursive language
(b) The complement of {an bn an | n> 0} is a context free language(ii) but not context free language
(c) {an bn an} is  context sensitive language(iii) but can not be accepted by a deterministic push down automation
(d) L is a recursive language(iv) but not regular

Codes:

 (a)(b)(c)(d)
(1)(i)(ii)(iii)(iv)
(2)(i)(ii)(iv)(iii)
(3)(iv)(iii)(ii)(i)
(4)(iv)(iii)(i)(ii)

  • Option : D
  • Explanation :
  • {anbn | n > 0 } is a deterministic context free language but not regular language
  • The complement of {anbnan| n > 0 } is context free language but not accepted by deterministic pushdown automata
  • {anbnan} is a context sensitive language but not recursive language
  • L is a recursive language but not a context free language
  • So, option (D) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


24. The language of all non-null strings of a’s can be defined by a context free grammar as follow: S → aS|Sa|a The word a3 can be generated by __________ different trees.

  • Option : C
  • Explanation :
    The production: S → aS|Sa|a will generate

    So, option (C) is correct
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


25. Which one of the following non-functional quality attributes is not highly affected by the architecture of the software?

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


Related Quiz.
December 2015 Paper 3