🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Recursion and Stack Frames: all 10 questions

Quiz: Recursion and Stack Frames · Question 2 of 10

What does a stack frame NOT normally contain?

What does a stack frame NOT normally contain?

  1. A.The function's local variables
  2. B.The function's parameters
  3. C.The return address
  4. D.Memory allocated with malloc
Answer & explanation

Correct answer: Memory allocated with malloc

malloc memory lives on the heap; the frame may hold only the pointer to it.

Can you get the rest right without peeking?

Take the timed Quiz: Recursion and Stack Frames quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →