Quiznetik
Computer Architecture | Set 2
1. What is subroutine nesting?
A. having multiple subroutines in a program
B. using a linking nest statement to put many subroutines under the same name
C. having one routine call the other
D. none of the mentioned
Correct : C. having one routine call the other
2. The order in which the return addresses are generated and used is
A. lifo
B. fifo
C. random
D. highest priority
Correct : A. lifo
3. In case of nested subroutines the return addresses are stored in
A. system heap
B. special memory buffers
C. processor stack
D. registers
Correct : C. processor stack
4. The appropriate return addresses are obtained with the help of in case of nested routines.
A. mar
B. mdr
C. buffers
D. stack-pointers
Correct : D. stack-pointers
5. 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
Correct : D. all of the mentioned
6. 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
Correct : A. general purpose registers
7. 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
Correct : B. stacks
8. The private work space dedicated to a subroutine is called as
A. system heap
B. reserve
C. stack frame
D. allocation
Correct : C. stack frame
9. If the subroutine exceeds the private space allocated to it then the values are pushed onto
A. stack
B. system heap
C. reserve space
D. stack frame
Correct : A. stack
10. pointer is used to point to parameters passed or local parameters of the subroutine.
A. stack pointer
B. frame pointer
C. parameter register
D. log register
Correct : B. frame pointer
11. 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
Correct : C. when the routine’s return statement is executed
12. 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
Correct : C. when the routine gets called
13. 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
Correct : B. stack
14. 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
Correct : A. the saved contents of the called sub routine
15. The stack frame for each subroutine is present in
A. main memory
B. system heap
C. processor stack
D. none of the mentioned
Correct : C. processor stack
16. The data structure suitable for scheduling processes is
A. list
B. heap
C. queue
D. stack
Correct : C. queue
17. 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
Correct : D. method of context switch & process execution
18. 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
Correct : A. the i/o devices and the memory share the same address space
19. 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
Correct : C. single bus structure
20. In intel’s IA-32 architecture there is a separate 16 bit address space for the I/O devices.
A. false
B. true
Correct : B. true
21. The system is notified of a read or write operation by
A. appending an extra bit of the address
B. enabling the read or write bits of the devices
C. raising an appropriate interrupt signal
D. sending a special signal along the bus
Correct : D. sending a special signal along the bus
22. To overcome the lag in the operating speeds of the I/O device and the processor we use
A. buffer spaces
B. status flags
C. interrupt signals
D. exceptions
Correct : B. status flags
23. The method of accessing the I/O devices by repeatedly checking the status flags is
A. program-controlled i/o
B. memory-mapped i/o
C. i/o mapped
D. none of the mentioned
Correct : A. program-controlled i/o
24. The method of synchronising the processor with the I/O device in which the device sends a signal when it is ready is?
A. exceptions
B. signal handling
C. interrupts
D. dma
Correct : C. interrupts
25. The interrupt-request line is a part of the
A. data line
B. control line
C. address line
D. none of the mentioned
Correct : B. control line
26. The method which offers higher speeds of I/O transfers is
A. interrupts
B. memory mapping
C. program-controlled i/o
D. dma
Correct : D. dma
27. The signal sent to the device from the processor to the device after receiving an interrupt is
A. interrupt-acknowledge
B. return signal
C. service signal
D. permission signal
Correct : A. interrupt-acknowledge
28. The time between the receiver of an interrupt and its service is
A. interrupt delay
B. interrupt latency
C. cycle time
D. switching time
Correct : B. interrupt latency
29. A single Interrupt line can be used to service n different devices.
A. true
B. false
Correct : A. true
30. The resistor which is attached to the service line is called
A. push-down resistor
B. pull-up resistor
C. break down resistor
D. line resistor
Correct : B. pull-up resistor
31. An interrupt that can be temporarily ignored is
A. vectored interrupt
B. non-maskable interrupt
C. maskable interrupt
D. high priority interrupt
Correct : C. maskable interrupt
32. Which interrupt is unmaskable?
A. rst 5.5
B. rst 7.5
C. trap
D. both rst 5.5 and 7.5
Correct : C. trap
33. When dealing with multiple devices interrupts, which mechanism is easy to implement?
A. polling method
B. vectored interrupts
C. interrupt nesting
D. none of the mentioned
Correct : A. polling method
34. The interrupt servicing mechanism in which the requesting device identifies itself to the processor to be serviced is
A. polling
B. vectored interrupts
C. interrupt nesting
D. simultaneous requesting
Correct : B. vectored interrupts
35. In vectored interrupts, how does the device identify itself to the processor?
A. by sending its device id
B. by sending the machine code for the interrupt service routine
C. by sending the starting address of the service routine
D. none of the mentioned
Correct : C. by sending the starting address of the service routine
36. The code sent by the device in vectored interrupt is long.
A. upto 16 bits
B. upto 32 bits
C. upto 24 bits
D. 4-8 bits
Correct : D. 4-8 bits
37. The starting address sent by the device in vectored interrupt is called as
A. location id
B. interrupt vector
C. service location
D. service id
Correct : B. interrupt vector
38. The processor indicates to the devices that it is ready to receive interrupts
A. by enabling the interrupt request line
B. by enabling the irq bits
C. by activating the interrupt acknowledge line
D. none of the mentioned
Correct : C. by activating the interrupt acknowledge line
39. Which table handle stores the addresses of the interrupt handling sub- routines?
A. interrupt-vector table
B. vector table
C. symbol link table
D. none of the mentioned
Correct : A. interrupt-vector table
40. method is used to establish priority by serially connecting all devices that request an interrupt.
A. vectored-interrupting
B. daisy chain
C. priority
D. polling
Correct : B. daisy chain
41. In daisy chaining device 0 will pass the signal only if it has
A. interrupt request
B. no interrupt request
C. both no interrupt and interrupt request
D. none of the mentioned
Correct : B. no interrupt request
42. interrupt method uses register whose bits are set separately by interrupt signal for each device.
A. parallel priority interrupt
B. serial priority interrupt
C. daisy chaining
D. none of the mentioned
Correct : A. parallel priority interrupt
43. register is used for the purpose of controlling the status of each interrupt request in parallel priority interrupt.
A. mass
B. mark
C. make
D. mask
Correct : D. mask
44. The added output of the bits of the interrupt register and the mask register is set as an input of
A. priority decoder
B. priority encoder
C. process id encoder
D. multiplexer
Correct : B. priority encoder
45. Interrupts initiated by an instruction is called as
A. internal
B. external
C. hardware
D. software
Correct : B. external
46. If during the execution of an instruction an exception is raised then
A. the instruction is executed and the exception is handled
B. the instruction is halted and the exception is handled
C. the processor completes the execution and saves the data and then handle the exception
D. none of the mentioned
Correct : B. the instruction is halted and the exception is handled
47. is/are types of exceptions.
A. trap
B. interrupt
C. system calls
D. all of the mentioned
Correct : D. all of the mentioned
48. The program used to find out errors is called
A. debugger
B. compiler
C. assembler
D. scanner
Correct : A. debugger
49. The two facilities provided by the debugger is
A. trace points
B. break points
C. compile
D. both trace and break points
Correct : D. both trace and break points
50. In trace mode of operation is
A. the program is interrupted after each detection
B. the program will not be stopped and the errors are sorted out after the complete program is scanned
C. there is no effect on the program, i.e the program is executed without rectification of errors
D. the program is halted only at specific points
Correct : A. the program is interrupted after each detection
51. What are the different modes of operation of a computer?
A. user and system mode
B. user and supervisor mode
C. supervisor and trace mode
D. supervisor, user and trace mode
Correct : B. user and supervisor mode
52. The instructions which can be run only supervisor mode are?
A. non-privileged instructions
B. system instructions
C. privileged instructions
D. exception instructions
Correct : C. privileged instructions
53. How is a privilege exception dealt with?
A. the program is halted and the system switches into supervisor mode and restarts the program execution
B. the program is stopped and removed from the queue
C. the system switches the mode and starts the execution of a new process
D. the system switches mode and runs the debugger
Correct : A. the program is halted and the system switches into supervisor mode and restarts the program execution
54. The DMA differs from the interrupt mode by
A. the involvement of the processor for the operation
B. the method of accessing the i/o devices
C. the amount of data transfer possible
D. none of the mentioned
Correct : D. none of the mentioned
55. The DMA transfers are performed by a control circuit called as
A. device interface
B. dma controller
C. data controller
D. overlooker
Correct : B. dma controller
56. In DMA transfers, the required signals and addresses are given by the
A. processor
B. device drivers
C. dma controllers
D. the program itself
Correct : C. dma controllers
57. After the completion of the DMA transfer, the processor is notified by
A. acknowledge signal
B. interrupt signal
C. wmfc signal
D. none of the mentioned
Correct : B. interrupt signal
58. When the R/W bit of the status register of the DMA controller is set to 1.
A. read operation is performed
B. write operation is performed
C. read & write operation is performed
D. none of the mentioned
Correct : A. read operation is performed
59. The controller is connected to the
A. processor bus
B. system bus
C. external bus
D. none of the mentioned
Correct : B. system bus
60. Can a single DMA controller perform operations on two different disks simultaneously?
A. true
B. false
Correct : A. true
61. The technique whereby the DMA controller steals the access cycles of the processor to operate is called
A. fast conning
B. memory con
C. cycle stealing
D. memory stealing
Correct : C. cycle stealing
62. The technique where the controller is given complete access to main memory is
A. cycle stealing
B. memory stealing
C. memory con
D. burst mode
Correct : D. burst mode
63. The controller uses to help with the transfers when handling network interfaces.
A. input buffer storage
B. signal enhancers
C. bridge circuits
D. all of the mentioned
Correct : A. input buffer storage
64. To overcome the conflict over the possession of the BUS we use
A. optimizers
B. bus arbitrators
C. multiple bus structure
D. none of the mentioned
Correct : B. bus arbitrators
65. The registers of the controller are
A. 64 bits
B. 24 bits
C. 32 bits
D. 16 bits
Correct : C. 32 bits
66. When the process requests for a DMA transfer?
A. then the process is temporarily suspended
B. the process continues execution
C. another process gets executed
D. process is temporarily suspended & another process gets executed
Correct : D. process is temporarily suspended & another process gets executed
67. The DMA transfer is initiated by
A. processor
B. the process being executed
C. i/o devices
D. os
Correct : C. i/o devices
68. To resolve the clash over the access of the system BUS we use
A. multiple bus
B. bus arbitrator
C. priority access
D. none of the mentioned
Correct : B. bus arbitrator
69. The device which is allowed to initiate data transfers on the BUS at any time is called
A. bus master
B. processor
C. bus arbitrator
D. controller
Correct : A. bus master
70. BUS arbitration approach uses the involvement of the processor.
A. centralised arbitration
B. distributed arbitration
C. random arbitration
D. all of the mentioned
Correct : A. centralised arbitration
71. The circuit used for the request line is a
A. open-collector
B. ex-or circuit
C. open-drain
D. nand circuit
Correct : C. open-drain
72. The Centralised BUS arbitration is
A. acknowledge signal
B. bus grant signal
C. response signal
D. none of the mentioned
Correct : B. bus grant signal
73. Once the BUS is granted to a device
A. it activates the bus busy line
B. performs the required operation
C. raises an interrupt
D. all of the mentioned
Correct : A. it activates the bus busy line
74. When the processor receives the request from a device, it responds by sending
A. open-drain circuit
B. open-collector circuit
C. ex-or circuit
D. nor circuit
Correct : B. open-collector circuit
75. After the device completes its operation assumes the control of the BUS.
A. another device
B. processor
C. controller
D. none of the mentioned
Correct : B. processor
76. The BUS busy line is used
A. to indicate the processor is busy
B. to indicate that the bus master is busy
C. to indicate the bus is already allocated
D. none of the mentioned
Correct : C. to indicate the bus is already allocated
77. If two devices A and B contesting for the BUS have ID’s 5 and 6 respectively, which device gets the BUS based on the Distributed arbitration.
A. device a
B. device b
C. insufficient information
D. none of the mentioned
Correct : B. device b
78. In Distributed arbitration, the device requesting the BUS
A. asserts the start arbitration signal
B. sends an interrupt signal
C. sends an acknowledge signal
D. none of the mentioned
Correct : A. asserts the start arbitration signal
79. How is a device selected in Distributed arbitration?
A. to connect the various devices to the cpu
B. to provide a path for communication between the processor and other devices
C. to facilitate data transfer between various devices
D. all of the mentioned
Correct : A. to connect the various devices to the cpu
80. The device which starts data transfer is called
A. master
B. transactor
C. distributor
D. initiator
Correct : D. initiator
81. The device which interacts with the initiator is
A. slave
B. master
C. responder
D. friend
Correct : A. slave
82. In synchronous BUS, the devices get the timing signals from
A. timing generator in the device
B. a common clock line
C. timing signals are not used at all
D. none of the mentioned
Correct : B. a common clock line
83. The delays caused in the switching of the timing signals is due to
A. memory access time
B. wmfc
C. propagation delay
D. processor delay
Correct : C. propagation delay
84. The time for which the data is to be on the BUS is affected by
A. propagation delay of the circuit
B. setup time of the device
C. memory access time
D. propagation delay of the circuit & setup time of the device
Correct : D. propagation delay of the circuit & setup time of the device
85. The Master strobes the slave at the end of each clock cycle in Synchronous BUS.
A. true
B. false
Correct : A. true
86. Which is fed into the BUS first by the initiator?
A. data
B. address
C. commands or controls
D. address, commands or controls
Correct : D. address, commands or controls
87. The devices with variable speeds are usually connected using asynchronous BUS.
A. true
B. false
Correct : A. true
88. The MSYN signal is initiated
A. soon after the address and commands are loaded
B. soon after the decoding of the address
C. after the slave gets the commands
D. none of the mentioned
Correct : B. soon after the decoding of the address
89. In IBM’s S360/370 systems lines are used to select the I/O devices.
A. scan in and out
B. connect
C. search
D. peripheral
Correct : A. scan in and out
90. The meter in and out lines are used for
A. monitoring the usage of devices
B. monitoring the amount of data transferred
C. measure the cpu usage
D. none of the mentioned
Correct : A. monitoring the usage of devices
91. MRDC stands for
A. memory read enable
B. memory ready command
C. memory re-direct command
D. none of the mentioned
Correct : B. memory ready command
92. The BUS that allows I/O, memory and Processor to coexist is
A. attributed bus
B. processor bus
C. backplane bus
D. external bus
Correct : C. backplane bus
93. The transmission on the asynchronous BUS is also called
A. switch mode transmission
B. variable transfer
C. bulk transfer
D. hand-shake transmission
Correct : D. hand-shake transmission
94. Asynchronous mode of transmission is suitable for systems with multiple peripheral devices.
A. true
B. false
Correct : A. true
95. The asynchronous BUS mode of transmission allows for a faster mode of data transfer.
A. true
B. false
Correct : B. false
96. serves as an intermediary between the device and the BUSes.
A. interface circuits
B. device drivers
C. buffers
D. none of the mentioned
Correct : A. interface circuits
97. The side of the interface circuits, that has the data path and the control signals to transfer data between interface and device is
A. bus side
B. port side
C. hardwell side
D. software side
Correct : B. port side
98. What is the interface circuit?
A. helps in installing of the software driver for the device
B. houses the buffer that helps in data transfer
C. helps in the decoding of the address on the address bus
D. none of the mentioned
Correct : C. helps in the decoding of the address on the address bus
99. The conversion from parallel to serial data transmission and vice versa takes place inside the interface circuits.
A. true
B. false
Correct : A. true
100. The Interface circuits generate the appropriate timing signals required by the BUS control scheme.
A. true
B. false
Correct : A. true