GATE CS Computer Organization & Architecture Previous Year Questions

60 solved GATE CS questions on Computer Organization & Architecture, drawn from 7 exam years and grouped by year. Every question shows the official answer and a step-by-step solution.

Want to practise this topic and ask follow-up questions? Explore Success Tracker.

Revision companion

Computer Organization: trace the datapath, then count the cycles

Identify the instruction format, datapath stages, and memory hierarchy parameters before computing execution time or hit rates. These selected foundations connect instruction sets, pipelining, caches, and I/O without replacing a full architecture course.

Our study notes and original examples support the PYQs below; they are not official exam questions or a replacement for the current syllabus.

Before you start

  • Binary arithmetic, logical shifts, and basic digital logic concepts.
  • Assembly-level understanding of load, store, add, and branch instructions.

Concepts to revise before solving

Instruction execution and datapath

Each instruction goes through fetch, decode, execute, memory access, and writeback stages. The cycle time of a single-cycle processor equals the slowest instruction's total delay. A multi-cycle design lets different instructions take different numbers of cycles.

Check yourself: Which stages does the current instruction actually use?

Pipelining and hazards

Pipelining overlaps stages of consecutive instructions. Data hazards occur when an instruction needs a result not yet written back. Forwarding can resolve some hazards without stalling. Control hazards from branches may require flushing, prediction, or delayed branching. Pipeline speedup approaches the number of stages only for long instruction streams.

Check yourself: Does forwarding resolve this hazard, or is a stall still required?

Cache organization

A cache with 2^s sets and associativity A holds A × 2^s blocks. An address splits into tag, set index, and block offset fields. A direct-mapped cache (A = 1) has no placement choice within a set; fully associative has one set. Conflict misses occur only when A < total blocks.

Check yourself: How many bits are in the offset, index, and tag fields?

Cache performance

Average memory access time = hit time + miss rate × miss penalty. Compulsory misses occur on the first access to a block. Capacity misses occur when the working set exceeds cache size. Increasing associativity reduces conflict misses but may increase hit time.

Check yourself: Are you using the local miss rate or the global miss rate for multi-level caches?

Virtual memory and I/O

Virtual memory translates virtual addresses to physical frames through page tables. TLBs cache recent translations. Page faults service from disk, so their penalty is orders of magnitude larger than a cache miss. I/O can be memory-mapped or port-based; DMA transfers data without CPU intervention per word.

Check yourself: Is the page in physical memory, or does this access cause a page fault?

Mistakes to avoid

Ignoring pipeline stalls when calculating CPI.
Ideal CPI of 1 assumes no hazards; add stall cycles from data and control hazards.
Using the total cache size as the number of sets.
Number of sets = total blocks / associativity; each set holds A blocks.
Treating TLB miss rate as the page fault rate.
A TLB miss triggers a page table walk; a page fault occurs only if the page is not in memory.

Original teaching example · not a PYQ

Work through the reasoning

Original mini-example: a direct-mapped cache has 64 blocks, each 16 bytes. Byte addresses are 16 bits. Find the number of tag, index, and offset bits.

  1. Block offset: 16 bytes = 2^4, so 4 offset bits.
  2. Index: 64 sets (direct-mapped, so sets = blocks) = 2^6, so 6 index bits.
  3. Tag: 16 − 6 − 4 = 6 tag bits.
  4. Verify: 2^6 tags × 2^6 sets × 2^4 bytes = 2^16 addressable bytes, matching the 16-bit address space.

6 tag bits, 6 index bits, 4 offset bits.

Try it before reading the answer

A processor has a cache hit time of 2 ns, miss rate of 10%, and miss penalty of 50 ns. What is the average memory access time?

Show answer and reasoning

7 ns.

AMAT = 2 + 0.10 × 50 = 2 + 5 = 7 ns. The hit time applies to every access; the miss penalty applies only to the 10% that miss.

Go deeper with free learning resources

Supplemental reading, not an official GATE reading list or an endorsement of these notes.

