Intel Corporation Interview Question

Can you explain the difference between a stack and a queue, and give an example of when you might use each data structure in your code?