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

Java

Quiz question

Quiz question:

Carlos is just getting started and he has completed the HTML and CSS courses. What answer is stored in the boolean isQualified below:

boolean isQualified = ( learnedHTML && learnedJavaScript && learnedCSS );

Answer choices: True False

The possible answer choices don't match the question (at least in my mind)

3 Answers

isQualified can only hold a true or false.

The expression on the right of the equals sign gets evaluated. It looks like learnedHTML, learnedJavaScript, and learnedCSS are all boolean, that is to say that the value is either yes or no. (true or false).

If all three are true then isQualified will be true. If you have learned HTML AND learned JavaScript, AND learned CSS then it is True that you are Qualified. If any of the values on the right side of equals sign are false, isQualified is false.

I hope that helps.

Just a question in relation to my question: after looking over the other questions again, is it asking for whether the output WILL BE true or false?

Hi Bretney, the question is asking if the above line ... "boolean isQualified = ( learnedHTML && learnedJavaScript && learnedCSS );" is true (correct) or false (wrong) according to the given scenario.