Apply this to the previous-year questions

Previous-year questions by year

This page shows 60 recent questions from the released archive, newest first. For older questions and complete papers, browse all GATE CS papers. Questions can carry more than one subject tag; counts are not marks weightage.

GATE CS 202612 questions

  1. Set 1 Q14Match each addressing mode in List I with a data element or an element of a data structure (in a high-level language) in List II: | List I | List II |…MCQ · +1 marks · Easy
  2. Set 1 Q15Consider a processor P whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any…MCQ · +1 marks · Easy
  3. Set 1 Q16Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?MCQ · +1 marks · Easy
  4. Set 1 Q38The size of the physical address space of a processor is 2322^{32} bytes. The capacity of a cache memory unit is 2232^{23} bytes. The cache block size is 128…MCQ · +2 marks · Medium
  5. Set 1 Q54Consider a system that has a cache memory unit and a memory management unit (MMU). The address input to the cache memory is a physical address. The MMU has a…MSQ · +2 marks · Medium
  6. Set 1 Q59Consider a hard disk with a rotational speed of 1500015000 rpm. The time to move the read/write head from a track to its adjacent track is 11 millisecond.…NAT · +2 marks · Hard
  7. Set 1 Q60The EX stage of a pipelined processor performs the memory read operations for LOAD instructions, and the operations for the arithmetic and logic instructions.…NAT · +2 marks · Hard
  8. Set 2 Q18Consider the following two statements about interrupt handling mechanisms in a CPU. S1: In non-vectored interrupt mechanism, it usually takes more time to…MCQ · +1 marks · Medium
  9. Set 2 Q44Consider a processor that has 16 general purpose registers and it uses 2-byte instruction format for all its instructions. Variable-sized opcodes are…MCQ · +2 marks · Medium
  10. Set 2 Q52Consider a system with a processor and a 4 KB direct mapped cache with block size of 16 bytes. The system has a 16 MB physical memory. Four words P, Q, R, and…MSQ · +2 marks · Hard
  11. Set 2 Q56Consider a system with 1 MB physical memory and a word length of 1 byte. The system uses a direct mapped cache, with block numbers starting from 0. The word…NAT · +2 marks · Hard
  12. Set 2 Q57A non-pipelined instruction execution unit that operates at 1.6 GHz clock takes an average of 5 clock cycles to complete the execution of an instruction. To…NAT · +2 marks · Medium

GATE CS 202511 questions

  1. Set 1 Q11Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the…MCQ · +1 marks · Easy
  2. Set 1 Q27A partial data path of a processor is given in the figure, where RA, RB, and RZ are 32-bit registers. Which option(s) is/are CORRECT related to arithmetic…MSQ · +1 marks · Medium
  3. Set 1 Q36Consider a memory system with 1M1\text{M} bytes of main memory and 16K16\text{K} bytes of cache memory. Assume that the processor generates 2020-bit memory…MCQ · +2 marks · Medium
  4. Set 1 Q37A processor has 6464 general-purpose registers and 5050 distinct instruction types. An instruction is encoded in 3232-bits. What is the maximum number of bits…MCQ · +2 marks · Medium
  5. Set 1 Q53A computer has a memory hierarchy consisting of two-level cache (L1 and L2) and a main memory. If the processor needs to access data from memory, it first…NAT · +2 marks · Medium
  6. Set 2 Q28Which of the following is/are part of an Instruction Set Architecture of a processor?MSQ · +1 marks · Easy
  7. Set 2 Q32The following two signed 2’s complement numbers (multiplicand M and multiplier Q) are being multiplied using Booth’s algorithm: MM: 1100 1101 1110 1101 and…NAT · +1 marks · Medium
  8. Set 2 Q39For a direct-mapped cache, 4 bits are used for the tag field and 12 bits are used to index into a cache block. The size of each cache block is one byte. Assume…MCQ · +2 marks · Medium
  9. Set 2 Q55Given a computing system with two levels of cache (L1 and L2) and a main memory. The first level (L1) cache access time is 1 nanosecond (ns) and the “hit rate”…NAT · +2 marks · Medium
  10. Set 2 Q56A 5-stage instruction pipeline has stage delays of 180, 250, 150, 170, and 250, respectively, in nanoseconds. The delay of an inter-stage latch is 10…NAT · +2 marks · Medium
  11. Set 2 Q61An application executes 6.4×1086.4 \times 10^8 number of instructions in 6.36.3 seconds. There are four types of instructions, the details of which are given in the…NAT · +2 marks · Medium

