Test 3 - Computer Organization and Architecture | Computer Science

Computer Organization & Architecture Quiz

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

A low memory can be connected to 8085 by using

  1. INTER
  2. RESET IN
  3. HOLD
  4. READY
Question 2 Multiple Choice (Single Answer)

More than one word are put in one cache block to

  1. Exploit the temporal locality of reference in a program
  2. Exploit the spatial locality of reference in a program
  3. Reduce the miss penalty
  4. None of the above
Question 3 Multiple Choice (Single Answer)

A processor needs software interrupt to

  1. Test the interrupt system of the processor.
  2. Implement co-routines.
  3. Obtain system services which need execution of privileged instructions.
  4. Return from subroutine.
Question 4 Multiple Choice (Single Answer)

Suppose a processor does not have any stack pointer register. Which of the following statements is true?

  1. It cannot have subroutine call instruction.
  2. It can have subroutine call instruction, but no nested subroutine calls.
  3. Nested subroutine calls are possible, but interrupts are not.
  4. All sequences of subroutine calls and also interrupts are possible.
Question 5 Multiple Choice (Single Answer)

A CPU has two modes-privileged and non-privileged. In order to change the mode from privileged to non privileged.

  1. A hardware interrupt is needed.
  2. A software interrupt is needed.
  3. A privileged instruction (which does not generate an interrupt) is needed.
  4. A non-privileged instruction (Which does not generate an interrupt) is needed.
Question 6 Multiple Choice (Single Answer)

Which of the following does not interrupt a running process?

  1. A device
  2. Timer
  3. Scheduler process
  4. Power failure
Question 7 Multiple Choice (Single Answer)

Which of the following requires a device driver?

  1. Register
  2. Cache
  3. Main memory
  4. Disk
Question 8 Multiple Choice (Single Answer)

The process of assigning load addresses to the various parts of the program and adjusting the code and date in the program to reflect the assigned addresses is called

  1. Assembly
  2. Parsing
  3. Relocation
  4. Symbol resolution
Question 9 Multiple Choice (Single Answer)

A device employing INTR line for device interrupt puts the CALL instruction on the data bus while

  1. INTA is active
  2. HOLD is active
  3. READY is active
  4. None of the above
Question 10 Multiple Choice (Single Answer)

In 8085 which of the following modifies the program counter?

  1. Only PCHL instruction
  2. Only ADD instructions
  3. Only JMP and CALL instructions
  4. All instructions
Question 11 Multiple Choice (Single Answer)

Which is the most appropriate match for the items in the first column with the items in the second column?
(X) Indirect Addressing (I) Array implementation
(Y) Indexed Addressing (II) Writing re-locatable code
(Z) Base Register Addressing (III) Passing array as parameter

  1. (X, III) (Y, I) (Z, II)
  2. (X, II) (Y, III) (Z, I)
  3. (X, III) (Y, II) (Z, I)
  4. (X, I) (Y, III) (Z, II)
Question 12 Multiple Choice (Single Answer)

In the absolute the addressing mode

  1. The operand is inside the instruction
  2. The address of the operand is inside the instruction
  3. The register containing the address of the operand is specified inside the instruction
  4. The location of the operand is implicit
Question 13 Multiple Choice (Single Answer)

In serial data transmission, every byte of data is padded with a '0' in the beginning and one or two '1's at the end of byte because

  1. Receiver is to be synchronized for byte reception
  2. Receiver recovers lost '0's and '1' from these padded bits
  3. Padded bits are useful in parity computation.
  4. None of the above
Question 14 Multiple Choice (Single Answer)

Which of the following is not a form of memory?

  1. Instruction cache
  2. Instruction register
  3. Instruction opcode
  4. Translation-a-side buffer
Question 15 Multiple Choice (Single Answer)

Horizontal microprogramming

  1. Does not require use of signal decoders
  2. Results in larger sized microinstructions than vertical microprogramming
  3. Uses one bit for each control signal
  4. All of the above
Question 16 Multiple Choice (Single Answer)

In the C language

  1. At most one activation record exists between the current activation record and the activation record for the main.
  2. The number of activation records between the current activation record and the activation record for the main depends on the actual function calling sequence.
  3. The visibility of global variables depends on the actual function calling sequence.
  4. Recursion requires the activation record for the recursive function to be saved on a different stack before the recursive fraction can be called.
Question 17 Multiple Choice (Single Answer)

The performance of a pipelined processor suffers if

  1. The pipelined stages have different delays
  2. Consecutive instructions are dependent on each other
  3. The pipeline stages share hardware resources
  4. All the above
Question 18 Multiple Choice (Single Answer)

Which of the following addressing modes are suitable for program relocation at run time?

  1. Absolute addressing
  2. Based addressing
  3. Relative addressing
  4. Indirect addressing
  1. 1 and 4
  2. 1 and 2
  3. 2 and 3
  4. 1, 2 and 4
Question 19 Multiple Choice (Single Answer)

Consider the following data path of a simple non-pipelined CPU. The registers A, B, A1, A2, MDR the bus and the ALU are 8 - bit wide. SP and MAR are 16-bit registers. The MUX is of size 8 x (2 : 1) and the DEMUX is of size 8 x (1 : 2). Each memory operation takes 2 CPU clock cycles and uses MAR (Memory Address Register) and MDR (Memory Date Register). SP can be decremented locally.


The CPU instruction “push r”, where A or B, has the specification
M [SP] $\leftarrow$r
SP $\leftarrow$ SP $\leftarrow$1
How many CPU clock cycles are needed to execute the “push r” instruction?

  1. 2
  2. 3
  3. 4
  4. 5
Question 20 Multiple Choice (Single Answer)

Consider a multiplexer with X and Y as data inputs and Z as control input's = 0 selects input X, and Z = 1 selects input Y. What are the connection required to realize the 2 - variable Boolean function f = T + R, without using any additional hardware?

  1. R to X, 1 to Y, T to Z
  2. T to X, R to Y, T to Z
  3. T to X, R to Y, 0 to Z
  4. R to X, 0 to Y, T to Z