Usually, a _____ contains primitive data types, and a _____ contains non-primitive data types.

(1 point)
Responses

heap; stack

heap; stack

stack; heap

stack; heap

RAM; ROM

RAM; ROM

ROM; RAM

1 answer

The correct response is:

stack; heap

In programming, the stack is used for storing primitive data types (like integers and booleans), while the heap is used for storing non-primitive data types (like objects and arrays).