chapter
    Computer Organization and Architecture Practice Questions 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
    Level 1: Warm-up

    What is the maximum positive integer that can be represented in a 12-bit 2's complement system?

    Question 2
    Level 1: Warm-up

    Consider the following Assertion (A) and Reason (R) regarding array translation in a generic load-store assembly language without auto-scaling addressing modes:

    Assertion (A): To access the -th element of an array of 16-bit integers, the index must be multiplied by 2 before adding to the base address.

    Reason (R): The memory is byte-addressable, meaning each address points to an 8-bit unit, so a 16-bit element spans 2 addressable units.

    Which of the following is correct?

    Question 3
    Level 1: Warm-up

    Statement 1: The theoretical maximum speedup of a -stage pipeline is bounded by , assuming ideal conditions with no stalls.

    Statement 2: When calculating the actual speedup of a pipelined processor, the increase in clock cycle time due to latch overhead can be ignored if the number of pipeline stages is sufficiently large.

    Which of the following is correct?

    Question 4
    Level 1: Warm-up

    A processor uses 32-bit addresses and has a 128 KB, 8-way set-associative cache. The block size is not specified but is known to be a power of two. What is the number of bits in the tag field?

    Question 5
    Level 1: Warm-up

    During the interrupt handling cycle, immediately after the CPU finishes the currently executing instruction, what is the next critical hardware action performed?

    Question 6
    Level 1: Warm-up

    A disk has 8 surfaces, 500 cylinders, and 100 sectors per track. Each sector holds 512 bytes. What is the minimum number of bytes required to store data on exactly one full cylinder of this disk?

    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: 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 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.

    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 MCQ

    What is the maximum positive integer that can be represented in a 12-bit 2's complement system?

    1. A.

      2048

    2. B.

      4095

    3. C.

      4096

    4. D.

      2047

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: In 2's complement, the range is asymmetric. The maximum positive value uses all bits except the sign bit.

    Step 1: Recall the formula for the maximum positive value in -bit 2's complement.

    Maximum positive value =

    Step 2: Substitute .

    Maximum positive value =

    Step 3: Calculate .

    Step 4: Subtract 1.

    Answer: (Option D)

    Question 2 · Instruction Set, Datapath and Memory Organization MCQ

    Consider the following Assertion (A) and Reason (R) regarding array translation in a generic load-store assembly language without auto-scaling addressing modes:

    Assertion (A): To access the -th element of an array of 16-bit integers, the index must be multiplied by 2 before adding to the base address.

    Reason (R): The memory is byte-addressable, meaning each address points to an 8-bit unit, so a 16-bit element spans 2 addressable units.

    Which of the following is correct?

    1. A.

      Both A and R are true, and R is the correct explanation of A.

    2. B.

      Both A and R are true, but R is NOT the correct explanation of A.

    3. C.

      A is true, but R is false.

    4. D.

      A is false, but R is true.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: Effective address calculation requires scaling the element index by the element size in bytes.

    Step 1: Evaluate Assertion (A). In a generic assembly without auto-scaling, the programmer must manually compute the byte offset. For 16-bit (2-byte) integers, the index must indeed be multiplied by 2. (A is True).

    Step 2: Evaluate Reason (R). Modern main memory is byte-addressable. An 8-bit unit is 1 byte. A 16-bit integer occupies 2 bytes, hence it spans 2 addressable units. (R is True).

    Step 3: Check the link. Does R explain A? Yes. The manual multiplication by 2 in A is required specifically <b>because</b> memory is byte-addressable and the element is 2 bytes wide (as stated in R).

    Answer: Both A and R are true, and R is the correct explanation of A.

    Question 3 · Processor Performance, Pipelining and Hazards MCQ

    Statement 1: The theoretical maximum speedup of a -stage pipeline is bounded by , assuming ideal conditions with no stalls.

    Statement 2: When calculating the actual speedup of a pipelined processor, the increase in clock cycle time due to latch overhead can be ignored if the number of pipeline stages is sufficiently large.

    Which of the following is correct?

    1. A.

      Statement 1 only

    2. B.

      Statement 2 only

    3. C.

      Both statements

    4. D.

      Neither statement

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a bounding question evaluating the fundamental constraints of pipeline speedup calculations.

    Step 1: Evaluate Statement 1. In an ideal pipeline with no stalls and no clock rate change, the speedup is exactly . This is the theoretical upper bound. Statement 1 is true.

    Step 2: Evaluate Statement 2. Latch overhead increases the clock cycle time, which directly reduces the clock rate and thus the actual speedup. This overhead is a physical constraint and can never be ignored in exact speedup calculations, regardless of the number of stages. Statement 2 is false.

    Step 3: Conclude that only Statement 1 is true.

    Answer: A

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

    A processor uses 32-bit addresses and has a 128 KB, 8-way set-associative cache. The block size is not specified but is known to be a power of two. What is the number of bits in the tag field?

    1. A.

      15

    2. B.

      16

    3. C.

      20

    4. D.

      18

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: When block size is not given, use the cancellation trick — block size terms cancel out in the calculation. The Cancellation Trick: Step 1: Apply the formula. Tag = Tag = Tag = Tag = bits. Why this works: Index bits = Offset bits = Index + Offset = Tag = Address - (Index + Offset) = Address - Answer: 18 bits.
    Question 5 · Input-Output, Interrupts and DMA MCQ

    During the interrupt handling cycle, immediately after the CPU finishes the currently executing instruction, what is the next critical hardware action performed?

    1. A.

      The CPU disables the cache memory to prevent data corruption.

    2. B.

      The CPU clears the instruction pipeline and fetches the first instruction of the ISR.

    3. C.

      The CPU saves the current Program Counter (PC) and Processor Status Word (PSW) to the stack or a dedicated register.

    4. D.

      The CPU sends an interrupt acknowledge (INTA) signal to all connected devices.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a sequence question testing the exact hardware steps of the interrupt handling cycle.

    Step 1: When an interrupt arrives, the CPU cannot abort the current instruction mid-execution without corrupting the system state. Thus, it must first finish the current instruction.

    Step 2: Before the CPU can jump to the Interrupt Service Routine (ISR), it must remember where it was in the main program so it can return later.

    Step 3: To do this, the hardware automatically saves the Program Counter (PC), which holds the return address, and the Processor Status Word (PSW), which holds the condition codes and interrupt enable flags.

    Step 4: Only after the context is safely saved does the CPU load the PC with the ISR address.

    Answer: C

    Question 6 · Secondary Storage and Disk Performance MCQ

    A disk has 8 surfaces, 500 cylinders, and 100 sectors per track. Each sector holds 512 bytes. What is the minimum number of bytes required to store data on exactly one full cylinder of this disk?

    1. A.

      409,600

    2. B.

      204,800,000

    3. C.

      819,200

    4. D.

      4,096,000

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a contradiction question testing the Master Capacity Equation, specifically isolating the capacity of a single cylinder.

    Step 1: Recall that a cylinder spans all surfaces. The capacity of one cylinder is the number of surfaces multiplied by the sectors per track multiplied by the bytes per sector.

    Step 2: Identify the given values: , , .

    Step 3: Calculate the capacity of one cylinder: bytes.

    Step 4: Note that the 500 cylinders given in the problem is extra information for this specific question, as we only need the capacity of <i>one</i> cylinder.

    Answer: 409,600.