
Learn core concepts, essential formulas, and attempt practice questions designed on the latest TCS NQT testing patterns.
Which data structure is used to evaluate postfix expressions?
Correct Answer: A) Stack
Step-by-step Solution: Stacks are used in postfix evaluation to store operands until operators are encountered.
If elements are inserted in order A, B, C into a Queue, what is order of removal?
Correct Answer: A) A, B, C
Step-by-step Solution: Queues are First In First Out. The first element inserted (A) is the first removed.
Practice array-based implementations of circular queues to clear stack/queue basics.