Quiz: Collection Comparisons Questions

Browse questions from Quiz: Collection Comparisons. Each question has options and an explanation.

Questions — Page 1 of 2

  1. Which list is usually better for fast random access by index?
  2. ArrayList internally uses a resizable array.
  3. Which map is legacy synchronized and does not allow null keys or null values?
  4. HashMap allows one null key.
  5. Which principle describes a Stack?
  6. A Queue is usually FIFO.
  7. Which modern Java class is commonly preferred over legacy Stack for stack operations?
  8. java.util.Stack is the modern preferred stack implementation for most new Java code.
  9. You are solving BFS on a graph. Which collection should you usually use for the frontier?
  10. You need to count votes by candidate name. Which collection pattern is most direct?

Browse questions

Next page · Quiz overview

Open on QuizMaker