Skip to content

GATE CS Computer Organization and Architecture questions

Practise Computer Organization and Architecture questions for GATE CS. Explore official PYQs and original subject-wise quizzes, check answers and view available solutions. Free, no sign-in.

Track address sizes, cache organisation and pipeline dependencies carefully. Write down the units and assumptions before computing memory access times or processor performance.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2022Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A cache memory that has a hit rate of 0.80.8 has an access latency 10  ns10 \; \text{ns} and miss penalty 100  ns.100 \; \text{ns}. An optimization is done on the cache to reduce the miss rate. However, the optimization results in an increase of cache access latency to 15  ns,15 \; \text{ns}, whereas the miss penalty is not affected. The minimum hit rate (rounded …
Official PYQ2022Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMSQ · 2 marks
Consider a system with 2  KB2 \;\text{KB} direct mapped data cache with a block size of 64  bytes.64 \; \text{bytes}. The system has a physical address space of 64  KB64 \; \text{KB} and a word length of 16  bits.16 \; \text{bits.} During the execution of a program, four data words P, Q, R,\text{P, Q, R,} and S\text{S} are accessed in that order 1010 times …
Official PYQ2022Computer Organization and ArchitecturePipeline HazardsNAT · 2 marks
A processor X1\text{X}_{1} operating at 2  GHz2 \; \text{GHz} has a standard 5−5-stage RISC\text{RISC} instruction pipeline having a base CPI (cycles per instruction)\text{CPI (cycles per instruction)} of one without any pipeline hazards. For a given program P\text{P} that has 30%30 \% branch instructions, control hazards incur 22 cycles stall for every branch. A new …
Official PYQ2021Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
Consider a computer system with a byte-addressable primary memory of size 2322^{32} bytes. Assume the computer system has a direct-mapped cache of size 32 KB\text{32 KB} (1 KB\text{1 KB} = 2102^{10} bytes), and each cache block is of size 6464 bytes. The size of the tag field is __________ bits.
Official PYQ2021Computer Organization and ArchitectureInstruction PipeliningNAT · 2 marks
A five-stage pipeline has stage delays of 150,120,150,160150, 120, 150, 160 and 140140 nanoseconds. The registers that are used between the pipeline stages have a delay of 55 nanoseconds each. The total time to execute 100100 independent instructions on this pipeline, assuming there are no pipeline stalls, is _______ nanoseconds.
Official PYQ2021Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
Consider the following instruction sequence where registers R1,R2\text{R1}, \text{R2} and R3\text{R3} are general purpose and MEMORY[X]\text{MEMORY[X]} denotes the content at the memory location X.\text{X}. …
Official PYQ2021Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
Consider a set-associative cache of size 2KB (1KB=210\text{2KB (1KB} =2^{10} bytes)\text{)} with cache block size of 6464 bytes. Assume that the cache is byte-addressable and a 3232 -bit address is used for accessing the cache. If the width of the tag field is 2222 bits, the associativity of the cache is _________
Official PYQ2021Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeNAT · 1 mark
Consider a computer system with DMA\text{DMA} support. The DMA\text{DMA} module is transferring one 88-bit character in one CPU\text{CPU} cycle from a device to memory through cycle stealing at regular intervals. Consider a 2 MHz\text{2 MHz} processor. If 0.5%0.5 \% processor cycles are used for DMA\text{DMA}, the data transfer rate of the device is …
Official PYQ2021Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 2 marks
​​​​​​Assume a two-level inclusive cache hierarchy, L1L1 and L2L2, where L2L2 is the larger of the two. Consider the following statements. S1S_1: Read misses in a write through L1L1 cache do not result in writebacks of dirty lines to the L2L2 S2S_2: Write allocate policy must be used in conjunction with write through caches and no-write …
Official PYQ2021Computer Organization and ArchitectureInstruction PipeliningNAT · 2 marks
Consider a pipelined processor with 55 stages, Instruction Fetch(IF)\text{Instruction Fetch} (\textsf{IF}), Instruction Decode(ID)\text{Instruction Decode} \textsf{(ID)}, Execute (EX)\text{Execute } \textsf{(EX)}, Memory Access (MEM)\text{Memory Access } \textsf{(MEM)}, and Write Back (WB)\text{Write Back } \textsf{(WB)}. Each stage of the pipeline, except the EX\textsf{EX} stage, takes one cycle. Assume that the …
Official PYQ2020Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
Consider the following statements. Daisy chaining is used to assign priorities in attending interrupts. When a device raises a vectored interrupt, the CPU does polling to identify the source of interrupt. In polling, the CPU periodically checks the status bits to know if any device needs its attention. During DMA, both the CPU and DMA controller can be bus …
Official PYQ2020Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
Consider the following data path diagram. Consider an instruction: R0←R1+R2R0 \leftarrow R1 +R2. The following steps are used to execute it over the given data path. Assume that PC is incremented appropriately. The subscripts rr and ww indicate read and write operations, respectively. R2r, TEMP1r,ALUadd, TEMP2wR2_{r},\text{ TEMP1}_{r},ALU_{\text{add}}, \text{ TEMP2}_{w} …
Official PYQ2020Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A direct mapped cache memory of 11 MB has a block size of 256256 bytes. The cache has an access time of 33 ns and a hit rate of 94%94 \%. During a cache miss, it takes 220 ns to bring the first word of a block from the main memory, while each subsequent word takes 55 ns. The word size is 6464 bits. The average memory access time in ns (round …
Official PYQ2020Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 2 marks
A computer system with a word length of 3232 bits has a 1616 MB byte- addressable main memory and a 6464 KB, 44-way set associative cache memory with a block size of 256256 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1=0x42C8A4A1= \textsf{0x42C8A4}, A2=0x546888A2= \textsf{0x546888}, A3=0x6A289CA3= \textsf{0x6A289C}, …
Official PYQ2020Computer Organization and ArchitectureInstruction PipeliningNAT · 2 marks
Consider a non-pipelined processor operating at 2.52.5 GHz. It takes 55 clock cycles to complete an instruction. You are going to make a 55- stage pipeline out of this processor. Overheads associated with pipelining force you to operate the pipelined processor at 22 GHz. In a given program, assume that 30%30\% are memory instructions, 60%60 \% …
Official PYQ2020Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
A processor has 6464 registers and uses 1616-bit instruction format. It has two types of instructions: I-type and R-type. Each I-type instruction contains an opcode, a register name, and a 44-bit immediate value. Each R-type instruction contains an opcode and two register names. If there are 88 distinct I-type opcodes, then the maximum number of …
Official PYQ2019Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
A certain processor uses a fully associative cache of size 1616 kB, The cache block size is 1616 bytes. Assume that the main memory is byte addressable and uses a 3232-bit address. How many bits are required for the Tag and the Index fields respectively in the addresses generated by the processor?
Official PYQ2019Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
The chip select logic for a certain DRAM chip in a memory system design is shown below. Assume that the memory system has 1616 address lines denoted by A15A_{15} to A0A_0. What is the range of address (in hexadecimal) of the memory system that can get enabled by the chip select (CS) signal?
Official PYQ2019Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 2 marks
A certain processor deploys a single-level cache. The cache block size is 88 words and the word size is 44 bytes. The memory system uses a 6060-MHz clock. To service a cache miss, the memory controller first takes 11 cycle to accept the starting address of the block, it then takes 33 cycles to fetch all the eight words of the block, and finally …
Official PYQ2018Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
A processor has 1616 integer registers (R0, R1,…, R15)\text{(R0, R1}, \ldots ,\text{ R15)} and 6464 floating point registers (F0, F1,…,F63).\text{(F0, F1}, \ldots , \text{F63)}. It uses a 2- byte2\text{- byte} instruction format. There are four categories of instructions: Type-1, Type-2, Type-3,\text{Type-1, Type-2, Type-3}, and Type-4. Type-1\text{Type-4. Type-1} category consists of four instructions, …