Question from the Java test

How many times is the condition `(a++ < 15)` evaluated in the following code? ```java int a = 3; while (a++ < 15) { if ((a++ % 5) == 0) break; } ```

Hard

Given the following code

    int a = 3;
    do {
        if ((a++ % 5) == 0)
            break;
    } while (a++ < 15);

How many times "(a++ < 15)" was evaluated?

Author: Thomas De verdièreStatus: PublishedQuestion passed 2570 times
Edit
8
Community EvaluationsNo one has reviewed this question yet, be the first!