โ† Oracle questions
Reported in a candidate post, Jul 2025

Real-life uses of stack, queue, heap, graph, array and tree

Filed under Oracle

Free read 1 of 3

Stack (LIFO): undo/redo, browser back button, call stack and recursion, bracket matching and expression evaluation. Queue (FIFO): print spooler, task and message queues, CPU scheduling, BFS traversal.

The question

Give real-world applications of common data structures: stack, queue, heap, graph, array and tree.

Approach

  1. Stack (LIFO): undo/redo, browser back button, call stack and recursion, bracket matching and expression evaluation. Queue (FIFO): print spooler, task and message queues, CPU scheduling, BFS traversal.

Tips

  • What they are testing: Linking each data structure to the access pattern it optimises rather than listing generic examples.
  • Common mistake: Giving one-word answers with no reason, or mixing up stack and queue use cases.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.