Coa Quesbank2
Coa Quesbank2
Level -
Question Statement - mandatory (statement delivered mandator Choice 1 - Choice 2 -
S.No. An output
to the program resides in memory starting from
candidate) y mandatory mandatory
address 2300. It is executed after the computer recognizes
an interrupt when FGO becomes 1 (while IEN=1). What
1 instruction must be placed at address 1? Hard BUN 2300 ION 2300
What are the total numbers of memory reference
2 An output program
instructions in basicresides in memory
computer starting from
architecture? Hard 8 7
address 2300. It is executed after the computer recognizes
an interrupt when FGO becomes 1 (while IEN=1) What BUN 2300, ION
3 must be the last two instructions of the output program? Hard 2300 ION, BUN 0
When IEN is cleared to zero with ____ instruction, the CPU
6 cannot be interrupted. Hard IOF ION
When IEN is set to 1, with ___ instruction, the computer
7 can be interrupted. Hard IOF ION
In memory reference instructions, what is the value of
9 operation decoder for ADD & AND symbol? Hard D0, D1 D1, D0
21 In basic computer architecture, AC typically communicates Medium serial, serial parallel, serial
22 In basic computer architecture, communication interface ty Medium serial, serial parallel, serial
25 SKI will skip the instruction if _____ value is ___. Medium FGI, 1 FGO, 1
26 SKO will skip the instruction if _____ value is ___. Medium FGI, 1 FGO, 1
The size of OPR and SELD (in bits) in the control word for
55 a CPU is ______ and ______ respectively. Medium 5,3 3,5
Suppose the initial value of SP is 3998 and the stack grows
with decreasing addresses. What is the value of SP after 2
57 Given SP = 00000000 in the 256-word stack, how many
POP operations? Medium 3998 4002
items are there in the stack if FULL = 1 and EMPTY = 0?
59 Hard 256 0
If the output of ALU is not 0, then the zero status bit is set
84 to ___. Medium 0 1
Assembly language convention of Index addressing
85 is___. Medium LD ADR(X) LD R1
Assembly language convention of Register indirect
86 Mode is___. Medium LD ADR(X) LD R1
114 Conditional branch instructions are_________. Medium BZ, BC, BP BZ, BM, BV
What does the mnemonic BLOE conditional branch Branch if Lower Branch if Load or
115 instruction stand for? Medium or Equal Equal
Which conditional branch instructions are typically
116 used under unsigned compare conditions (A - B)? Hard BHE and BLO BGT and BGE
Which conditional branch instructions are typically
117 used under signed compare conditions (A - B)? Medium SP
BHE<-and
SP -BLO
1, SP
BGT<-and
SP +BGE
1,
M[SP] <- PC, PC M[SP] <- PC, PC
A subroutine call can be implemented using the <- effective <- effective
118 following micro-operations. Hard address address
The instruction that return from the last subroutine is
implemented by ____________ one of the micro-
119 operation. Hard only with
PC <-M the
[SP-1] only with
PC <-M the
[SP+1]
The state of the CPU at the end of the execute cycle, content of the content of all
particularly when an interrupt is recognized, is program processor
120 primarily determined from: Medium counter registers
What term is used to refer to the collection of all Program Processor Status
121 status bit conditions in the CPU? Medium Counter word word
When the CPU is executing a program that is part of User or kernel Supervisor or
122 the operating system, the mode of CPU is called? Medium mode system mode
In the context of program interrupt handling, CPU
operates in _________ mode while executing user Supervisor
123 programs. Medium mode Kernel mode
from special
The mode that the CPU is operating at any given time status bits in through the
124 is determined ____________________. Medium input-output
the PSW program counter
(l/0) devices a circuit
and a timing monitoring the
125 Where do external interrupts typically originate from? Medium device power supply
I/O device I/O device
Which of the following are examples of external requesting finished transfer
126 interrupts? Medium transfer of data of data
When an When the CPU
instruction temperature
Under what circumstances a timeout interrupt may encounters a exceeds a certain
127 occur? Medium Restarting the
syntax error threshold
system from Shutting down
the last known the system
128 What action might a power failure interrupt trigger? Medium Input/output
state Illegal or
gracefully
(I/O) devices erroneous use of
requesting an instruction or
129 What typically causes internal interrupts? Medium attention data
Incorrect input Hardware
What is a common cause of error conditions in the provided by the malfunctions
130 context of internal interrupts? Medium user within the CPU
Internal Internal
What characteristic distinguishes internal interrupts interrupts are interrupts are
131 from external interrupts in terms of timing? Medium asynchronous periodic
What term best describes the timing behavior of
132 external interrupts? Medium Synchronous randomly
Periodic
External
throughout the
If the program is rerun, the internal interrupts will External
in the same interrupts
program occur
133 occur _______________. Medium interrupts
place eachare
time randomly
execution
triggered by throughout
What characteristic distinguishes external interrupts errors in the program
134 from internal interrupts? Medium register
program code an invalid
execution
overflow and operation code
Which of the following are examples of interrupts attempt to and stack
135 caused by internal error conditions? Medium divide by zero overflow
Which type of interrupt is commonly utilized with a Hardware External
136 supervisor call instruction? Medium interrupt interrupt
What condition is tested by the Conditional Branch
138 Instruction BNZ? Medium Z=1 Z=0
What condition is tested by the Conditional Branch
139 Instruction BNC? Medium C=0 C=1
In the context of Conditional Branch Instructions,
which branch condition respresents the Test Branch if
140 condition, V=0)? Medium overflow Branch if carry
What is the value of the postfix expression 6 3 2 4 +
162 – *? Medium 1 40
Identify the memory reference instruction having operation
202 decoder D3 and symbolic representation is M[AR]←AC. Medium STA LDA
What is the purpose of the memory reference instruction AND memory Add memory
with operation decoder D3 and symbolic representation word to AC word to AC
203 M[AR]←AC? Medium
AND memory Add memory
What is the purpose of memory reference instruction word to AC word to AC
having operation decoder D2 and symbolic representation
is AC←M[AR]?
206 Medium
Sign (S) is set to __, If the highest order bit F7 of 8 bit ALU
227 output (F7-F0) is __. Very Easy 1 & 0 0&1
____ call is called by the user through instructions,
whereas_______ is called by the hardware or any external Interrupt & Subroutine &
240 signal. Hard Subroutine Interrupt
________ interrupts are synchronous with the program Internal & External & power
246 while ______interrupts are asynchronous. Medium power failure failure
If the program is rerun, the _________ will appear in the
same place each time. _______ depend on conditions Interrupts & Subroutine &
247 What assembly
independent instruction
of the programshould
being be used toatimplement
executed the time. a Hard Subroutine Interrupts
conditional branch based on the contents of registers R3
and R4, specifically branching if R3 holds a negative value BLT R3, #0 and BLT R3, #0 and
279 and R4 holds a positive value? Medium BPL R4, #0 BGT R4, #0
Which conditional branch instruction is the most efficient
choice for terminating a loop iteration after the final
280 execution, considering the loop iterates 10 times? Medium BGE R2, #10 BLT R2, #10
Correct
choice -
mandat
Choice 3 Choice 4 ory
JM 2300 BUN 0 1
6 4 2
D0, D7 D7, D1 2
LDA STA 1
LDA STA 1
None of the
2 mentioned 2
A832 H832 3
FGI, 0 FGO, 0 1
FGI, 0 FGO, 0 2
None of the
1001 mentioned 1
XOR, 1 OR, 0 3
vertical
microprogrammi None of the
ng mentioned 1
B and C all of the mention 1
3 5 1
CISC, instruction CISC, instruction
type numbers 2
CISC, instruction CISC, instruction
type numbers 2
1500 3000 3
1125 1135 1
2132 A231 2
1005 1230 1
1235 A231 2
3,3 4,4 1
4000 3996 3
1 255 1
1 255 2
None of the
18 mentioned 4
all of the
DIV mentioned 4
1,1,1,1 1,1,0,1 1
600 301 1
600 400 1
400 301 1
C = 1 ,S = 0, Z = 1, VC = 1 ,S = 0, Z = 0, V = 1
C = 1 ,S = 0, Z = 1, VC = 1 ,S = 0, Z = 0, V = 2
C = 0 ,S = 0, Z = 1, VC = 1 ,S = 0, Z = 0, V = 3
transfer
with None of the
between the
incrementing mentioned 2
processor
registers all of the
themselves mentioned 4
It designates a
transfer
Programfrom
control It designates
Decision a
making
memory to
Instructions transfer between
instructions 3
processor processor registers
registers, usually A transfer
and input/output
A
antransfer from between
accumulator devices 3
a processor processor registers
register into and input/output
Perform
memory devices 3
arithmetic, logic
and shift all of the
operation. mentioned 2
Program control all of the
Instructions mentioned 1
500 501 1
399 398 3
None of the
0 or 1 mentioned 1
LD (R1) LD (R1)+ 1
LD (R1) LD (R1)+ 3
AC<-M[PC+ADR] AC<-NBR 1
AC<-M[PC+ADR] AC<-NBR 2
If the end carry
C8 is 1 If the carry is 1 1
Immediate
Operand Index Addressing 4
Program control None of the
Instructions mentioned 2
Program control None of the
Instructions mentioned 1
all of the
Shift instructions mentioned 1
all of the
Shift instructions mentioned 2
all of the
Shift instructions mentioned 3
None of the
Shift instructions mentioned 3
clear a bit
4 or a 5 2
selected group
of bits of an None of the
operand mentioned 3
all of the
XOR mentioned 1
does not need does not
None need an
of the
an address
Both field address field and
mentioned 3
and therefore it It replacesitthe
therefore is one
It
is executes the
zero address next instruction
address
next instruction
instruction with a NOP (no-
instruction 3
only if a operation) if a
specified The instruction
specified condition
condition is met following
is met the 2
The program conditional branch
terminates instruction is
abruptly skipped 1
C, S, B, V C, P, Z, V 2
If the end carry
C8 is 1 If the carry is 1 3
If the lowest- If the lowest-order
order bit F is 1 bit F is 0 1
S and C S and V 2
all of the
BZ, BE, BGE mentioned 4
Branch if Logical
Operator None of the
Executes mentioned 1
None of the
BZ and BC mentioned 1
SP <- SP - 1, None of the
M[SP]
BZ and<-BC SP <- SP + 1, M[SP]
mentioned 2
effective <- effective
address, PC <- address, PC <- PC -
PC + 1 1 1
None of the
only with
PC <-M the
[SP] mentioned 3
content of
certain status all of the
conditions mentioned 4
Program Status
Word Interrupt Vector 3
Kernel or None of the
protected mode mentioned 2
C=0 S=0 2
74 -18 4
BUN BSA 1
Store content of
AC in memory
None of the
mentioned 3
Load memory Store content of
word to AC AC in memory
201 500 2
None of the
LSB,MSB mentioned 1
None of the
1&1 mentioned 3
instructions & None of the
operations mentioned 2
timeout and
software Internal & external 4
Internal &
external timeout and power
interrupts failure interrupts 3
BLE R3, #0 and None of the
BPL R4, #0 mentioned 2