Log in
Sign up for FREE
arrow_back
Library

Control Structures Quiz

star
star
star
star
star
Last updated almost 2 years ago
4 questions
1
Question 1
1.

What will the output of this control structure?

int loopCounter = 0; do { out.println(); loopCounter++; } while (loopCounter < 3);

1
Question 2
2.

What will the output of this control structure?

int loopCounter = 0; do { out.println(); loopCounter++; } while (loopCounter < 3);

1
1
Question 3
3.

What will the output of this control structure?

int loopCounter = 0; do { out.println(); loopCounter++; } while (loopCounter < 3);

Question 4
4.

What is the output of this control structure?

int resultOperation = (firstOperand > secondOperand) ? (7 - Math.min(4, 2)) : -12; System.out.println("Step 3 value: " + resultOfTernaryOperation);