Programming practice

Java recursion tracing practice

Each question shows you a complete recursive Java method and asks you to trace its return value for a specific input. Choose linear or branching style, set the question count, and check all your answers at once with a step-by-step explanation for each one.

Interactive question set

Work through each method carefully. Trace from the original call down to the base case, then unwind. Enter the final return value for each function call shown.

Advertisement