A

Admin • 833.24K Points
Coach

Q. How many times will this loop execute?
for(int i = 0; i < 5; i++) {
// code
}

  • (A) 4
  • (B) 5
  • (C) 6
  • (D) 0
  • Correct Answer - Option(B)
  • Views: 28
  • Filed under category Java
  • Hashtags: Java Loops

Explanation by: Admin

The loop runs from i = 0 to i = 4, i.e., 5 times.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.