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 collection do you use to store unique items?
Think of a collection that prevents duplicates.
Which collection type is better for fast random access?
Consider collections based on arrays.
Which collection type would you use to hold a list of email addresses?
You wouldn’t want duplicate email addresses.
True or False: A HashMap can store duplicate keys.
Think about key functionalities.
Design a class that keeps track of student grades. What collections would you choose for storing student names, grades, and ensuring that no student can have the same name? Justify your choices.
Consider how you’ll want to access, store, and manage names and grades.
You are building an event system where you need to manage attendees, ensure no duplicates, and sort them by initial registration. Which collections would you use and why?
Think about order and uniqueness when selecting data structures.
6 more questions in this section. Enroll free to practise them all.
Enroll free