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

Java question (see the picture). I'll give MEDALS!!!

OpenStudy (anonymous):

@ganeshie8 @hartnn @dan815 @iambatman @Zarkon @Loser66 PLEASE HELP!!!

OpenStudy (anonymous):

OpenStudy (harsha19111999):

For your first question, you need to know some basics. x += 2 means x = x +2, x/=3 means x = x/3, x%=3 means x = x%3 and x *= 3 means x = x*3.So, for your first question, if you plug in the value of x in the 3rd option, you'll get even number.

OpenStudy (harsha19111999):

The second question says that when will x return true and give that x is divisible by 5. So, if you divide x by 5, you will get the remainder 0 that is x%5=0. So the correct option is the 4th one

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!