πŸ“Š Computer Architecture
Q. The reserved memory or private space of the subroutine gets deallocated when
  • (A) the stop instruction is executed by the routine
  • (B) the pointer reaches the end of the space
  • (C) when the routine’s return statement is executed
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) when the routine’s return statement is executed

Explanation: the work space allocated to a subroutine gets deallocated when the routine is completed.

πŸ“Š Computer Architecture
Q. The private space gets allocated to each subroutine when
  • (A) the first statement of the routine is executed
  • (B) when the context switch takes place
  • (C) when the routine gets called
  • (D) when the allocate instruction is executed
πŸ’¬ Discuss
βœ… Correct Answer: (C) when the routine gets called

Explanation: when the call statement is executed, simultaneously space also gets allocated.

πŸ“Š Computer Architecture
Q. the most suitable data structure used to store the return addresses in the case of nested subroutines.
  • (A) heap
  • (B) stack
  • (C) queue
  • (D) list
πŸ’¬ Discuss
βœ… Correct Answer: (B) stack

Explanation: none.

πŸ“Š Computer Architecture
Q. In the case of nested subroutines, the stack top is always
  • (A) the saved contents of the called sub routine
  • (B) the saved contents of the calling sub routine
  • (C) the return addresses of the called sub routine
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) the saved contents of the called sub routine

Explanation: none.

πŸ“Š Computer Architecture
Q. The stack frame for each subroutine is present in
  • (A) main memory
  • (B) system heap
  • (C) processor stack
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) processor stack

Explanation: the memory for the work space is allocated from the processor stack.

πŸ“Š Computer Architecture
Q. The data structure suitable for scheduling processes is
  • (A) list
  • (B) heap
  • (C) queue
  • (D) stack
πŸ’¬ Discuss
βœ… Correct Answer: (C) queue

Explanation: the queue data structure is generally used for scheduling as it is two directional.

πŸ“Š Computer Architecture
Q. The sub-routine service procedure is similar to that of the interrupt service routine in
  • (A) method of context switch
  • (B) returning
  • (C) process execution
  • (D) method of context switch & process execution
πŸ’¬ Discuss
βœ… Correct Answer: (D) method of context switch & process execution

Explanation: the subroutine service procedure is the same as the interrupt service routine in all aspects, except the

πŸ“Š Computer Architecture
Q. In memory-mapped I/O
  • (A) the i/o devices and the memory share the same address space
  • (B) the i/o devices have a separate address space
  • (C) the memory and i/o devices have an associated address space
  • (D) a part of the memory is specifically set aside for the i/o operation
πŸ’¬ Discuss
βœ… Correct Answer: (A) the i/o devices and the memory share the same address space

Explanation: its the different modes of accessing the i/o devices.

πŸ“Š Computer Architecture
Q. The usual BUS structure used to connect the I/O devices is
  • (A) star bus structure
  • (B) multiple bus structure
  • (C) single bus structure
  • (D) node to node bus structure
πŸ’¬ Discuss
βœ… Correct Answer: (C) single bus structure

Explanation: bus is a collection of address, control and data lines used to connect the various devices of the computer.

πŸ“Š Computer Architecture
Q. In intel’s IA-32 architecture there is a separate 16 bit address space for the I/O devices.
  • (A) false
  • (B) true
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (B) true

Explanation: this type of access is called as i/o mapped devices.

Jump to