ISRO Scientist or Engineer Computer Science 2008 Question 43

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

Comments

Register with

OR
cracku

Boost your Prep!

Download App