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

Ruby Ruby Operators and Control Structures Ruby Operators Equality Operators

The quiz I just completed asked questions that required providing answers that were not True/False. I had to guess.

As mentioned the questions were about saying what the output would be of the operators. The answer choices were only True/False. It was not a True/False question. This was on 2 of the four questions.

2 Answers

Steven Parker
Steven Parker
231,269 Points

The questions are about comparison operations that return boolean values.

Boolean values are either True or False. So while the question itself was asking you what the output of the operators would be, since the operations return boolean values the only possible choices are True and False.

For example, if the question asked, "What is the output of '9 == 2'?", since 9 is not equal to 2 the answer would be "False".

Hey Steven, boy I feel silly and totally understand now! Thanks