GATE CS 202412 questions

  1. Set 1 Q15Which one of the following statements is FALSE?MCQ · +1 marks · Easy
  2. Set 1 Q30Consider a 5-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Register Writeback (WB)…MSQ · +1 marks · Medium
  3. Set 1 Q53Consider two set-associative cache memory architectures: WBC, which uses the write back policy, and WTC, which uses the write through policy. Both of…MSQ · +2 marks · Medium
  4. Set 1 Q54Consider a 512 GB hard disk with 32 storage surfaces. There are 4096 sectors per track and each sector holds 1024 bytes of data. The number of cylinders in the…NAT · +2 marks · Medium
  5. Set 1 Q55The baseline execution time of a program on a 2 GHz single core machine is 100 nanoseconds (ns). The code corresponding to 90% of the execution time can be…NAT · +2 marks · Medium
  6. Set 1 Q56A given program has 25% load/store instructions. Suppose the ideal CPI (cycles per instruction) without any memory stalls is 2. The program exhibits 2% miss…NAT · +2 marks · Medium
  7. Set 2 Q11Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from a device to main memory through cycle stealing at regular…MCQ · +1 marks · Medium
  8. Set 2 Q31An instruction format has the following structure: Instruction Number: Opcode destination reg, source reg-1, source reg-2 Consider the following sequence of…MSQ · +1 marks · Easy
  9. Set 2 Q53Consider a disk with the following specifications: rotation speed of 6000 RPM, average seek time of 5 milliseconds, 500 sectors/track, 512-byte sectors. A file…NAT · +2 marks · Hard
  10. Set 2 Q57A processor with 16 general purpose registers uses a 32-bit instruction format. The instruction format consists of an opcode field, an addressing mode field,…NAT · +2 marks · Medium
  11. Set 2 Q58A non-pipelined instruction execution unit operating at 2 GHz takes an average of 6 cycles to execute an instruction of a program P. The unit is then…NAT · +2 marks · Medium
  12. Set 2 Q61A processor uses a 32-bit instruction format and supports byte-addressable memory access. The ISA of the processor has 150 distinct instructions. The…NAT · +2 marks · Medium

GATE CS 20235 questions

  1. Set 1 Q33Consider a 3-stage pipelined processor having a delay of 10 ns (nanoseconds), 20 ns, and 14 ns, for the first, second, and the third stages, respectively.…NAT · +1 marks · Easy
  2. Set 1 Q34A keyboard connected to a computer is used at a rate of 1 keystroke per second. The computer system polls the keyboard every 10 ms (milli seconds) to check for…NAT · +1 marks · Medium
  3. Set 1 Q41Consider the given C-code and its corresponding assembly code, with a few operands U1–U4 being unknown. Some useful information as well as the semantics of…MCQ · +2 marks · Medium
  4. Set 1 Q42A 4 kilobyte (KB) byte-addressable memory is realized using four 1 KB memory blocks. Two input address lines (IA4 and IA3) are connected to the chip select…MCQ · +2 marks · Medium
  5. Set 1 Q64An 8-way set associative cache of size 64 KB64\text{ KB} (1 KB=1024 bytes1\text{ KB} = 1024\text{ bytes}) is used in a system with 32-bit address. The address is sub-divided…NAT · +2 marks · Medium

