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!

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 Objective-C Basics Getting Oriented - Xcode and Learning to Code Review Landscape and Tools

Timothy Wattimena
Timothy Wattimena
4,896 Points

Always getting last question wrong on Landscape & Tools quiz for new Objective-C Basics course.

Hi. I'm always getting the last question wrong on the Landscape & Tools quiz on the new Objective-C course, and I don't know why.

This is the question:

Gabe’s favorite food is cheese, as shown in this code:

NSString *favoriteFood = @”cheese”;

Re-type that code below, so his favorite food is instead “bacon”.

This is my answer:

NSString *favoriteFood = @”bacon”;

I also tried this answer out: favoriteFood = @"bacon";

Both of them were wrong. What's the answer? I can't pass this quiz without getting this question right.

Thank you!

I too am having the same issue. From my understanding: NSString *favoriteFood = @”bacon”; should be correct.

1 Answer

Jake Salo
Jake Salo
13,175 Points

i too had this issue, i solved it just by copying the code from the question and changing 'cheese' for 'bacon'. i assume that it is just a typo on one of the speech marks or something but this worked for me.

Timothy Wattimena
Timothy Wattimena
4,896 Points

Thank you! Why didn't I think of that? LOL