Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift 2.0 Enumerations and Optionals Objects and Optionals Recap: Enumerations and Optionals

Darcy Phillips
Darcy Phillips
4,087 Points

Why is this answer false?

Which of the following sets of data would not be well suited modelled as an enumeration?

A Types of ice cream flavours

B. Months of the year

C. Planets in the solar system.

D. Authentication status in an app

I picked D, thinking that "authentication status" sounded like something that would just be a boolean. However that is false. Which answer is true then?

Darcy Phillips
Darcy Phillips
4,087 Points

Ah, ok, that does make sense! thank you very much for that!

I can't see how to mark your answer as best answer. Is it because you commented as opposed to answered?

(However I did inadvertently enter my reply comment as an "answer". To make matters worse I then voted my "answer" as best answer! To make matters doubly worse, I did it twice! Oops. Was just trying to give you the vote. Sorry.)

Darcy Phillips
Darcy Phillips
4,087 Points

Hmm, on second thought, I still feel not quite sure about that. Couldn't my particular list of ice cream flavors be exhaustive?

I changed that comment to be an answer. If the answer worked for you, mark it as 'best', else let us know how you get on.

Steve.

2 Answers

Cindy Lea
PLUS
Cindy Lea
Courses Plus Student 6,497 Points

I would say A. Part of the definition of enumeration is an enumeration is a complete, ordered listing of all the items in a collection or finite set. Getting a list of ice cream flavors could go on forever & ever as people are constantly inventing new flavors. B. Months of the year is finite so thats Ok. C. Planets in the solar system is finite so thats ok. D. Authentication status in an app is finite. Either its done, working, or in an error and maybe a few other possibilities.

Cindy Lea
PLUS
Cindy Lea
Courses Plus Student 6,497 Points

If you go to the bottom of my response there should be a "comment" and "best answer" button. Click on "best answer".

Hi Cynthia,

Just to clarify; you made a comment on the initial question which is why Darcy wan't able to mark your comment as 'Best Answer'. I converted your comment to be an answer, hence how now Darcy has been able to mark your response as 'Best'.

Keep up the great work!

Steve.