Recursion

AP Computer Science A· difficulty 3/5

Every recursive method must have a

  • A

    Loop

  • B

    Base case (termination condition)

    check_circle
  • C

    Multiple returns

  • D

    Static method

Explanation

Without a base case, infinite recursion → stack overflow.

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

Related questions