Back to marketplace

Section 11 - Programming

No description yet. This curated deck is ready for daily study.

Total cards: 4•Content version: v3•Public deck•Updated: 8/1/2026

Card preview (4)

#1
Front (Question)

What is recursion?

Back (Answer)

Recursion is when a function calls itself up to a finite amount of times

#2
Front (Question)

Why does a recursive function need to only run a finite amount of times?

Back (Answer)

If it runs infinitely, it will overflow the stack and completely take up your memory

#3
Front (Question)

Why does a recursive function need a base case?

Back (Answer)

When the function reaches that point, it ends. It ensures that the function doesn’t run infinitely.

#4
Front (Question)

Back (Answer)