Knowledge Check (Recitation)
- Explain LIFO using a real-life example
- What happens during stack overflow?
- Difference between enqueue and push?
- Why is queue used in CPU scheduling?
- When would you choose stack over queue?
6. Give a real-life scenario where a queue would be unfair to use. Why?
7. In your daily work, when do you prioritize the latest task instead of the first task? What structure does this represent?
8. What problem does a circular queue solve compared to a normal queue? (Explain in simple terms)
9. Can a system use both stack and queue at the same time? Give a practical example.
10. If a system processes the most urgent tasks first, is it still a pure queue? Why or why not?