GATE 2011 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2011

81 questions

MCQ 811-mark 40 · 2-mark 41

Questions 21–25 of 81

Q21Cache Memory2 marksMCQ−0.67 if wrong
An 8KB direct mapped write-back cache is organized as multiple blocks, each of size 32-bytes. The processor generates 32-bit addresses. The cache controller maintains the tag information for each cache block comprising of the following. 1 Valid bit 1 Modified bit As many bits as the minimum needed to identify the memory block mapped in the cache. What is the total size of memory needed at the cache controller to store metadata (tags) for the cache?

Q22Secondary Storage2 marksMCQ−0.67 if wrong
An application loads 100 libraries at startup. Loading each library requires exactly one disk access. The seek time of the disk to a random location is given as 10ms. Rotational speed of disk is 6000rpm. If all 100 libraries are loaded from random locations on the disk, how long does it take to load all libraries? (The time to transfer data from the disk block once the head has been positioned at the start of the block may be neglected)

Q23IO Interface2 marksMCQ−0.67 if wrong
On a non-pipelined sequential processor, a program segment, which is a part of the interrupt service routine, is given to transfer 500 bytes from an I/O device to memory.

Initialize the address register
Initialize the count to 500
LOOP: Load a byte from device
Store in memory at address given by address register
Increment the address register
Decrement the count
If count != 0 go to LOOP

Assume that each statement in this program is equivalent to a machine instruction which takes one clock cycle to execute if it is a non-load/store instruction. The load-store instructions take two clock cycles to execute.

The designer of the system also has an alternate approach of using the DMA controller to implement the same transfer. The DMA controller requires 20 clock cycles for initialization and other overheads. Each DMA transfer cycle takes two clock cycles to transfer one byte of data from the device to the memory.

What is the approximate speedup when the DMA controller based design is used in place of the interrupt driven program based input-output?

Q24Interrupt1 markMCQ−0.33 if wrong
A computer handles several interrupt sources of which the following are relevant for this question.

Interrupt from CPU temperature sensor (raises interrupt if CPU temperature is too high)
Interrupt from Mouse (raises interrupt if the mouse is moved or a button is pressed)
Interrupt from Keyboard (raises interrupt if a key is pressed or released)
Interrupt from Hard Disk (raises interrupt when a disk read is completed)

Which one of these will be handled at the HIGHEST priority?

Q25Pipeline Processor2 marksMCQ−0.67 if wrong
Consider an instruction pipeline with four stages (S1, S2, S3 and S4) each with combinational circuit only. The pipeline registers are required between each stage and at the end of the last stage. Delays for the stages and for the pipeline registers are as given in the figure.
Stage S1 Delay 5ns Stage S2 Delay 6ns Stage S3 Delay 11ns Stage S4 Delay 8ns Pipeline Register (Delay 1ns) Pipeline Register (Delay 1ns) Pipeline Register (Delay 1ns) Pipeline Register (Delay 1ns) What is the approximate speed up of the pipeline in steady state under ideal conditions when compared to the corresponding non-pipeline implementation?