Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is the main advantage of using collections over arrays?
Think about dynamic size and manipulation methods.
Name one implementation of the List interface.
List implementations are often ordered.
What is a key feature of a HashMap?
Remember how keys are organized in a map.
True or False: A Set can contain duplicate elements.
Consider the definition of a set.
Create a program that keeps track of unique student IDs and their names using HashSet and HashMap. What challenges might you encounter while using each?
Think about how each data structure manages data differently.
Design a scenario for an online shopping site where you would need to store items in an ordered, unique, and key-based manner. Specify which collections you would use and why.
Consider the purpose of each action (viewing, quick access) in the design.
5 more questions in this section. Enroll free to practise them all.
Enroll free