YOU may join our Telegram for all subjects PDF BOOKS.
https://t.me/+Ccx9McEia7wyODg1
Computer organization questions answers entrance exams
Question 1 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
The private work space dedicated to a subroutine is called as .....
System heap | |
Reserve | |
Stack frame | |
Allocation |
Question 1 Explanation:
This work space is where the intermediate values of the subroutines are stored.
Question 2 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
If the subroutine exceeds the private space allocated to it then the values are pushed onto .....
Stack | |
System heap | |
Reserve Space | |
Stack frame |
Question 2 Explanation:
If the allocated work space is exceeded then the data is pushed onto the system stack.
Question 3 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
..... pointer is used to point to parameters passed or local parameters of the subroutine.
Stack pointer | |
Frame pointer | |
Parameter register | |
Log register |
Question 3 Explanation:
This pointer is used to track the current position of the stack being used.
Question 4 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
The reserved memory or private space of the subroutine gets deallocated when .....
The stop instruction is executed by the routine | |
The pointer reaches the end of the space | |
When the routine's return statement is executed | |
None of the mentioned |
Question 4 Explanation:
The work space allocated to a subroutine gets deallocated when the routine is completed.
Question 5 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
The private space gets allocated to each subroutine when .....
The first statement of the routine is executed | |
When the context switch takes place | |
When the routine gets called | |
When the Allocate instruction is executed |
Question 5 Explanation:
When the call statement is executed, simultaneously space also gets allocated.
There are 5 questions to complete.