chapter
    Computer Organization and Architecture Practice Questions for GATE CS

    GATE CS Computer Organization and Architecture: 6 chapters, 66 previous year questions (100% of Computer Organization and Architecture), 1032 practice questio

    A question from this chapter

    Question 1
    Level 3: Exam Standard

    Consider an -bit 2's complement adder computing . Let and be the sign bits of the operands, be the sign bit of the result, be the carry into the sign bit position, and be the carry out of the sign bit position.

    Which of the following combinations of is IMPOSSIBLE?

    Question 2
    Level 3: Exam Standard

    An Instruction Set Architecture (ISA) specification explicitly defines the following hardware-software contract:

    1. The processor provides exactly general-purpose registers, each bits wide.
    2. All arithmetic and logical instructions must specify exactly three register operands (two sources, one destination).
    3. Load and Store instructions specify exactly one register operand and one signed immediate offset.
    4. The Program Counter (PC) is maintained by the hardware and is not accessible as a general-purpose register.

    Based strictly on this ISA contract, which of the following is IMPOSSIBLE to support or execute?

    Question 3
    Level 3: Exam Standard

    A non-pipelined processor P1 has a CPI of 5 and operates at 1 GHz. It is redesigned into a 5-stage pipelined processor P2 operating at 2 GHz. For a specific program, the instruction mix is 50% ALU (0 stall cycles), 30% Load (2 stall cycles), and 20% Branch (1 stall cycle). Based on this information, which ONE of the following observations is CORRECT?

    Question 4
    Level 3: Exam Standard

    A system uses a VIPT (Virtual Index, Physical Tag) cache with a page size of KB and a cache block size of bytes. The maximum number of sets the cache can have, such that the synonyms problem is guaranteed not to occur, is ________.

    Question 5
    Level 3: Exam Standard

    A processor uses a vectored interrupt mechanism. The interrupt vector table is stored in a dedicated memory region of bytes. Each entry in the table is a -bit address pointing to the corresponding Interrupt Service Routine (ISR). The hardware interrupt controller uses a priority encoder that generates a -bit interrupt identifier to index into this table. What is the MAXIMUM number of distinct interrupt sources that can be uniquely vectored to their ISRs without requiring any software polling to resolve the source?

    Question 6
    Level 3: Exam Standard

    Consider a disk pack with 5 platters. The top and bottom surfaces are reserved for protection. The total capacity of the disk is exactly ( bytes). The number of sectors per track is a power of 2 and lies strictly between 1000 and 2000. Each sector holds 512 bytes.

    Which of the following statements are true?

    I. The number of sectors per track is uniquely determined to be 1024.

    II. The number of cylinders is 2097152.

    III. The number of cylinders is 2621440.

    IV. The total number of tracks on the disk is 20971520.

    Free preview ends here

    Login to view the complete practice 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 Practice Questions for GATE CS

    GATE CS Computer Organization and Architecture: 6 chapters, 66 previous year questions (100% of Computer Organization and Architecture), 1032 practice questions and one solved question from each chapter.

    About Computer Organization and Architecture Practice Questions

    1032 practice questions for Computer Organization and Architecture in GATE CS, sorted chapter by chapter and graded from basic to exam level, each with a full solution.

    Computer Organization and Architecture Weightage in GATE CS

    Computer Organization and Architecture accounts for 66 of 66 Computer Organization and Architecture previous year questions in our bank (100%), about 6.6 per paper across 10 papers.

    Computer Organization and Architecture Chapter Matrix

    ChapterTopicsPYQsShare of unit PYQsPractice questions
    Number Representation and Computer ArithmeticSigned Integer Representation and Arithmetic Overflow, Booth Multiplication Algorithm, IEEE 754 Encoding, Decoding and Special Values, IEEE 754 Floating-Point Arithmetic, Endianness and Byte Ordering1421%198
    Instruction Set, Datapath and Memory OrganizationInstruction Set Architecture and Instruction Encoding, Addressing Modes and Effective Address Computation, Load-Store Architecture and Assembly Translation, Memory Block Organization and Address Decoding, Processor Datapath and Operand Selection1117%192
    Processor Performance, Pipelining and HazardsPipeline Timing, Latency and Throughput, Pipeline CPI, Clock Rate and Stall Performance, Data Dependencies, Hazards and Forwarding, Control Hazards and Branch Prediction, Parallel Speedup and Multicore Performance1320%200
    Cache Memory, Memory Hierarchy and Address TranslationDirect-Mapped Cache Addressing and Tag Calculation, Set-Associative Cache Organization and Associativity, Cache Access Sequences and Conflict Misses, Cache Write Policies, Allocation and Replacement, Cache Performance and Effective Memory Access Time, TLB, Virtual Memory and Cache Interaction1827%274
    Input-Output, Interrupts and DMAInterrupt Processing and Priority Mechanisms, DMA Modes, Throughput and Bulk Data Transfer, Polling and I/O Processing Overhead711%121
    Secondary Storage and Disk PerformanceDisk Geometry, Capacity and Cylinders, Disk Access Time, Seek and Rotational Latency35%47

    More from Computer Organization and Architecture

    One Solved Question from Each Computer Organization and Architecture Chapter

    Question 1 · Number Representation and Computer Arithmetic MCQ

    Consider an -bit 2's complement adder computing . Let and be the sign bits of the operands, be the sign bit of the result, be the carry into the sign bit position, and be the carry out of the sign bit position.

    Which of the following combinations of is IMPOSSIBLE?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is a hardware logic elimination question. You must use the fundamental full-adder equation at the Most Significant Bit (MSB) position to check the physical validity of each carry and sign bit combination.

    Step 1: Write the addition equation for the MSB (bit ).

    The sum bit and the carry out are determined by:

    where all variables are either 0 or 1.

    Step 2: Test Option A:

    Substitute into the equation: .

    This is mathematically valid. (This represents Pos + Pos = Neg, an overflow condition).

    Step 3: Test Option B:

    Substitute: .

    This is mathematically valid. (This represents Neg + Neg = Pos, an overflow condition).

    Step 4: Test Option C:

    Substitute: .

    This is mathematically valid. (This represents Pos + Neg = Neg, no overflow).

    Step 5: Test Option D:

    Substitute: .

    This is a mathematical contradiction. It is physically impossible for the adder to produce a sum bit of 1 and a carry out of 0 when both operands and the carry in are 0.

    Answer: D

    Question 2 · Instruction Set, Datapath and Memory Organization MCQ

    An Instruction Set Architecture (ISA) specification explicitly defines the following hardware-software contract:

    1. The processor provides exactly general-purpose registers, each bits wide.
    2. All arithmetic and logical instructions must specify exactly three register operands (two sources, one destination).
    3. Load and Store instructions specify exactly one register operand and one signed immediate offset.
    4. The Program Counter (PC) is maintained by the hardware and is not accessible as a general-purpose register.

    Based strictly on this ISA contract, which of the following is IMPOSSIBLE to support or execute?

    1. A.

      An instruction that computes the sum of R1 and R2, and writes the result to R3.

    2. B.

      An instruction that loads a 32-bit word from the memory address (R4 + 200) into R5.

    3. C.

      An instruction that adds a 16-bit immediate value directly to R1 and writes the result to R2.

    4. D.

      A microarchitectural design that uses the same physical ALU hardware to calculate effective addresses for Load instructions and to perform register-to-register addition.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: The ISA defines the strict boundary of what software can request. Any instruction format that violates the explicit operand rules of the contract is impossible to encode or execute.

    Step 1: Evaluate Option A. "Sum of R1 and R2, writes to R3". This uses exactly three register operands. This perfectly matches Rule 2. (Possible).

    Step 2: Evaluate Option B. "Load from (R4 + 200) into R5". This uses one register (R4) and one 16-bit immediate (200). This perfectly matches Rule 3. (Possible).

    Step 3: Evaluate Option C. "Adds 16-bit immediate to R1, writes to R2". This uses two registers and one immediate. This violates Rule 2, which strictly requires THREE register operands for all arithmetic instructions. (IMPOSSIBLE).

    Step 4: Evaluate Option D. "Same physical ALU for address calculation and arithmetic". This describes the microarchitecture (hardware implementation), not the ISA. The ISA does not restrict hardware reuse. (Possible).

    Answer: C

    Question 3 · Processor Performance, Pipelining and Hazards MCQ

    A non-pipelined processor P1 has a CPI of 5 and operates at 1 GHz. It is redesigned into a 5-stage pipelined processor P2 operating at 2 GHz. For a specific program, the instruction mix is 50% ALU (0 stall cycles), 30% Load (2 stall cycles), and 20% Branch (1 stall cycle). Based on this information, which ONE of the following observations is CORRECT?

    1. A.

      The speedup of P2 over P1 is exactly 5, which is equal to the number of pipeline stages.

    2. B.

      The speedup of P2 over P1 is greater than the ratio of their clock frequencies.

    3. C.

      If the branch stall penalty is doubled, the speedup of P2 over P1 will fall below 4.0.

    4. D.

      The actual CPI of P2 is 1.8, making its execution time exactly 2.5 times faster than P1.

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: This is a performance observation question requiring you to calculate the actual CPI and execution time for both processors, then compare the speedup against theoretical bounds and alternative scenarios.

    Exam route: Calculate execution time per instruction for P1 and P2. Compute actual speedup. Evaluate each statement based on these values.

    Learning route:

    Step 1: P1 execution time per instruction = .

    Step 2: P2 actual CPI = .

    Step 3: P2 execution time per instruction = .

    Step 4: Speedup of P2 over P1 = .

    Step 5: Evaluate Option A: Speedup is 5.55, not 5. (False)

    Step 6: Evaluate Option B: Ratio of clock frequencies = . Since , this statement is True.

    Step 7: Evaluate Option C: If branch penalty is 2, P2 CPI = . P2 time = . Speedup = . This is not below 4.0. (False)

    Step 8: Evaluate Option D: Execution time ratio is 5.55, not 2.5. (False)

    Answer: B

    Question 4 · Cache Memory, Memory Hierarchy and Address Translation NAT

    A system uses a VIPT (Virtual Index, Physical Tag) cache with a page size of KB and a cache block size of bytes. The maximum number of sets the cache can have, such that the synonyms problem is guaranteed not to occur, is ________.

    Correct Answer:

    128.00

    Step-by-Step Solution

    Key idea: In a VIPT cache, synonyms are avoided when the index bits are a subset of the page offset bits. This gives the constraint .

    Step 1: Identify the given parameters.

    Page size bytes.

    Block size bytes.

    Step 2: Apply the VIPT constraint.

    .

    Step 3: Verify the boundary.

    At sets: index bits .

    Page offset bits .

    Block offset bits .

    Available for index bits.

    Since , the constraint is satisfied.

    Answer: 128.00

    Question 5 · Input-Output, Interrupts and DMA MCQ

    A processor uses a vectored interrupt mechanism. The interrupt vector table is stored in a dedicated memory region of bytes. Each entry in the table is a -bit address pointing to the corresponding Interrupt Service Routine (ISR). The hardware interrupt controller uses a priority encoder that generates a -bit interrupt identifier to index into this table. What is the MAXIMUM number of distinct interrupt sources that can be uniquely vectored to their ISRs without requiring any software polling to resolve the source?

    1. A.

      64

    2. B.

      128

    3. C.

      256

    4. D.

      32

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is a contradiction question testing the boundary constraints of a vectored interrupt system. The maximum number of sources is limited by the most restrictive hardware or memory constraint.

    Step 1: Calculate the maximum number of entries the memory table can hold.

    Table size = bytes. Each entry = bits = bytes.

    Table capacity = entries.

    Step 2: Calculate the maximum number of unique indices the hardware can generate.

    Hardware identifier = bits.

    Hardware capacity = unique indices.

    Step 3: Determine the binding constraint. The system can only support as many vectored sources as the hardware can uniquely identify, provided the table is large enough.

    Maximum sources = .

    Answer: 32

    Question 6 · Secondary Storage and Disk Performance MSQ

    Consider a disk pack with 5 platters. The top and bottom surfaces are reserved for protection. The total capacity of the disk is exactly ( bytes). The number of sectors per track is a power of 2 and lies strictly between 1000 and 2000. Each sector holds 512 bytes.

    Which of the following statements are true?

    I. The number of sectors per track is uniquely determined to be 1024.

    II. The number of cylinders is 2097152.

    III. The number of cylinders is 2621440.

    IV. The total number of tracks on the disk is 20971520.

    1. A.

      I, II, III

    2. B.

      I, III, IV

    3. C.

      II, III, IV

    4. D.

      I, II, III, IV

    Correct Answer:

    ["B"]

    Step-by-Step Solution

    Key idea: This is a bounding and constraint-satisfaction problem. The total capacity formula must yield an integer, which restricts the possible values of .

    Step 1: Determine usable surfaces ().

    The disk has 5 platters, but the top and bottom surfaces are reserved.

    surfaces.

    Step 2: Bound the sectors per track ().

    Total Capacity = bytes.

    Bytes per sector () = 512 = .

    Capacity per cylinder = .

    Number of cylinders = .

    For the number of cylinders to be an integer, must divide .

    We are given is a power of 2 and . The only power of 2 in this range is .

    Thus, Statement I is True.

    Step 3: Calculate cylinders and tracks.

    With :

    Number of cylinders = .

    Thus, Statement III is True, and Statement II is False.

    Total number of tracks = .

    Thus, Statement IV is True.

    Note: If you incorrectly ignored the reserved surfaces and used , you would get Cylinders = 2097152 (Statement II), but the Total Tracks would still be . Total tracks are invariant to the number of surfaces because .

    Answer: I, III, IV are true.