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 PYQ2006Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
A CPU has a five-stage pipeline and runs at 11 GHz frequency. Instruction fetch happens in the first stage of the pipeline. A conditional branch instruction computes the target address and evaluates the condition in the third stage of the pipeline. The processor stops fetching new instructions following a conditional branch until the branch outcome is …
Official PYQ2006Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
A CPU has a cache with block size 6464 bytes. The main memory has kk banks, each bank being cc bytes wide. Consecutive cc − byte chunks are mapped on consecutive banks with wrap-around. All the kk banks can be accessed in parallel, but two accesses to the same bank must be serialized. A cache block access may involve multiple iterations of …
Official PYQ2006Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
A CPU has 2424-bitbit instructions. A program starts at address 300300 (in decimal). Which one of the following is a legal program counter (all values in decimal)?
Official PYQ2005Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
Consider the following data path of a CPU.\text{CPU}. The ALU,\text{ALU}, the bus and all the registers in the data path are of identical size. All operations including incrementation of the PC\text{PC} and the GPRs\text{GPRs} are to be carried out in the ALU.\text{ALU}. Two clock cycles are needed for memory read operation – the first one for loading …
Official PYQ2005Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following data path of a CPU.\text{CPU}. The ALU,\text{ALU}, the bus and all the registers in the data path are of identical size. All operations including incrementation of the PC\text{PC} and the GPRs\text{GPRs} are to be carried out in the ALU.\text{ALU}. Two clock cycles are needed for memory read operation – the first one for loading …
Official PYQ2005Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
A device with data transfer rate 1010 KB/sec is connected to a CPU. Data is transferred byte-wise. Let the interrupt overhead be 4μ4\musec. The byte transfer time between the device interface register and CPU or memory is negligible. What is the minimum performance gain of operating the device under interrupt mode over operating it under …
Official PYQ2005Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
Consider a disk drive with the following specifications: 1616 surfaces, 512512 tracks/surface, 512512 sectors/track, 11 KB/sector, rotation speed 30003000 rpm. The disk is operated in cycle stealing mode whereby whenever one 44 byte word is ready it is sent to memory; similarly, for writing, the disk interface reads a 44 byte word from the …
Official PYQ2005Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
A 55 stage pipelined CPU has the following sequence of stages: IF – instruction fetch from instruction memory RD – Instruction decode and register read EX – Execute: ALU operation for data and address computation MA – Data memory access – for write access, the register read at RD state is used. WB – Register write back Consider the following sequence of …
Official PYQ2005Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a direct mapped cache of size 3232 KBKB with block size 3232 bytesbytes. The CPUCPU generates 3232 bitbit addresses. The number of bits needed for cache indexing and the number of tag bits are respectively,
Official PYQ2005Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Match each of the high level language statements given on the left hand side with the most natural addressing mode from those listed on the right hand side. …
Official PYQ2005Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a three word machine instruction ADDA[R0],@B\text{ADD} A[R_0], @B The first operand (destination) “A[R0]”“A[R_0]” uses indexed addressing mode with R0R_0 as the index register. The second operand (source) “@B”“@B” uses indirect addressing mode. AA and BB are memory addresses residing at the second and third words, respectively. The first word of the …
Official PYQ2004Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following program segment for a hypothetical CPU having three user registers R1,R2R_1, R_2 and R3.R_3. \begin{array}{|l|l|c|} \hline \text {Instruction} & \text{Operation }& \text{Instruction size (in Words)} \\\hline \text{MOV R1,5000R_1,5000} & \text{R1R1} \leftarrow \text{Memory[5000][5000]}& \text{22} \\\hline\text{MOV …
Official PYQ2004Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
A 4-stage pipeline has the stage delays as 150150, 120120, 160160 and 140140 nanosecondsnanoseconds, respectively. Registers that are used between the stages have a delay of 55 nanosecondsnanoseconds each. Assuming constant clocking rate, the total time taken to process 10001000 data items on this pipeline will be:
Official PYQ2004Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
A hard disk with a transfer rate of 1010 Mbytes/second is constantly transferring data to memory using DMA. The processor runs at 600600 MHz, and takes 300300 and 900900 clock cycles to initiate and complete DMA transfer respectively. If the size of the transfer is 2020 Kbytes, what is the percentage of processor time consumed for the transfer …
Official PYQ2004Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
The microinstructions stored in the control memory of a processor have a width of 2626 bits. Each microinstruction is divided into three fields: a micro-operation field of 1313 bits, a next address field (X),(X), and a MUX select field (Y).(Y). There are 88 status bits in the input of the MUX. How many bits are there in the XX and YY fields, and …
Official PYQ2004Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a small two-way set-associative cache memory, consisting of four blocks. For choosing the block to be replaced, use the least recently used (LRU) scheme. The number of cache misses for the following sequence of block addresses is: 8,12,0,12,88, 12, 0, 12, 8.
Official PYQ2004Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following program segment for a hypothetical CPU having three user registers R1,R2R_1, R_2 and R3.R_3. …
Official PYQ2004Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Which of the following addressing modes are suitable for program relocation at run time? Absolute addressing Based addressing Relative addressing Indirect addressing
Official PYQ2004Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a system with a two-level paging scheme in which a regular memory access takes 150150 nanosecondsnanoseconds, and servicing a page fault takes 88 millisecondsmilliseconds. An average instruction takes 100100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 9090%, and the page fault rate is one in every 10,00010,000 instructions. What is …
Official PYQ2003Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following assembly language program for a hypothetical processor A,B,A, B, and CC are 88 bit registers. The meanings of various instructions are shown as comments. MOV B, #0 ; B←0B \leftarrow 0 MOV C, #8 ; C←8C \leftarrow 8 Z: CMP C, #0 ; compare C with 0 JZ X ; jump to X if zero flag is set SUB C, #1 ; C←C−1C \gets C-1 RRC A, #1 ; right …