UGC NET Paper 2 (Computer Science)Hard
Assertion (A): Whether a given Turing machine accepts at least one string is undecidable. Reason (R): By Rice's theorem every non-trivial semantic property of the languages recognised by Turing machines is undecidable.
- A. Both A and R are true and R is the correct explanation of A
- B. Both A and R are true but R is not the correct explanation of A
- C. A is true but R is false
- D. A is false but R is true
Correct answer: A. Both A and R are true and R is the correct explanation of A
Non-emptiness is a non-trivial property of L(M), so Rice applies directly.
Practise more UGC NET Computer Science and Applications questionsUGC NET Computer Science and Applications: notes and key points
More UGC NET Computer Science and Applications questions
- For the same grammar, an LALR(1) parser has the same number of states as:
- For the grammar E -> TE', E' -> +TE' | e, T -> FT', T' -> FT' | e, F -> (E) | id, FOLLOW(T) is:
- For the statement x = (a + b) (a + b) + c, the number of three-address instructions after common sub-expression elimination (via DAG) is:
- The value of the postfix expression 8 2 3 ^ / 2 3 + 5 1 - is:
- Keys 30, 10, 20 are inserted in this order into an empty AVL tree. The rebalancing needed and the resulting root are:
- The number of distinct binary search trees on keys 1 to 4 is: