Recursion

AP Computer Science A· difficulty 2/5

A recursive method

  • A

    Uses static fields

  • B

    Loops forever

  • C

    Cannot return values

  • D

    Calls itself (directly or indirectly)

    check_circle

Explanation

Recursion: method invokes itself with smaller subproblem.

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

Related questions