Question 43

Consider the following code segment.
for (int k = 6; k < 26; k = k + 2)
{
if (k % 3 == 1)
system.out.print(k + " ");
}
What is printed as a result of executing the code segment?


Create a FREE account and get:

  • Download Maths Shortcuts PDF
  • Get 300+ previous papers with solutions PDF
  • 500+ Online Tests for Free

cracku

Boost your Prep!

Download App