Sample Paper CS501
Sample Paper CS501
FINALTERM EXAMINATION
Fall 2022
CS501 – Advance Computer Architecture
Time: 90 min
Marks: 60
A. Bytecodes
B. Instruction Set
C. Mnemonics
D. Opcodes
Answer B)
From the given subsets of the systems, to which subset does a computer
belong?
a) Mechanical System
b) Electrical System
c) Optical System
d) Biological System
Answer b)
A) Instruction Set
B) Control Signals
C) I/O mechanisms
D) I/O mechanics
E) Memory addressing modes
Answer: B)
Question No: 4 (Marks: 01) - Please choose the correct option
Which one of the following is the highest level of abstraction in digital design in which
the computer architect views the system for the description of system components and
their interconnections?
Answer: A)
Answer B)
Which one of the following is the highest level of abstraction in digital design in
which the computer architect views the system for the description of system
components and their interconnections?
Answer A)
Which one of the following instructions is used to load register from memory using a
relative address?
A) la
B) lar
C) ldr
D) str
Answer C)
In which of the following instructions, the data moves between a register in the processor
and a memory location (or another register)?
A) Arithmetic/logic
B) Load/store
C) Test/branch
D) None of the given
Answer B)
Almost every commercial computer has its own particular ---------- language
A) 3GL
B) English language
C) Higher level language
D) Assembly language
Answer: D)
A) 4-bit
B) 6-bit
C) 8-bit
D) 16-bit
Answer B)
Which of the following are the code size and the Number of bytes accessed from
memory, respectively for a 2-address instruction?
A) 4 bytes, 7 bytes
B) 7 bytes, 16 bytes
C) 10 bytes, 19 bytes
D) 13 bytes, 22 bytes
Answer B)
Which of the following are the code size and the Number of bytes accessed from
memory, respectively for a 3-address instruction?
A) 0 bytes, 10 bytes
B) 4 bytes, 7 bytes
C) 7 bytes, 16 bytes
D) 10 bytes, 19 bytes
Answer D)
Almost every commercial computer has its own particular ---------- language
A) 3GL
B) English language
C) Higher level language
D) Assembly language
Answer D)
Answer A)
Which one of the following are the code size and the Number of memory bytes
respectively for a 2-address instruction?
A) 4 bytes, 7 bytes
B) 7 bytes, 16 bytes
C) 10 bytes, 19 bytes
D) 13 bytes, 22 bytes
Answer B)
Which one of the following is an address (binary bit pattern) issued by CPU?
A) Memory
B) Effective
C) Base
D) Next instruction
Answer: B)
Which one of the following are the code size and the Number of memory bytes
respectively for a 3-address instruction?
A) 0 bytes, 10 bytes
B) 4 bytes, 7 bytes
C) 7 bytes, 16 bytes
D) 10 bytes, 19 bytes
Answer D)
In which of the following instructions the data move between a register in the processor
and a memory location (or another register) and are also called data movement?
A) Arithmetic/logic
B) Load/store
C) Test/branch
D) None of the given
Answer B)
Which of the following statements is/are true about RISC processors’ claimed advantages
over CISC processors? (a) Keeping regularly accessed variables in registers as opposed to
keeping them in memory facilitates faster execution. (b) RISC CPUs outperform CISC
CPU’s in procedural programming environments. (c) Instruction pipelining has helped
RISC CPU’s to attain a target of 1 cycle per instruction. (d) It is easier to maintain the
“family concept” in RISC CPUs.
Answer A)
A) It will load the register R3 with the contents of the memory location M [PC+58]
B) It will load the register R3 with the relative address itself (PC+58).
C) It will store the register R3 contents to the memory location M [PC+58]
D) No operation
Answer A)
Question No: 22 (Marks: 01) - Please choose the correct option
A) It will load the register R3 with the contents of the memory location M [PC+36]
B) It will load the register R3 with the relative address itself (PC+36).
C) It will store the register R3 contents to the memory location M [PC+36]
D) No operation
Answer B)
A) 8
B) 16
C) 32
D) 64
Answer C)
a) la
b) lar
c) ld
d) None of the given
Answer A)
3 ALU registers
4 ALU registers
1 ALU registers
2 ALU registers
Answer B)
Question No: 26 (Marks: 01) - Please choose the correct option
The instruction ---------------will load the register R3 with the contents of the memory
location M [PC+56]
A) Add R3, 56
B) lar R3, 56
C) ldr R3, 56
D) str R3, 56
Answer C)
The data movement instructions ___________ data within the machine and to or from
input/output devices.
A) Store
B) Load
C) Move
D) None of given
Answer C)
A) Current instruction
B) Next instruction
C) Previous instruction
D) Next and current instruction
Answer A)
Which of the following bits of SRC instruction are used to hold an operand, an address
index, or a branch target register?
Answer C)
Which operator is used to “name” registers, or part of registers, in the Register Transfer
Language (RTL)?
A) &
B) :=
C) :
D) ,
Answer B)
a) Current instruction
b) Next instruction
c) Previous instruction
d) Next and current instruction
Answer A)
A) Assembly Language
B) OOP(Object Oriented Language)
C) RTL (Register Transfer Language)
D) UML(Unified Modeling language)
Answer C)
A) 25
B) 30
C) 20
D) 24
Answer C)
Answer: A)
Which of the following can be defined as an address of the operand in a computer type
instruction or the target address in a branch type instruction?
A) Base address
B) Binary address
C) Effective address
D) All of the given
Answer C)
A) Data
B) Digital
C) Dynamic
D) Double
Answer A)
Answer A)
A) Logic
B) Shift
C) Arithmetic
D) Data Transfer
Answer C)
A) Shiftl
B) Store
C) Halt
D) Call
Answer C)
A) 1 byte
B) 4 byte
C) 2 byte
D) 8 byte
Answer C)
[06 sample questions each of Marks 03]
Answer:
The following three key components define any instruction set architecture.
Answer:
Answer:
1. Register
2. Immediate
3. Relative
Answer:
1. Register
2. Immediate
3. Relative
In context of uni-bus SRC data path implementation, discuss the function of following
units.
1.Registers A and C
2.ALSU (Arithmetic Logic Shift Unit)
Solution:
Registers A and C
The registers A and C are required to hold an operand or result value while the bus is
busy transmitting some other value. Both these registers are programmer invisible.
ALSU
There is a 32-bit Arithmetic Logic Shift Unit, as shown in the diagram. It takes input
from memory or registers via the bus, computes the result according to the control signals
applied to it, and places it in the register C, from where it is finally transferred to its
destination.
Answer:
The general-purpose register file includes 32 registers R0 to R31 each 32 bit wide. These
registers communicate with other components via the internal processor bus.
2. MAR
The Memory Address Register takes input from the ALSU as the address of the memory
location to be accessed and transfers the memory contents on that location onto the
memory sub-system.
3. MBR
The Memory Buffer Register has a bi-directional connection with both the memory sub-
system and the registers and ALSU. It holds the data during its transmission to and from
memory.
4. PC
The Program Counter holds the address of the next instruction to be executed. Its value is
incremented after loading of each instruction. The value in PC can also be changed based
on a branch decision in ALSU. Therefore, it has a bi-directional connection with the
internal processor bus.
5. IR
The Instruction Register holds the instruction that is being executed. The instruction
fields are extracted from the IR and transferred to the appropriate registers according to
the external circuitry (not shown in this diagram).
6. Registers A and C
The registers A and C are required to hold an operand or result value while the bus is
busy transmitting some other value. Both these registers are programmer invisible.
7. ALSU
There is a 32-bit Arithmetic Logic Shift Unit, as shown in the diagram. It takes input
from memory or registers via the bus, computes the result according to the control signals
applied to it, and places it in the register C, from where it is finally transferred to its
destination.
Answer:
1) SPARC introduced the concept of overlapping register windows to avoid the procedure call
and return delays.
2) The register set is divided into groups, and only a subset of it is visible to the programmer at a
given time.
3) There are 120 registers in total, with first 8 devoted to global variables and remaining 112 for
register window system.
4) Using register windows, parameters are passed between procedures at zero cost.
What are the two privilege levels in Motorola MC68000 microprocessor? Explain the
difference between these levels.
Answer:
The MC68000 has two privilege levels:
1. Supervisor
2. User
When the S bit of status register is 1, the processor is in Supervisor state, the machine is
in supervisor mode. In supervisor mode, all the machine instructions can be executed,
including privileged instructions that allow manipulation of the status word and the
system stack pointer, A7'.
When S = 0, these privileged instructions cannot be executed.
How one can differentiate between Branch Hazards and Structural Hazards?
Answer:
Branch Hazards
The instruction following a branch is always executed whether the branch is taken. This
is called the branch delay slot. The compiler might issue a “nop” instruction in the branch
delay slot. Branch delays cannot be avoided by forwarding schemes.
Structural Hazards
A structural hazard occurs when attempting to access the same resource in different ways
at the same time. It occurs when the hardware is not enough to implement pipelining
properly e.g. when the machine does not support separate data and instruction memories.