GATE CS 20225 questions

  1. Set 1 Q17Which one of the following facilitates transfer of bulk data from hard disk to main memory with the highest throughput?MCQ · +1 marks · Easy
  2. Set 1 Q24Let WB and WT be two set associative cache organizations that use LRU algorithm for cache block replacement. WB is a write back cache and WT is a write through…MSQ · +1 marks · Medium
  3. Set 1 Q33A cache memory that has a hit rate of 0.8 has an access latency 10 ns and miss penalty 100 ns. An optimization is done on the cache to reduce the miss rate.…NAT · +1 marks · Medium
  4. Set 1 Q54Consider a system with 2 KB direct mapped data cache with a block size of 64 bytes. The system has a physical address space of 64 KB and a word length of 16…MSQ · +2 marks · Hard
  5. Set 1 Q61A processor X1X_1 operating at 2 GHz has a standard 5-stage RISC instruction pipeline having a base CPI (cycles per instruction) of one without any pipeline…NAT · +2 marks · Medium

GATE CS 20218 questions

  1. Set 1 Q32Consider 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…NAT · +1 marks · Easy
  2. Set 1 Q63A five-stage pipeline has stage delays of 150, 120, 150, 160 and 140 nanoseconds. The registers that are used between the pipeline stages have a delay of 5…NAT · +2 marks · Medium
  3. Set 1 Q65Consider the following instruction sequence where registers R1, R2 and R3 are general purpose and MEMORY[X] denotes the content at the memory location X. |…NAT · +2 marks · Hard
  4. Set 2 Q29Consider a set-associative cache of size 2KB (1KB = 2102^{10} bytes) with cache block size of 64 bytes. Assume that the cache is byte-addressable and a 32-bit…NAT · +1 marks · Medium
  5. Set 2 Q30Consider a computer system with DMA support. The DMA module is transferring one 8-bit character in one CPU cycle from a device to memory through *cycle…NAT · +1 marks · Medium
  6. Set 2 Q37Assume a two-level inclusive cache hierarchy, L1 and L2, where L2 is the larger of the two. Consider the following statements. S1S_1: Read misses in a write…MCQ · +2 marks · Medium
  7. Set 2 Q54If the numerical value of a 2-byte unsigned integer on a little endian computer is 255 more than that on a big endian computer, which of the following choices…MSQ · +2 marks · Hard
  8. Set 2 Q63Consider a pipelined processor with 5 stages, Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Write Back (WB). Each…NAT · +2 marks · Hard

GATE CS 20207 questions

  1. Set 1 Q13Consider the following statements. I. Daisy chaining is used to assign priorities in attending interrupts. II. When a device raises a vectored interrupt, the…MCQ · +1 marks · Easy
  2. Set 1 Q14Consider the following data path diagram. [figure] Consider an instruction: R0←R1+R2\text{R0} \leftarrow \text{R1} + \text{R2}. The following steps are used to…MCQ · +1 marks · Medium
  3. Set 1 Q31A direct mapped cache memory of 1 MB has a block size of 256 bytes. The cache has an access time of 3 ns and a hit rate of 94%. During a cache miss, it takes…NAT · +1 marks · Medium
  4. Set 1 Q40A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of…MCQ · +2 marks · Medium
  5. Set 1 Q45Consider the following five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time. (P,…MCQ · +2 marks · Medium
  6. Set 1 Q53Consider a non-pipelined processor operating at 2.5 GHz. It takes 5 clock cycles to complete an instruction. You are going to make a 5-stage pipeline out of…NAT · +2 marks · Hard
  7. Set 1 Q54A processor has 64 registers and uses 16-bit instruction format. It has two types of instructions: I-type and R-type. Each I-type instruction contains an…NAT · +2 marks · Medium

Other GATE CS topics

Continue learning with Success Tracker

Keep working on Computer Organization & Architecture

Reading a solution is a useful start. In Success Tracker, you can attempt questions yourself, review mistakes and return to the topics that need another pass.

AI-powered practice· Unlimited practice on eligible plans
PYQs with solutions
Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
Practice that adapts
Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
AI doubt support
Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.

Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.

This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.