Podcast
Questions and Answers
What is a set in programming?
What is a set in programming?
- A collection of duplicate elements
- A collection of random elements
- A collection of unique elements (correct)
- A collection of ordered elements
What is the purpose of using sets in programming?
What is the purpose of using sets in programming?
- To store data in a specific order
- To perform mathematical operations on elements (correct)
- To retrieve elements randomly
- To allow duplicate elements
Which statement about sets in programming is true?
Which statement about sets in programming is true?
- Elements in a set are always ordered
- Elements in a set can be modified
- Elements in a set are unique (correct)
- Elements in a set can be accessed by index