How many times will this code print out the line "Test":

for (int k = 1; k < 10; k++) {
    if (k % 2 == 1)
    continue;
    System.out.println("Test");
}
Explanation
Will be printed 4 times - once for every even number less than - for 2, 4, 6, 8.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes