14 - Subroutine calls Flashcards

1
Q

What does the stack frame hold ?

A
  • Parameters
  • Local variables
  • Return addresses
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When are recursive subroutine calls useful ?

A

To have a factorial function, for example.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many return called will a program have if it has n subroutines ?

A

It can’t be said.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly