chapter
    Computer Organization and Architecture PYQs for GATE CS

    GATE CS Computer Organization and Architecture: 1 units and 6 chapters, weightage from 66 previous year questions across 10 papers, a study order by exam weig

    A question from this chapter

    Question 1
    2026 Slot Set2 PYQ
    Level 3: Exam Standard

    The 32-bit IEEE 754 single precision representation of a number is 0xC2710000. The number in decimal representation is ________. <i>(rounded off to two decimal places)</i>

    Question 2
    2026 Slot Set2 PYQ
    Level 3: Exam Standard

    Consider a processor that has 16 general purpose registers and it uses 2-byte instruction format for all its instructions. Variable-sized opcodes are permitted. There are three different types of instructions; M-type, R-type, and C-type. Each M-type instruction has 2 register operands and a 6-bit immediate operand. Each R-type instruction has 3 register operands. Each C-type instruction has a register operand and a 6-bit offset value. If there are 2 unique M-type opcodes and 7 unique R-type opcodes, which one of the following options gives the maximum number of unique opcodes possible for C-type instructions?

    Question 3
    2026 Slot Set2 PYQ
    Level 3: Exam Standard
    A 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 improve the performance, the system was pipelined with a goal of achieving an average throughput of one instruction per clock cycle. However, it could operate only at 1.2 GHz due to pipeline overheads. While executing a program in the pipelined design, of instructions encountered a stall of 2 cycles due to pipeline hazards. The speed-up obtained by the pipelined design over the non-pipelined one for this program is ___________. (rounded off to two decimal places)

    Note:
    Question 4
    2026 Slot Set2 PYQ
    Level 4: Challenger
    Consider 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 with physical address 0xA2C28 is mapped to the cache block number . The maximum possible size of the cache (in KB) for this configuration is ___________. (answer in integer)

    Note: and
    Question 5
    2026 Slot Set2 PYQ
    Level 3: Exam Standard
    Consider the following two statements about interrupt handling mechanisms in a CPU.

    S1: In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine (ISR) when compared to that in a vectored interrupt mechanism.

    S2: In daisy-chain interrupt mechanism, the CPU polls all the input devices individually to determine the source of the interrupt.

    Which one of the following options is correct with respect to S1 and S2 ?
    Question 6
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a hard disk with a rotational speed of 15000 rpm. The time to move the read/write head from a track to its adjacent track is 1 millisecond. Initially, the head is on track 0. The number of sectors per track is 400. The sector size is 1024 bytes. It is necessary to transfer data from 10 randomly located sectors in each of the following tracks in the order: 5, 12 and 7.

    The total time for the data transfer (in milliseconds) from the hard disk is _________. (rounded off to one decimal place)
    Free preview ends here

    Login to view the complete previous-year questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Computer Organization and Architecture PYQs for GATE CS

    GATE CS Computer Organization and Architecture: 1 units and 6 chapters, weightage from 66 previous year questions across 10 papers, a study order by exam weight and 1032 practice questions.

    About Computer Organization and Architecture Previous Year Questions (PYQs)

    66 previous year questions from Computer Organization and Architecture in GATE CS, grouped by chapter with the exam year, answer key and step-by-step solution for each.

    GATE CS Computer Organization and Architecture Unit-wise Weightage from Past Papers

    We counted every GATE CS Computer Organization and Architecture previous year question in our bank (66 questions from 10 papers) and grouped them by unit.

    UnitChaptersPYQsShare of sectionAvg per paper
    Computer Organization and Architecture666100%6.6

    Suggested Computer Organization and Architecture Study Order for GATE CS

    1. Computer Organization and Architecture: 100% of past Computer Organization and Architecture questions, about 6.6 per paper.

    Start where the marks are. Units at the top of this list have appeared most often in past GATE CS papers.

    Units in GATE CS Computer Organization and Architecture

    All Computer Organization and Architecture chapters

    One Solved Question from Each Computer Organization and Architecture Chapter

    Question 1 · Number Representation and Computer Arithmetic · 2026_Set2 NAT

    The 32-bit IEEE 754 single precision representation of a number is 0xC2710000. The number in decimal representation is ________. <i>(rounded off to two decimal places)</i>

    Correct Answer:

    -60.25

    Step-by-Step Solution

    Key idea: Decode an IEEE 754 single-precision hexadecimal representation into its decimal equivalent by extracting the sign, exponent, and mantissa.

    Step 1: Convert the hex value 0xC2710000 to binary.

    C = 1100, 2 = 0010, 7 = 0111, 1 = 0001

    Binary: 1100 0010 0111 0001 0000 0000 0000 0000

    Step 2: Extract the fields.

    • Sign bit (1 bit): 1 (indicates a negative number).
    • Exponent field (8 bits): 10000100.
    • Mantissa field (23 bits): 11100010000000000000000.

    Step 3: Decode the exponent.

    Biased exponent = 10000100_2 = 132.

    Actual exponent = 132 - 127 (bias) = 5.

    Step 4: Decode the mantissa.

    The implicit leading bit is 1, so the significand is 1.1110001_2.

    Step 5: Calculate the decimal value.

    Value = -1 × (1.1110001_2) × 2^5

    Multiplying by 2^5 shifts the binary point 5 places to the right:

    1.1110001_2 × 2^5 = 111100.01_2

    Step 6: Convert binary to decimal.

    Integer part: 111100_2 = 32 + 16 + 8 + 4 = 60.

    Fractional part: .01_2 = 1/4 = 0.25.

    Combined value = -60.25.

    Question 2 · Instruction Set, Datapath and Memory Organization · 2026_Set2 MCQ

    Consider a processor that has 16 general purpose registers and it uses 2-byte instruction format for all its instructions. Variable-sized opcodes are permitted. There are three different types of instructions; M-type, R-type, and C-type. Each M-type instruction has 2 register operands and a 6-bit immediate operand. Each R-type instruction has 3 register operands. Each C-type instruction has a register operand and a 6-bit offset value. If there are 2 unique M-type opcodes and 7 unique R-type opcodes, which one of the following options gives the maximum number of unique opcodes possible for C-type instructions?

    1. A.

      8

    2. B.

      4

    3. C.

      64

    4. D.

      16

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is an expanding opcode instruction encoding question, recognisable by the mention of "variable-sized opcodes" and multiple instruction types with different operand counts.

    Why this method applies: In expanding opcode techniques, unused opcode patterns from a shorter opcode field are "expanded" into longer opcode fields by sacrificing operand bits. We must track the number of available patterns at each stage.

    Step 1: Analyze the base constraints.

    Total instruction length = 2 bytes = 16 bits.

    Number of registers = 16. Bits per register field = bits.

    Step 2: Analyze M-type instructions.

    Format: Opcode + 2 Register operands + 6-bit immediate.

    Operand bits = bits.

    Opcode bits = bits.

    Total possible 2-bit patterns = .

    M-type uses 2 opcodes.

    Remaining patterns for expansion = .

    Step 3: Analyze R-type instructions.

    Format: Opcode + 3 Register operands.

    Operand bits = bits.

    Opcode bits = bits.

    Each of the 2 remaining 2-bit patterns can be expanded into four-bit patterns.

    Total available 4-bit patterns = .

    R-type uses 7 opcodes.

    Remaining patterns for expansion = .

    Step 4: Analyze C-type instructions.

    Format: Opcode + 1 Register operand + 6-bit offset.

    Operand bits = bits.

    Opcode bits = bits.

    The 1 remaining 4-bit pattern can be expanded into six-bit patterns.

    Total available 6-bit patterns = .

    Therefore, the maximum number of unique C-type opcodes is 4.

    Answer: Option B.

    Question 3 · Processor Performance, Pipelining and Hazards · 2026_Set2 NAT
    A 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 improve the performance, the system was pipelined with a goal of achieving an average throughput of one instruction per clock cycle. However, it could operate only at 1.2 GHz due to pipeline overheads. While executing a program in the pipelined design, of instructions encountered a stall of 2 cycles due to pipeline hazards. The speed-up obtained by the pipelined design over the non-pipelined one for this program is ___________. (rounded off to two decimal places)

    Note:
    Correct Answer:

    2.34

    Step-by-Step Solution

    Key idea: This is a pipelining speedup NAT with clock rate change, recognisable because it gives the clock frequencies and CPI/stall information for both non-pipelined and pipelined designs.

    Step 1: Calculate the execution time per instruction for the non-pipelined design.

    Clock frequency GHz.

    Cycles per instruction .

    Time per instruction time units.

    Step 2: Calculate the execution time per instruction for the pipelined design.

    Clock frequency GHz.

    Base CPI = 1.

    Stall penalty: 30% of instructions encounter a 2-cycle stall.

    Average stall cycles per instruction = .

    Actual CPI .

    Time per instruction time units.

    Step 3: Calculate the speedup.

    Speedup = .

    Rounded to two decimal places, this is 2.34.

    Answer: 2.34

    Question 4 · Cache Memory, Memory Hierarchy and Address Translation · 2026_Set2 NAT
    Consider 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 with physical address 0xA2C28 is mapped to the cache block number . The maximum possible size of the cache (in KB) for this configuration is ___________. (answer in integer)

    Note: and
    Correct Answer:

    128.00

    Step-by-Step Solution

    Insight: This is a reverse-engineering problem — extract the index field from the address by matching the given cache block number, then maximise the index width.

    Exam route:

    1. Address = 0xA2C28 = 1010 0010 1100 0010 1000 (20 bits). Block number = 176.
    2. In direct-mapped cache, cache block number = index field of the address.
    3. Try offset = 6 (block = 64 B): address >> 6 = 10416. ✓.
    4. Maximise index: ✓. ✗.
    5. Max index = 11 bits. Cache = B = 128 KB.

    Answer: 128

    Learning route:

    This is a reverse-engineering question, recognisable because it gives a specific address and the cache block it maps to, and asks for the maximum cache size.

    In a direct-mapped cache, the cache block number equals the index field of the address. So we need to find offset and index bits such that the index field of 0xA2C28 equals 176.

    Step 1 — Convert to binary: 0xA2C28 = 1010 0010 1100 0010 1000 (20 bits).

    Step 2 — The address splits as [Tag | Index | Offset]. If offset = bits, then the index value is .

    Step 3 — Try offset = 6 (block = 64 B): . Check: ✓. So offset = 6, and 8 index bits gives block 176.

    Step 4 — Maximise index bits. We need .

    • : ✓
    • : ✓
    • : ✓
    • : ✗

    Maximum index = 11 bits.

    Step 5 — Cache size = B = 128 KB.

    Check: Tag = bits ≥ 1 ✓. Cache (128 KB) < Memory (1 MB) ✓.

    Note: The smart_notes worked example (card c007) uses a heuristic offset of 4 based on the last nibble, which gives 512 KB — but that is incorrect because with offset = 4, the index would be . The correct offset is 6, giving 128 KB.

    Question 5 · Input-Output, Interrupts and DMA · 2026_Set2 MCQ
    Consider the following two statements about interrupt handling mechanisms in a CPU.

    S1: In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine (ISR) when compared to that in a vectored interrupt mechanism.

    S2: In daisy-chain interrupt mechanism, the CPU polls all the input devices individually to determine the source of the interrupt.

    Which one of the following options is correct with respect to S1 and S2 ?
    1. A.

      Both S1 and S2 are true

    2. B.

      Both S1 and S2 are false

    3. C.

      S1 is true and S2 is false

    4. D.

      S1 is false and S2 is true

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is an interrupt mechanism comparison question, testing the definitions of vectored vs non-vectored interrupts and daisy-chaining.

    Step 1: Analyze S1. In a non-vectored interrupt, the hardware does not provide the ISR address. The CPU must execute a software routine (like polling) to identify the interrupt source, which takes more time. In a vectored interrupt, the hardware directly provides the vector address, making it faster. Thus, S1 is True.

    Step 2: Analyze S2. In a daisy-chain interrupt mechanism, the interrupt acknowledge signal is passed serially through a chain of devices. The device that requested the interrupt blocks the signal and places its vector address on the bus. The CPU does not individually poll all devices; the hardware chain resolves the priority. Thus, S2 is False.

    Step 3: Conclude that S1 is true and S2 is false.

    Answer: C

    Question 6 · Secondary Storage and Disk Performance · 2026_Set1 NAT
    Consider a hard disk with a rotational speed of 15000 rpm. The time to move the read/write head from a track to its adjacent track is 1 millisecond. Initially, the head is on track 0. The number of sectors per track is 400. The sector size is 1024 bytes. It is necessary to transfer data from 10 randomly located sectors in each of the following tracks in the order: 5, 12 and 7.

    The total time for the data transfer (in milliseconds) from the hard disk is _________. (rounded off to one decimal place)
    Correct Answer:

    77.30

    Step-by-Step Solution

    Insight: Sectors are randomly located within their respective tracks, so we seek to each track once, then pay rotational latency for each of the 10 sectors.

    Exam route: For each track, add seek time to . Sum the three tracks.

    Learning route:

    1. ms.
    2. ms.
    3. ms.
    4. Track 5: Seek from 0 to 5 = 5 ms. Data = ms. Total = 25.1 ms.
    5. Track 12: Seek from 5 to 12 = 7 ms. Data = 20.1 ms. Total = 27.1 ms.
    6. Track 7: Seek from 12 to 7 = 5 ms. Data = 20.1 ms. Total = 25.1 ms.
    7. Grand total = ms.