Computer organization mcqs subroutines nesting

YOU CAN DOWNLOAD 200+ SUBJECTS PDF BOOK FOR COMPETITIVE EXAMINATIONS

CLICK HERE TO DOWNLOAD

Computer organization mcqs subroutines nesting

Question 6 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The appropriate return addresses are obtained with the help of ..... in case of nested routines.
A
MAR
B
MDR
C
Buffers
D
Stack-pointers
Question 6 Explanation: 
The pointers are used to point to the location on the stack where the address is stored.
Question 7 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
When parameters are being passed on to the subroutines they are stored in .....
A
Registers
B
Memory locations
C
Processor stacks
D
All of the mentioned
Question 7 Explanation: 
In the case of, parameter passing the data can be stored on any of the storage space.
Question 8 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The most efficient way of handling parameter passing is by using .....
A
General purpose registers
B
Stacks
C
Memory locations
D
None of the mentioned
Question 8 Explanation: 
By using general purpose registers for the parameter passing we make the process more efficient.
Question 9 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The most Flexible way of logging the return addresses of the subroutines is by using .....
A
Registers
B
Stacks
C
Memory locations
D
None of the mentioned
Question 9 Explanation: 
The stacks are used as Logs for return addresses of the subroutines.
Question 10 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The wrong statement/s regarding interrupts and subroutines among the following is/are ..... i) The sub-routine and interrupts have a return statement ii) Both of them alter the content of the PC iii) Both are software oriented iv) Both can be initiated by the user
A
i, ii and iv
B
ii and iii
C
iv
D
iii and iv
There are 10 questions to complete.