Multiple choice technology architecture

Which would be most suitable for storing data elements that must not appear in the store more than once, if searching is not a priority?

  1. Collection

  2. List

  3. Set

  4. Map

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A Set is designed to store unique elements and automatically prevents duplicates. Unlike Lists, Sets do not allow duplicate values. Maps store key-value pairs rather than single elements. When uniqueness is the requirement and lookup speed is not critical, a Set is the appropriate choice.