Ask your own question, for FREE!
Computer Science 6 Online
OpenStudy (anonymous):

**MEDAL + FAN** Please check my Java Programming answers?

OpenStudy (anonymous):

OpenStudy (harsha19111999):

In the first file, you have the 3rd one and 4th one wrong

OpenStudy (harsha19111999):

x < 0 is a boolean expression as it is used to check whether x is less than 0 or not

OpenStudy (harsha19111999):

In the 4th one, when you divide a odd number with 2, you always get the remainder 1

OpenStudy (lyrae):

3, 4, 5, and 9 are not correct. No answer is checked in 10.

OpenStudy (anonymous):

Thanks! I'll fan once my openstudy client stops wigging out.

OpenStudy (anonymous):

@Harsha19111999 @Lyrae I don't really understand #3. Is x != 2 not a boolean expression?

OpenStudy (harsha19111999):

If you are asking about question numbers 3, the answer is option 2

OpenStudy (harsha19111999):

Given x -= 3. It is not a boolean expression as its expansion is x = x-3

OpenStudy (harsha19111999):

I hope you understand

OpenStudy (anonymous):

So for #3, x -= 3 isn't a Boolean expression because it has -= ...?

OpenStudy (anonymous):

I'm trying haha. Thank you for helping me, too.

OpenStudy (harsha19111999):

Yes. You're welcome :)

OpenStudy (anonymous):

@Harsha19111999 Can you help me with #9 and #10? Those are the final two that I'm confused about.

OpenStudy (harsha19111999):

For the #9, if the if statement is false, the else is executed. So, the correct answer would be the 4th option

OpenStudy (harsha19111999):

And for the #10 one, in the 3rd one, there is not proper syntax for the if statement. So this would lead to syntax error

OpenStudy (anonymous):

To create a proper syntax, do you need brackets/parentheses? Also, thank you, thank you, thank you! You're a total life saver.

OpenStudy (harsha19111999):

Hahaha. Yes you need a parenthesis. And You're welcome, welcome, welcome

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!