Name three applications of a stack.
Stacks
Original Khojo Papers practice question — not from a past board paper.
Only the element 1, with top pointing at it.
No citable source has been recorded for this record. Treat it as practice material, not as fact.
The pushes and pops leave 1 at the bottom: 3 and 4 are pushed and popped, and 2 is popped by the last operation.
From the same topic and chapter, at a similar level.
Name three applications of a stack.
Stacks
Write the algorithm for the push operation on a stack implemented in an array of capacity n.
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