Below Computer Architecture quiz are Multiple Choice Questions (MCQs) type Quiz. These Computer Architecture MCQ Questions helps you to refresh your Computer Architecture, you can see the correct option by clicking on it. .
1. Consider the grammar rule E → E1 - E2 for arithmetic expressions. The code generated is targeted to a CPU having a single user register. The subtraction operation requires the first operand to be in the register. If E1 and E2 do not have any common sub expression, in order to get the shortest possible code
E1 should be evaluated first
E2 should be evaluated first
Evaluation of E1 and E2 should necessarily be interleaved
E2 should be evaluated first
2. The system bus consists of
Data bus
Data bus and address bus
Data bus and control bus
Data bus, control bus and address bus
3. Which memory unit has the lowest access time?
Cache
Main memory
Magnetic disk
Registers
4. A processor that has carry, overflow and sign flag bits as part of its program status word (PSW) performs addition of the following two 2's complement numbers 01001101 and 11101001. After the execution of this addition operation, the status of the carry, overflow and sign flags, respectively will be:
1, 1, 0
1, 0, 0
0, 1, 0
1, 0, 0
5. The 2' s complement representation of the decimal value - 15 is