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 PYQ2013Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
In a kk-way set associative cache, the cache is divided into vv sets, each of which consists of kk lines. The lines of a set are placed in sequence one after another. The lines in set ss are sequenced before the lines in set (s+1)(s+1). The main memory blocks are numbered 0 onwards. The main memory block numbered jj must be mapped to any one of …
Official PYQ2013Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Consider an instruction pipeline with five stages without any branch prediction: Fetch Instruction (FI), Decode Instruction (DI), Fetch Operand (FO), Execute Instruction (EI) and Write Operand (WO). The stage delays for FI, DI, FO, EI and WO are 5 ns, 7 ns, 10 ns, 8 ns and 6 ns,\text{5 ns, 7 ns, 10 ns, 8 ns and 6 ns}, respectively. There are intermediate storage buffers after each stage …
Official PYQ2012Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
A computer has a 256256-KByte\text{KByte}, 4-way set associative, write back data cache with block size of 3232 Bytes\text{Bytes}. The processor sends 3232 bit\text{bit} addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 22 valid bits, 11 modified bit and 11 replacement bit. The size of the …
Official PYQ2012Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
A computer has a 256-KByte256\text{-KByte}, 4-way set associative, write back data cache with block size of 32-Bytes32\text{-Bytes}. The processor sends 32-bit32\text{-bit} addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 22 valid bits, 11 modified bit and 11 replacement bit. The number of bits in the tag …
Official PYQ2012Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Register renaming is done in pipelined processors:
Official PYQ2011Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
An 8KB8\text{KB} direct-mapped write-back cache is organized as multiple blocks, each size of 32-bytes32\text{-bytes}. The processor generates 32-bit32\text{-bit} addresses. The cache controller contains the tag information for each cache block comprising of the following. 11 valid bit 11 modified bit As many bits as the minimum needed to identify the …
Official PYQ2011Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Consider an instruction pipeline with four stages (S1, S2, S3 and S4)\text{(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. What is the approximate speed up of the pipeline in steady state under …
Official PYQ2011Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
On a non-pipelined sequential processor, a program segment, which is the part of the interrupt service routine, is given to transfer 500500 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 …
Official PYQ2011Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a hypothetical processor with an instruction of type LW R1, 20(R2)\text{LW R1, 20(R2)}, which during execution reads a 32-bit32\text{-bit} word from memory and stores it in a 32-bit32\text{-bit} register R1\text{R1}. The effective address of the memory location is obtained by the addition of a constant 2020 and the contents of register R2\text{R2}. Which …
Official PYQ2010Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
A computer system has an L1L1 cache, an L2L2 cache, and a main memory unit connected as shown below. The block size in L1L1 cache is 44 words. The block size in L2L2 cache is 1616 words. The memory access times are 22 nanoseconds, 2020 nanoseconds and 200200 nanoseconds for L1L1 cache, L2L2 cache and the main memory unit respectively. …
Official PYQ2010Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
A computer system has an L1L1 cache, an L2L2 cache, and a main memory unit connected as shown below. The block size in L1L1 cache is 44 words. The block size in L2L2 cache is 1616 words. The memory access times are 22 nanoseconds, 2020 nanoseconds and 200200 nanoseconds for L1L1 cache, L2L2 cache and the main memory unit respectively. …
Official PYQ2010Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
A 5−5-stage pipelined processor has Instruction Fetch (IF), Instruction Decode (ID), Operand Fetch (OF), Perform Operation (PO) and Write Operand (WO) stages. The IF, ID, OF and WO stages take 11 clock cycle each for any instruction. The PO stage takes 11 clock cycle for ADD and SUB instructions, 33 clock cycles for MUL instruction and 66 clock …
Official PYQ2009Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a 44-way set associative cache (initially empty) with total 1616 cache blocks. The main memory consists of 256256 blocks and the request for memory blocks are in the following order: 0,255,1,4,3,8,133,159,216,129,63,8,48,32,73,92,155.0, 255, 1, 4, 3, 8, 133, 159, 216, 129, 63, 8, 48, 32, 73, 92, 155. Which one of the following memory block will NOT be in cache if LRU replacement policy is …
Official PYQ2009Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Consider a 44 stage pipeline processor. The number of cycles needed by the four instructions I1,I2,I3,I4I1, I2, I3, I4 in stages S1,S2,S3,S4S1, S2, S3, S4 is shown below: …
Official PYQ2009Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
A CPU generally handles an interrupt by executing an interrupt service routine:
Official PYQ2008Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a machine with a 22-way set associative data cache of size 6464 Kbytes and block size 1616 bytes. The cache is managed using 3232 bit virtual addresses and the page size is 44 Kbytes. A program to be run on this machine begins as follows: double ARR[1024][1024]; int i, j; /*Initialize array ARR to 0.0 */ for(i = 0; i < 1024; i++) …
Official PYQ2008Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a machine with a 22-way set associative data cache of size 6464 Kbytes and block size 1616 bytes. The cache is managed using 3232 bit virtual addresses and the page size is 44 Kbytes. A program to be run on this machine begins as follows: double ARR[1024][1024]; int i, j; /*Initialize array ARR to 0.0 */ for(i = 0; i < 1024; i++) …
Official PYQ2008Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Delayed branching can help in the handling of control hazards The following code is to run on a pipelined processor with one branch delay slot: I1: ADD R2←R7+R8R2 \leftarrow R7 + R8 I2: Sub R4←R5–R6R4 \leftarrow R5 – R6 I3: ADD R1←R2+R3R1 \leftarrow R2 + R3 I4: STORE Memory [R4]←R1[R4] \leftarrow R1 BRANCH to Label if R1==0R1 == 0 Which of the instructions I1, I2, I3 or I4 …
Official PYQ2008Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Delayed branching can help in the handling of control hazards For all delayed conditional branch instructions, irrespective of whether the condition evaluates to true or false,
Official PYQ2008Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a machine with a 22-way set associative data cache of size 64Kbytes64\text{Kbytes} and block size 16bytes16\text{bytes}. The cache is managed using 32  bit32\;\text{bit} virtual addresses and the page size is 4Kbytes4\text{Kbytes}. A program to be run on this machine begins as follows: double ARR[1024][1024]; int i, j; /*Initialize array ARR to 0.0 */ for(i = …