ICD9 - Runtime Environment Flashcards

1
Q

When a function is invoked, if the language passes a copy of the value of each parameter to the code that performs the function, this is called ANSWER.

A

pass-by-value

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

If the system stack is used for a call stack, then it becomes important for the caller to update the top of the stack before copying items into it. The reason is because we are worried about the top of the stack being changed by ANSWER after we have copied in information but before we updated the stack top.

A

an interrupt

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

The portion of the call stack associated with a single function invocation and execution is called ANSWER.

A

an activation record

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

Another method of parameter passing, whose technical name is ANSWER, is implemented by passing the address of the variable (or whatever the given parameter is). Assigning to such a parameter would then change the value stored at the address.

A

pass-by-reference

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

In C, when you pass a function as a parameter to another function, it is implemented as passing ANSWER.

A

the address of the start of the function code

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