while Loops

AP Computer Science A· difficulty 3/5

A <code>do-while</code> loop

  • A

    Always runs at least once before checking condition

    check_circle
  • B

    Same as while

  • C

    Always runs forever

  • D

    May not run at all

Explanation

Body executes, then condition is checked; minimum one execution.

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

Related questions