Name three applications of a stack.
Stacks
Original Khojo Papers practice question — not from a past board paper.
If top equals n − 1 report overflow; otherwise increment top by one and store the new element at a[top].
No citable source has been recorded for this record. Treat it as practice material, not as fact.
top is initialised to −1 for an empty stack.
From the same topic and chapter, at a similar level.
Name three applications of a stack.
Stacks
A stack of capacity 5 is empty. After push(1), push(2), push(3), pop(), push(4), pop(), pop(), what is left on the stack?
Stacks
What is a stack? Name the two operations on it and state what overflow and underflow mean.
Stacks
Write a recursive Java method to compute the factorial of a non-negative integer n.
Recursion
State and verify the absorption law X + X·Y = X using a truth table.
Boolean Algebra
Convert the Boolean expression F(A, B, C) = Σ(1, 3, 5) into its canonical sum of products form.
Boolean Algebra