LearnFrenzy
Sign in Take a free test

Data Structures in Java · Data Structures in Java MCQ · Question 3

Which structure is last-in, first-out Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 3 Back to Exercise

Which data structure removes the most recently added element first?

  • A Queue
  • B Stack Correct
  • C Priority queue
  • D Circular queue
Correct Answer: Option B

A stack is LIFO; a queue is FIFO; a priority queue removes by priority.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links