Free Online Directory Activation Records and Storage Allocation MCQs - MCQs Answers

Activation Records and Storage Allocation MCQs

30 min Score: 0 Attempted: 0/30 Subscribe
1. What is an activation record (AR)?





2. Which of the following is typically stored in an activation record?





3. Where are activation records usually stored?





4. What does the dynamic link in an activation record point to?





5. What is the purpose of the return address in an AR?





6. Which field in an AR stores temporary results of computations?





7. What is a static link used for in nested functions?





8. What type of memory allocation is used for activation records?





9. Which of the following is true about stack growth?





10. What happens to an AR when a function returns?





11. Which of the following is stored in the static part of an activation record?





12. Which part of an activation record contains space for a function’s return value?





13. Which type of storage allocation is used for global variables?





14. What does dynamic storage allocation refer to?





15. Which of the following is NOT typically a component of an AR?





16. What is the purpose of the control link in an AR?





17. Which allocation method is suitable for recursive function calls?





18. Which of the following is true about heap memory in storage allocation?





19. What is the main disadvantage of heap allocation compared to stack allocation?





20. What does the term “lexical scope” mean in context of ARs?





21. Which memory allocation type is used for constants?





22. Which link is necessary for languages that allow nested subroutines?





23. Which of the following is true about stack frames in recursion?





24. Which allocation type is suitable for variables whose lifetime is unpredictable?





25. What does an activation record typically do for parameter passing?





26. In a typical AR, which field helps in implementing return after function execution?





27. Which of the following can cause stack overflow?





28. What is the main advantage of using stack-based storage for activation records?





29. Which memory allocation technique allows multiple ARs to coexist for recursive calls?





30. What is a major difference between heap and stack memory in storage allocation?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials