Professional Documents
Culture Documents
Interview Questions: 300+ Top Computer Organization & Architecture Mcqs and Answers
Interview Questions: 300+ Top Computer Organization & Architecture Mcqs and Answers
HOME Interview Questions MCQs *LAB VIVA CLASS NOTES SEMINAR TOPICS ONLINE TEST GATE CAT Internship
ABOUT US Privacy Policy
Home » Computer Organization and Architecture Multiple Choice Questions » 300+ TOP
Any Skill Search Her
Computer Organization & Architecture MCQs and Answers
(A) AB*CD*+
(B) A*BCD*+
(C) AB*CD+*
(D) A*B*CD+
Answer: A
(A) refers to a computer system capable of processing several programs at the same time.
(B) represents organization of single computer containing a control unit, processor unit and a memory
unit.
(C) includes many processing units under the supervision of a common control unit
Answer: C
(D) integers
Answer: C
4. Suppose that a bus has 16 data lines and requires 4 cycles of 250 nsecs each to
transfer data. The bandwidth of this bus would be 2 Megabytes/sec. If the cycle time
of the bus was reduced to 125 nsecs and the number of cycles required for transfer
(A) 1 Megabyte/sec
(B) 4 Megabytes/sec
(C) 8 Megabytes/sec
(D) 2 Megabytes/sec
Answer: D
5. Assembly language
(A) uses alphabetic codes in place of binary numbers used in machine language
Answer: A
Answer: D
7. The amount of time required to read a block of data from a disk into memory is
composed of seek time, rotational latency, and transfer time. Rotational latency
refers to
(A) the time its takes for the platter to make a full rotation
(B) the time it takes for the read-write head to move into position over the appropriate track
(C) the time it takes for the platter to rotate the correct sector under the head
Answer: A
8. What characteristic of RAM memory makes it not suitable for permanent storage?
(B) unreliable
(C) it is volatile
Answer: C
(A) giving programming versatility to the user by providing facilities as pointers to memory counters
for loop control
(C) specifying rules for modifying or interpreting address field of the instruction
Answer: D
(A) Register
(B) Encoder
(C) Decoder
Answer: D
Answer: B
12. The average time required to reach a storage location in memory and obtain its
contents is called the
Answer: C
Answer: B
Answer: A
15. Which of the following is lowest in memory hierarchy?
(C) Registers
(D) RAM
Ans
Answer: B
(A) Absolute
(B) indirect
(C) index
Answer: C
17. If memory access takes 20 ns with cache and 110 ns with out it, then the ratio (cache
uses a 10 ns memory) is
(A) 93%
(B) 90%
(C) 88%
(D) 87%
Answer: B
18. In a memory-mapped I/O system, which of the following will not be there?
(A) LDA
(B) IN
(C) ADD
(D) OUT
Answer: A
19. In a vectored interrupt.
(B) the interrupting source supplies the branch information to the processor through an interrupt
vector.
Answer: B
(A) SISD
(B) SIMD
(C) MIMD
(D) MISD
Answer: A
(A) Encoder
(B) OR gate
Answer: C
Answer: A
23. Write Through technique is used in which memory for updating the data
Answer: D
Answer: B
(A) (00100) 2
(B) (10100) 2
(C) (11001) 2
(D) (01100) 2
Answer: B
Answer: A
Answer: D
28. A Stack-organised Computer uses instruction of
(B) Two-addressing
Answer: C
29. If the main memory is of 8K bytes and the cache memory is of 2K words. It uses
associative mapping. Then each word of cache memory shall be
(A) 11 bits
(B) 21 bits
(C) 16 bits
(D) 20 bits
Answer: C
30 A-Flip Flop can be converted into T-Flip Flop by using additional logic circuit
(A) n TQD =•
(B) T D =
(C) D = T . Q n
(D) n TQD =?
Answer: D
(A) AACB
(B) 0000
(C) FFFF
(D) ABCD
Answer: C
32. When CPU is executing a Program that is part of the Operating System, it is said to
be in
Answer: B
Answer: D
Answer: C
Answer: D
Answer: B
37. PSW is saved in stack when there is a
Answer: A
38. The multiplicand register & multiplier register of a hardware circuit implementing
booth’s algorithm have (11101) & (1100). The result shall be
(A) (812) 10
(B) (-12) 10
(C) (12) 10
(D) (-812) 10
Answer: A
(A) Encoder
(B) Multiplexer
(C) Decoder
Answer: D
40. A three input NOR gate gives logic high output only when
Answer: D
41. n bits in operation code imply that there are ___________ possible distinct
operators
(A) 2n
(B) 2n
(C) n/2
(D) n2
Answer: B
42. _________ register keeps tracks of the instructions stored in program stored in
memory.
(D) AC (Accumulator)
Answer: C
Answer: D
(A) Counters which indicate how long ago their associated pages have been referenced.
(B) Registers which keep track of when the program was last accessed.
Answer: A
Answer: B
(B) Directly
Answer: A
47 A floating point number that has a O in the MSB of mantissa is said to have
(A) Overflow
(B) Underflow
(D) Undefined
Answer: B
Answer: B
(i) Arithmetic operations with fixed point numbers take longer time for execution as
Ans: True.
Ans: False.
50. Logic gates with a set of input and outputs is arrangement of
(D) Register
Answer: A
Answer: A
(A) 3k registers
(B) 2k registers
(C) K2 registers
(D) K3 registers
Answer: B
(A) Word-time
(B) Bit-time
Answer: B
54 A group of bits that tell the computer to perform a specific operation is known as
(B) Micro-operation
(C) Accumulator
(D) Register
Answer: A
(A) Accumulator
Answer: A
Answer: B
(C) Stack
Answer: B
Answer: C
59 A microprogram sequencer
Answer: A
(A) Bit
(B) Byte
(C) Number
(D) Character
Answer: A
(B) Byte
Answer: A
(A) Macro-operation
(B) Micro-operation
(C) Bit-operation
(D) Byte-operation
Answer: B
63 MRI indicates
Answer: B
(A) Function
(B) Procedure
(C) Subroutine
(D) Routine
Answer: A
65 Microinstructions are stored in control memory groups, with each group specifying
a
(A) Routine
(B) Subroutine
(C) Vector
(D) Address
Answer: A
Answer: A
67 Status bit is also called
Answer: B
Answer: A
69 If the value V(x) of the target operand is contained in the address field itself, the
addressing mode is
(A) immediate.
(B) direct.
(C) indirect.
(D) implied.
Answer: B
Answer: A
71 The instructions which copy information from one location to another either in the
processor’s internal register set or in the external main memory are called
Answer: A
(A) register
(B) flip-flop
(C) transistor.
(D) counter.
Answer: D
Answer: C
Answer: B
75 Content of the program counter is added to the address part of the instruction in
order to obtain the effective address is called.
Answer: A
76 An interface that provides I/O transfer of data directly to and form the memory unit
and peripheral is termed as
(A) DDA.
(C) BR.
(D) DMA.
Answer: D
(A) 111100.
(B) 110110.
(C) 110111.
(D) 1011.
Answer: B
78 A register capable of shifting its binary information either to the right or the left is
called a
Answer: C
Answer: C
(A) INTR.
(D) TRAP.
Answer: D
Answer: C
(A) MOV.
(B) ORG.
(C) END.
(D) (B) & (C)
Answer: D
(A) Zero.
(B) One.
(C) Two.
Answer: A
84 The maximum addressing capacity of a micro processor which uses 16 bit database
& 32 bit address base is
(A) 64 K.
(B) 4 GB.
Answer: B
85 The memory unit that communicates directly with the CPU is called the
Answer: A
86 The average time required to reach a storage location in memory and obtain its
contents is called
Answer: B
Ans: False
Ans: False
Ans: False
90 When two equal numbers are subtracted, the result would be ______and
not_________.
92 In an operation performed by the ALU, carry bit is set to 1 if the end carry C 8 is
________. It is cleared to 0 (zero) if the carry is ______ _______.
Answer: C
94 When necessary, the results are transferred from the CPU to main memory by
(B) CPU.
Answer: C
96 A combinational logic circuit which sends data coming from a single source to two
or more separate destinations is
(A) Decoder.
(B) Encoder.
(C) Multiplexer.
(D) Demultiplexer.
Answer: D
(A) Absolute.
(B) Immediate .
(C) Indirect.
(D) Direct.
Answer: B
Answer: D
99 A Program Counter contains a number 825 and address part of the instruction
contains the number 24. The effective address in the relative address mode, when an
instruction is read from the memory is
(A) 849.
(B) 850.
(C) 801.
(D) 802.
Answer: B
(C) Occurs when a program accesses a page not currently in main memory.
Answer: C
103. The load instruction is mostly used to designate a transfer from memory to a
processor register known as____.
Answer: A
104. A group of bits that tell the computer to perform a specific operation is known
as____.
C. Accumulator D. Register
Answer: A
A. Word-time B. Bit-time
Answer: B
A. 3k registers B. 2k registers
C. K2 registers D. K3 registers
Answer: B
Answer: A
108. Logic gates with a set of input and outputs is arrangement of______.
A. Computational circuit
B. Logic circuit
C. Design circuits
D. Register
Answer: A
109. The average time required to reach a storage location in memory and obtain its
contents is called_____.
Answer: B
Answer: B
111. A floating point number that has a O in the MSB of mantissa is said to have_____.
A. Overflow B. Underflow
Answer: B
Answer: A
Answer: B
A. Counters which indicate how long ago their associated pages have been
referenced.
B. Registers which keep track of when the program was last accessed.
Answer: A
Answer: D
116. _________ register keeps tracks of the instructions stored in program stored in
memory.
Answer: C
117. n bits in operation code imply that there are ___________ possible distinct
operators.
A. 2n B. 2n
C. n/2 D. n2
Answer: B
118. A three input NOR gate gives logic high output only when_____.
Answer: D
A. Encoder B. Multiplexer
Answer: D
120. The multiplicand register & multiplier register of a hardware circuit implementing
booth’s algorithm have (11101) & (1100). The result shall be ______.
A. (812)10 B. (-12)10
C. (12)10 D. (-812)10
Answer: A
Answer: A
Answer: B
(B).
Answer: D
Answer: C
Answer: D
126. When CPU is executing a Program that is part of the Operating System, it is said to
be in _____.
Answer: B
A. AACB B. 0000
C. FFFF D. ABCD
Answer: C
128. If the main memory is of 8K bytes and the cache memory is of 2K words. It uses
associative mapping. Then each word of cache memory shall be_____.
A. 11 bits B. 21 bits
C. 16 bits D. 20 bits
Answer: C
Answer: C
Answer: D
Answer: A
132. In signed-magnitude binary division, if the dividend is (11100)2 and divisor is
(10011)2 then the result is ______.
A. (00100)2 B. (10100)2
C. (11001)2 D. (01100)2
Answer: B
Answer: B
134. Write Through technique is used in which memory for updating the data _____.
Answer: D
Answer: A
136. The circuit used to store one bit of data is known as ______.
A. Encoder B. OR gate
Answer: C
A. SISD B. SIMD
C. MIMD D. MISD
Answer: A
138. In a vectored interrupt.
B. the interrupting source supplies the branch information to the processor through
an interrupt vector.
Answer: B
139. . In a memory-mapped I/O system, which of the following will not be there?
A. LDA B. IN
C. ADD D. OUT
Answer: A
140. If memory access takes 20 ns with cache and 110 ns without it, then the ratio
(cache uses a 10 ns memory) is _____.
A. 93% B. 90%
C. 88% D. 87%
Answer: B
141. The addressing mode used in an instruction of the form ADD X Y, is _____.
A. Absolute B. indirect
Answer: C
142. _________ register keeps track of the instructions stored in program stored in
memory.
Answer: C
Answer: A
Answer: B
145. The average time required to reach a storage location in memory and obtain its
contents is called the _____.
Answer: C
C. Both A.and
Answer: B
147. The circuit used to store one bit of data is known as_______.
A. Register B. Encoder
Answer: D
Answer: D
149. What characteristic of RAM memory makes it not suitable for permanent storage?
Answer: C
150. The amount of time required to read a block of data from a disk into memory is
composed of seek time, rotational latency, and transfer time. Rotational latency refers
to ______.
A. the time its takes for the platter to make a full rotation
B. the time it takes for the read-write head to move into position over the
appropriate track
C. the time it takes for the platter to rotate the correct sector under the head
Answer: A
Answer: D
d. None of these
Answer: A
153. Suppose that a bus has 16 data lines and requires 4 cycles of 250 nsecs each to
transfer data. The bandwidth of this bus would be 2 Megabytes/sec. If the cycle time of
the bus was reduced to 125 nsecs and the number of cycles required for transfer stayed
the same what would the bandwidth of the bus?
A. 1 Megabyte/sec B. 4 Megabytes/sec
C. 8 Megabytes/sec D. 2 Megabytes/sec
Answer: D
Answer: C
time.
c. includes many processing units under the supervision of a common control unit
Answer: C
A. AB*CD*+ B. A*BCD*+
C. AB*CD+* D. A*B*CD+
Answer: A
157. Processors of all computers, whether micro, mini or mainframe must have
Ans b
158. What is the control unit’s function in the CPU?
Ans e
Ans f
a. immediate b. direct
Ans d
Ans d
162. Which of the following code is used in present day computing was developed by
IBM corporation?
Ans d
163. When a subroutine is called, the address of the instruction following the CALL
instructions stored in/on the
Ans d
Ans d
Ans d
Ans c
Ans A
A) microprocessor B) memory
Ans D
Ans A
A) 8 B) 16 C) 4 D) 32
Ans A
Ans A
172. The access time of memory is …………… the time required for performing any single
CPU operation.
Ans A
173. Memory address refers to the successive memory words and the machine is called
as …………
Ans A
Ans D
Ans A
Ans B
Ans C
178. Which of the following registers is used to keep track of address of the memory
location where the next instruction is located?
C. Instruction Register
D. Program Register
Ans D
A) microprocessor
B) memory
C) peripheral equipment
D) all of above
Ans D
A. data transfer
B. logic operation
C. arithmetic operation
D. all of above
Ans B
A. instruction execution
B. instruction prefetch
C. instruction decoding
D. instruction manipulation
Ans C
182. A stack is
Ans A
A. a 16-bit register in the microprocessor that indicate the beginning of the stack
memory.
Ans A
184. The branch logic that provides decision making capabilities in the control unit is
known as
A. controlled transfer
B. conditional transfer
C. unconditional transfer
D. none of above
Ans C
A. internal
B. external
C. hardware
D. software
Ans D
D. None of above
Ans B
187.Virtual memory is –
Answers:
188.Fragmentation is –
Answers:: 2
Answer :2
190.Cache memory-
Answer 4
Answers:
192.Which of the following memories must be refreshed many times per second?
e. None of these
ans Random access memory
a) program counter
b) status register
c) instruction register
d) program status word
Answer:a.
a) stack pointer
b) cache
c) accumulator
d) disk buffer
Answer:b.
a) physical address
b) absolute address
c) logical address
Answer:c.
b) CPU
c) PCI
Answer:a.
198.Memory management technique in which system stores and retrieves data from
secondary storage for use in main memory is called
a) fragmentation
b) paging
c) mapping
Answer:b
a) stack pointer
c) page register
d) program counter
a) logical address
b) absolute address
c) physical address
d) relative address
Answer:a
------>>[MOST IMPORTANT]<<------
Email *
Website
Post Comment
Q1. A digital computer has a common bus system for 16 registers of 32 bits each.
The bus is constructed with multiplexers.(a) How many selection inputs are there in
each multiplexer? (b) What size of multiplexers are needed? (c) How many
multiplexers are there in the bus?
Q2. Explain the memory operation in each of the following register transfer
statements
(a) R2 M[AR]
(b) M[AR] R3
(c) R5 M[R5]
(a) Read into the register R2 the memory word at the address in AR.
(b) Write the contents of register R3, into the memory word specified by the
address in AR
(c) Read into the register R5, the memory word specified by the address in R5.
(The process destroys the previous value in R5).
Q3. Design an arithmetic circuit with one selection variable S and two 4 bit data
inputs A and B. The circuit generates the following four arithmetic operations, in
conjunction with input carry Cin.
S Cin= 0 Cin= 1
0 D = A + B(add) D = A + 1(increment)
1 D = A – 1(decrement) D = A + B’ + 1(subtraction)
(a) Draw the logic diagram for the first stage. You can use a Full Adder
(block diagram) in your design.
S Cin X Y D
0 0 A B A+B
0 1 A 0 A+1
1 0 A 1 A-1
1 1 A B’ A-B
Cin
B0 0 S0 S1 A0 Xo Cin
1 1 bit
0 4 to 1MUX output FA D0
1 2 Yo
3 Cout
:1-=---_-_-_-_-_-_-_--
'I
I I
B1 0 S0 S1 A1 X1 Cin
I
I
I
I 1 1 bit
I I 0
I I 4 to 1MUX FA D1
I I 1
I
I
I
I
Y1
I
I
I
I
2
I
I
I
I
3 Cout
I I
I I
I I
I
I
I
(b) Draw a block diagram showing how two such circuits can be connected
to form an 8 bit arithmetic unit.
Cin
S
S0 S1 Cin D0 D0
A0 – A7 D1 D1
D2 D2
B0 – B3 Cout D3 D3
S0 S1 Cin D0 D4
A4 – A7 D1 D5
D2 D6
B4 – B7 Cout D3 D7
C8
Computer architecture, solved problems
v.01 2018/19
1. Minicomputers in the eighties (eg. DEC PDP-11) had 18 address signals and of course, the 18-bit address
bus. Answer the following questions:
Solution:
2. Write down a signed decimal number with a value of -25 in 8-bit fixed point presentation in each of the
four 8-bit modes for the presentation of signed numbers. Do the same also with the number 33. Write
resulting presentations as binary and hexadecimal numbers. Consider, how to perform addition of these
numbers in binary form for each presented mode.
addition: it is necessary to take into account the sign => additional complexity...
b) the presentation with offset
𝑉(𝑏) = ∑𝑛−1 𝑖
𝑖=0 𝑏𝑖 2 − 2
𝑛−1
tudi (2𝑛−1 − 1) -128 .. 127 (-127..128)
addition: the result includes two offsets, so one offset has to be subtracted separately
c) ones’ complement
𝑉(𝑏) = ∑𝑛−1 𝑖 𝑛
𝑖=0 𝑏𝑖 2 − 𝑏𝑛−1 (2 − 1) -127 .. 127
25(10) = 11001(2)
addition: in case of carry from place n-1 , 1 has to be added to result; on the other hand, sign bit can
be treated the same as the other (value) bits ...
d) two's complement
𝑉(𝑏) = ∑𝑛−1 𝑖 𝑛
𝑖=0 𝑏𝑖 2 − 𝑏𝑛−1 (2 ) -128 .. 127
25(10) = 00011001(2)
11100110(2)
+00000001(2)
=11100111(2)
4,75(10) = 100,11(2)
s=0
m = 1,0011
exp = 2
IEEE 754:
s exp+127 m
1 8 23
s=0
mantissa it always in a form of 1, ???, the implicit bit (1,) is not part of the presentation:
m = 0011
s=0
exp+127=10001001(2) =137,
therefore exp=10 , m=1,111101011 (2)
2^0*m*2^exp
1*1,111101011*2^10
11111010110 (2) = 2006 (10)
4. We want to compare the computers R1 and R2, which differ that R1 has the machine instructions for the floating-
point operations, while R2 has not (FP operations are implemented in the software using several non-FP
instructions). Both computers have a clock frequency of 400 MHz. In both we perform the same program,
which has the following mixture of commands:
Solution:
Computer R1:
𝑓𝐶𝑃𝐸 400∗106
MIPS =
𝐶𝑃𝐼∗106
= 4,54∗106
= 88,1
Computer R2:
f𝐶𝑃𝐸 400∗106
MIPS =
CPI∗106
= 13,66∗106
= 29,28
Computer R1:
Number_of_instructions 12000
𝑪𝑷𝑼time = = 6
= 136,2 ∗ 10−6 = 136,2 𝜇𝑠
𝑴𝑰𝑷𝑺 ∗ 𝟏𝟎𝟔 88,1 ∗ 10
Computer R2:
Number_of_instructions 12000
𝑪𝑷𝑼time = 𝟔
= 6
= 410 ∗ 10−6 = 410 𝜇𝑠
𝑴𝑰𝑷𝑺 ∗ 𝟏𝟎 29,28 ∗ 10
Solution:
𝑁
𝑆(𝑁) =
1 + (𝑁 − 1) ∗ 𝑓
FP unit must be active 63.15% of the time so that the computer's performance is 2.5 times faster.
6. The computer has a main memory access time of 60 ns. We want to reduce this time to 20 ns by adding
cache. Determine how fast the cache must be (access time) if we can expect a 90% probability of a hit.
tag=60 ns
ta=20 ns
H=90%=0,9
tap=?
ta=tap+(1-H)×tag
tap=ta-(1-H)×tag
tap=20×10-9 [s] –(1-0,9)×60×10-9 [s]=20×10-9-6×10-9=14×10-9 [s] =14 [ns]
7. In a computer with cache, we have the average number of clock periods per instruction equal to 4, if there are no
misses in the cache.
a) What is the real number of clock periods per instruction, if the probability of miss in the cache is 10%?
For the replacement of the block (line) in the cache, we need 5 clock periods for read and 10 for write
accesses. Assume that each instruction requires an average of 2 memory accesses and that 20% of all are
write accesses.
CPII=4
(1-H)=10%=0,1
MI=2
NR=5
NW=10
PW=0,2
PR=0,8
CPIR=CPII+MI×(1-H)×miss_penalty
CPII=4
MI=2
(1-H)=0,05
miss_penalty =6
CPIR=?
CPIR=CPII+MI×(1-H)× miss_penalty
CPIR=4+2×0,05×6=4,6
8. On a computer with a 32-bit memory address and the length of the memory location of 1 byte is
installed set-associative cache. Cache size is 16 KB, block (line) size is 16 Bytes, set associative cache
is 4-way.
n=32
M=16KB=24KB=214B
block=B=16B=2 4B
E=4=22
M=S×E×B
S=M÷(E×B)=2 14÷(22×24)=214-6=28=256 sets
b) Which bits in the memory address determine the address of the set?
31 11 4 3 0
i
address of
the set
l
address of the location in the block
Address bits of set: 4-11.
c) Into which set is mapped the content of the memory address 10FFCFF(HEX)?
1 0001 31 11 43 0
2 0010 00000001000011111111110011111111
3 0011
4 0100
5 0101
6 0110
7 0111
1
set address
8 1000
9 1001
A 1010 Address belongs to set 207.
B 1011
C 1100
D 1101
E 1110
F 1111
9. A computer with virtual memory has an access time tomain memory 50 ns, the time to transfer a block from
the virtual into main memory is 10 ms. The probability for the page-fault is 10-6.
What is the average access time, if the page-table is in the main memory?
tag=50ns
tB=10ms
(1-H)=10-6
ta=?
ta=tag+tag+(1-H)×tB
t
(access to the page-table in main memory)
I
(access to the page-frame)
ta=50×10-9+50×10-9+10-6×10×10-3=
=100×10-9+10×10-9=110×10-9=110 [ns]
10. Computer with virtual memory has the following features:
length of the virtual address is 38 bits,
the page size is 16 KB,
length of the physical address is 32 bits.
a) How many bits is the length of page descriptor, if in addition to the frame number (FN), additional parameters
occupy another 6 bits?
n=38
f=32
page size = 16 KB=2p=214B
a number of pages in virtual memory:
2n-p=2n÷2p=238÷214=224
a number of page frames in main
memory:
2f-p=2f÷2p=232÷214=218 (FN)
Page descriptor = frame number (FN) + 6 6 bits 18 bits
Page descriptor = 24 bits = 3 B FN
additional
parameters
b) What is the maximum size of the page-table in bytes?
num_pages x page_descriptor
2243B x = 220× 243B x = 24× 3MB = 16 × 3MB = 48MB page-table size in main memory.