for Loops

AP Computer Science A· difficulty 4/5

<code>for (int i = 0; i < n && !done; i++)</code>

  • A

    Loops while both conditions hold

    check_circle
  • B

    Compile error

  • C

    Loops indefinitely

  • D

    Runs once

Explanation

Combined condition with <code>&&</code>.

Want 10 more like this — adaptive to your weak spots?

Related questions