Quiz Question - Bob's Three Kids

For the "Using Logical ORs and ANDs" quiz, one of the questions is:

If Bob is 50, has 3 children, and works for a software company, what is the answer to this logical statement: age > 30 || children < 3 || isEmployed

The answer the quiz is looking for is True.

I thought it would be False as the number of his children (3) is equal to, not less than 3.

In Java, do you have to specify "less than or equal to" or does < account for that?

Thanks!

If Bob is 50, has 3 children, and works for a software company, what is the answer to this logical statement: age > 30 || children < 3 || isEmployed

The answer the quiz is looking for is True.

its clearly False but when i click False my answer is incorrect.

Hi Jahangir. I too did not get this question at first. What I was missing is that || is OR. I was reading the question as "Is Bob over 30 years old AND has less than 3 children AND is employed." I answered False because Bob has 3 children not less than 3 children.

But II is OR so the question really is: Is Bob over 30 years old OR has less than 3 children OR is employed.

If Bob meets anyone one of those three, then the statement is True.