Question 11633 – Memory-Management
May 19, 2024
Database-Management-System
May 20, 2024
Question 11633 – Memory-Management
May 19, 2024
Database-Management-System
May 20, 2024

UGC NET CS 2006 Dec-paper-2

Question 11
When a function is recursively called, all automatic variables :
A
are initialized during each execution of the function
B
are retained from the last execution
C
are maintained in a stack
D
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.
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.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!