UGC NET Paper 2 (Computer Science)Hard
The value of the postfix expression 8 2 3 ^ / 2 3 * + 5 1 * - is:
- A. 2
- B. 5
- C. 7
- D. 14
Correct answer: A. 2
2^3 = 8, 8/8 = 1, 2*3 = 6, 1+6 = 7, 5*1 = 5, 7-5 = 2.
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
- 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:
- Strassen's matrix multiplication has time complexity approximately:
- The language {a^n b^n | n >= 0} is:
- A graph has 13 vertices, 17 edges and is connected. Its cyclomatic number (number of independent cycles) is:
- The Floyd cycle-detection (tortoise and hare) method finds a cycle in a linked list using: