Question 11633 – Memory-Management
May 19, 2024ER-Model
May 20, 2024UGC NET CS 2006 Dec-paper-2
Question 11 |
When a function is recursively called, all automatic variables :
are initialized during each execution of the function | |
are retained from the last execution | |
are maintained in a stack | |
are ignored |
Question 11 Explanation:
→ When a function is recursively called, all automatic variables are initialized during each execution of the function.
→ Automatic local variables primarily applies to recursive lexically-scoped languages. An automatic variable is a local variable which is allocated and deallocated automatically when program flow enters and leaves the variable’s scope. The scope is the lexical context, particularly the function or block in which a variable is defined.
→ Automatic local variables primarily applies to recursive lexically-scoped languages. An automatic variable is a local variable which is allocated and deallocated automatically when program flow enters and leaves the variable’s scope. The scope is the lexical context, particularly the function or block in which a variable is defined.
Correct Answer: A
Question 11 Explanation:
→ When a function is recursively called, all automatic variables are initialized during each execution of the function.
→ Automatic local variables primarily applies to recursive lexically-scoped languages. An automatic variable is a local variable which is allocated and deallocated automatically when program flow enters and leaves the variable’s scope. The scope is the lexical context, particularly the function or block in which a variable is defined.
→ Automatic local variables primarily applies to recursive lexically-scoped languages. An automatic variable is a local variable which is allocated and deallocated automatically when program flow enters and leaves the variable’s scope. The scope is the lexical context, particularly the function or block in which a variable is defined.
Subscribe
Login
0 Comments