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 PYQ2016Computer Organization and ArchitectureInstruction PipeliningNAT · 1 mark
Consider a 3 GHz3 \ \text{GHz} (gigahertz) processor with a three stage pipeline and stage latencies τ1,τ2\large\tau_1,\tau_2 and τ3\large\tau_3 such that τ1=3τ24=2τ3\large\tau_1 =\dfrac{3 \tau_2}{4}=2\tau_3. If the longest pipeline stage is split into two pipeline stages of equal latency , the new frequency is __________ GHz\text{GHz}, ignoring delays in the …
Official PYQ2016Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 1 mark
A processor has 4040 distinct instruction and 2424 general purpose registers. A 3232-bit instruction word has an opcode, two registers operands and an immediate operand. The number of bits available for the immediate operand field is_______.
Official PYQ2015Computer Organization and ArchitectureInstruction PipeliningNAT · 1 mark
Consider a non-pipelined processor with a clock rate of 2.52.5 gigahertz and average cycles per instruction of four. The same processor is upgraded to a pipelined processor with five stages; but due to the internal pipeline delay, the clock speed is reduced to 22 gigahertz. Assume that there are no stalls in the pipeline. The speedup achieved in this …
Official PYQ2015Computer Organization and ArchitectureInstruction PipeliningNAT · 1 mark
Consider the sequence of machine instruction given below: MULR5, R0, R1DIVR6, R2, R3ADDR7, R5, R6SUBR8, R7, R4\begin{array}{ll} \text{MUL} & \text{R5, R0, R1} \\ \text{DIV} & \text{R6, R2, R3} \\ \text{ADD} & \text{R7, R5, R6} \\ \text{SUB} & \text{R8, R7, R4} \\ \end{array} In the above sequence, R0R0 to R8R8 are general purpose registers. In the instructions shown, the first register …
Official PYQ2015Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a processor with byte-addressable memory. Assume that all registers, including program counter (PC) and Program Status Word (PSW), are size of two bytes. A stack in the main memory is implemented from memory location (0100)16(0100)_{16} and it grows upward. The stack pointer (SP) points to the top element of the stack. The current value of SP is …
Official PYQ2015Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
Assume that for a certain processor, a read request takes 50 nanoseconds50\:\text{nanoseconds} on a cache miss and 5 nanoseconds5\:\text{nanoseconds} on a cache hit. Suppose while running a program, it was observed that 80%80\% of the processor's read requests result in a cache hit. The average read access time in nanoseconds is ______.
Official PYQ2015Computer Organization and ArchitectureInstruction PipeliningNAT · 1 mark
Consider the following reservation table for a pipeline having three stages S1,S2 and S3S_1, S_2 \text{ and } S_3. …
Official PYQ2015Computer Organization and ArchitecturePipeline HazardsMCQ · 1 mark
Consider the following code sequence having five instructions from I1 to I5I_1 \text{ to } I_5. Each of these instructions has the following format. OP Ri, Rj, Rk Where operation OP is performed on contents of registers Rj and Rk and the result is stored in register Ri. I1I_1: ADD R1, R2, R3 I2I_2: MUL R7, R1, R3 I3I_3: SUB R4, R1, R5 I4I_4: ADD R3, R2, …
Official PYQ2015Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a machine with a byte addressable main memory of 2202^{20} bytes, block size of 1616 bytes and a direct mapped cache having 2122^{12} cache lines. Let the addresses of two consecutive bytes in main memory be (E201F)16\textsf{(E201F)}_{16} and (E2020)16\textsf{(E2020)}_{16}. What are the tag and cache line addresses ( in hex) for main memory address …
Official PYQ2014Computer Organization and ArchitectureInstruction PipeliningNAT · 1 mark
Consider two processors P1P_1 and P2P_2 executing the same instruction set. Assume that under identical conditions, for the same input, a program running on P2P_2 takes 25%\text{25\%} less time but incurs 20%\text{20\%} more CPI (clock cycles per instruction) as compared to the program running on P1P_1. If the clock frequency of P1P_1 is …
Official PYQ2014Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
An access sequence of cache block addresses is of length NN and contains n unique block addresses. The number of unique block addresses between two consecutive accesses to the same block address is bounded above by kk. What is the miss ratio if the access sequence is passed through a cache of associativity A≥kA\geq k exercising least-recently-used …
Official PYQ2014Computer Organization and ArchitectureInstruction PipeliningNAT · 1 mark
Consider a 66-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is executing on this 66-stage pipeline, the speedup achieved with respect to non-pipelined execution if 2525% of the instructions incur 22 pipeline stall cycles is ____________
Official PYQ2014Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 1 mark
A machine has a 32-bit32\text{-bit} architecture, with 1-word1\text{-word} long instructions. It has 6464 registers, each of which is 3232 bits long. It needs to support 4545 instructions, which have an immediate operand in addition to two register operands. Assuming that the immediate operand is an unsigned integer, the maximum value of the immediate …
Official PYQ2014Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
If the associativity of a processor cache is doubled while keeping the capacity and block size unchanged, which one of the following is guaranteed to be NOT affected?
Official PYQ2014Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
In designing a computer's cache system, the cache block (or cache line) size is an important parameter. Which one of the following statements is correct in this context?
Official PYQ2014Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A 44-way set-associative cache memory unit with a capacity of 1616 KB is built using a block size of 88 words. The word length is 3232 bits. The size of the physical address space is 44 GB. The number of bits for the TAG field is ____
Official PYQ2014Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
The memory access time is 11 nanosecond for a read operation with a hit in cache, 55 nanoseconds for a read operation with a miss in cache, 22 nanoseconds for a write operation with a hit in cache and 1010 nanoseconds for a write operation with a miss in cache. Execution of a sequence of instructions involves 100100 instruction fetch operations, …
Official PYQ2014Computer Organization and ArchitectureInstruction PipeliningNAT · 1 mark
An instruction pipeline has five stages, namely, instruction fetch (IF), instruction decode and register fetch (ID/RF), instruction execution (EX), memory access (MEM), and register writeback (WB) with stage latencies 11 ns, 2.22.2 ns, 22 ns, 11 ns, and 0.750.75 ns, respectively (ns stands for nanoseconds). To gain in terms of frequency, the …
Official PYQ2014Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Consider the following processors (ns stands for nanoseconds). Assume that the pipeline registers have zero latency. P1:\text{P1:} Four-stage pipeline with stage latencies 1 ns, 2 ns, 2 ns, 1 ns\text{1 ns, 2 ns, 2 ns, 1 ns}. P2:\text{P2:} Four-stage pipeline with stage latencies 1 ns, 1.5 ns, 1.5 ns, 1.5 ns\text{1 ns, 1.5 ns, 1.5 ns, 1.5 ns}. P3:\text{P3:} Five-stage pipeline with stage latencies …
Official PYQ2013Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
Consider the following sequence of micro-operations. MBR ← PC MAR ← X PC ← Y Memory ← MBR Which one of the following is a possible operation performed by this sequence?