• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Computer Organization and Architecture

Question 1

Where does the swap space reside?
  • RAM
  • Disk
  • ROM
  • On-chip cache

Question 2

The Boolean function with the Karnaugh map q6 is:
  • (A+C).D+B
  • (A+B).C+D
  • (A+D).C+B
  • (A+C).B+D

Question 3

The amount of ROM needed to implement a 4 bit multiplier is
  • 64 bits
  • 128 bits
  • 1 Kbits
  • 2 Kbits

Question 4

In a k-way set associative cache, the cache is divided into v sets, each of which consists of k lines. The lines of a set are placed in sequence one after another. The lines in set s are sequenced before the lines in set (s+1). The main memory blocks are numbered 0 onwards. The main memory block numbered j must be mapped to any one of the cache lines from.
  • (j mod v) * k to (j mod v) * k + (k-1)
  • (j mod v) to (j mod v) + (k-1)
  • (j mod k) to (j mod k) + (v-1)
  • (j mod k) * v to (j mod k) * v + (v-1)

Question 5

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?
  • Instruction fetch
  • Operand fetch
  • Conditional branch
  • Initiation of interrupt service

Question 6

Consider an instruction pipeline with five stages without any branch prediction: Fetch Instruction (FI), Decode Instruction (DI), Fetch Operand (FO), Execute Instruction (EI) and Write Operand (WO). The stage delays for FI, DI, FO, EI and WO are 5 ns, 7 ns, 10 ns, 8 ns and 6 ns, respectively. There are intermediate storage buffers after each stage and the delay of each buffer is 1 ns. A program consisting of 12 instructions I1, I2, I3, …, I12 is executed in this pipelined processor. Instruction I4 is the only branch instruction and its branch target is I9. If the branch is taken during the execution of this program, the time (in ns) needed to complete the program is

  • 132

  • 165

  • 176

  • 328

Question 7

A RAM chip has a capacity of 1024 words of 8 bits each (1K × 8). The number of 2 × 4 decoders with enable line needed to construct a 16K × 16 RAM from 1K × 8 RAM is
  • 4
  • 5
  • 6
  • 7

Question 8

The following code segment is executed on a processor which allows only register operands in its instructions. Each instruction can have atmost two source operands and one destination operand. Assume that all variables are dead after this code segment.
   c = a + b;
   d = c * a;
   e = c + a;
   x = c * c;
   if (x > a) {
      y = a * a;
   }
   else {
     d = d * d;
     e = e * e;
  }
Suppose the instruction set architecture of the processor has only two registers. The only allowed compiler optimization is code motion, which moves statements from one place to another while preserving correctness. What is the minimum number of spills to memory in the compiled code?
  • 0
  • 1
  • 2
  • 3

Question 9

Consider the same data as above question. What is the minimum number of registers needed in the instruction set architecture of the processor to compile this code segment without any spill to memory? Do not apply any optimization other than optimizing register allocation.

  • 3

  • 4

  • 5

  • 6

Question 10

A computer has a 256 KByte, 4-way set associative, write back data cache with block size of 32 Bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 2 valid bits, 1 modified bit and 1 replacement bit. The number of bits in the tag field of an address is
  • 11
  • 14
  • 16
  • 27

There are 241 questions to complete.

Last Updated :
Take a part in the ongoing discussion