Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
221,106 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