A stack overflow occurs when: (1 point)

too much data is put in a heap.
too many heaps are put in a stack.
too many stacks are put in a heap.
too much data is put in a stack.

1 answer

A stack overflow occurs when too much data is put in a stack. This typically happens when there are too many function calls or too much memory is used on the call stack, exceeding its limit.