Question

Question 68 (Mandatory) (1 point) When the Java source code below is executed, how many times is the boolean expression (j >

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The correct answer is option (4)

6

Explanation:

Here i = 2

and the for loop will continue until i<=2.

When i = 1

For loop will goes to 14 (because initial value of j is 28 and it goes to j/2)

in the next iteration it will be 7

and then last iteration will check for the i<=2 condition. This makes the evaluation to 6.

-------------------------------------------------------

PLEASE UPVOTE.

Add a comment
Know the answer?
Add Answer to:
Question 68 (Mandatory) (1 point) When the Java source code below is executed, how many times...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT