NPTEL Computer Architecture Week 3 Assignment Answers 2024
1. A/an _____________ is a unique identifier for each machine instruction.
- stack pointer
- source register
- opcode
- None of the options
Answer :- For ANswers Click Here
2. For a store instruction, which of the following information is missing?
- source register
- destination register
- offset
- all of the options
Answer :- For ANswers Click Here
3. Under which flag condition does the ARM instruction addle perform addition?
- (Z = 1) OR (N = 1)
- (Z = 1) AND (N = 0)
- (Z = 0) OR (N = 0)
- (Z = 1) OR (N = 0)
Answer :-
4. In the ARM ISA, the frame pointer register (fp) points to the top of the _______________.
- activation block
- stack
- L1 cache
- main memory
Answer :-
5. How many bits are used to encode the instruction type (opcode) in the SimpleRisc ISA?
- 4
- 5
- 6
- 7
Answer :-
6. Consider the following ARM assembly code sequence.
mov r0, #8
mov r1, #8
mul r4, r0, r0
mla r3, r4, r0, r1
What is the final value of r3?
- 82 + 8
- 83 + 8
- 84
- 83
Answer :- For ANswers Click Here
7. Which of the following ARM assembly instructions computes r1= r2 + r3*4?
- add r1, r2, r3, asl #2
- add r1, r2, r3, asr #2
- add r1, r2, r3, lsr #2
- add r1, r2, r3, lsl #2
Answer :-
8. In the ARM ISA, which of the following expressions is computed by the instruction “bic r1, r2, r3” ?
- r1 ← ~ r2 OR (r3)
- r1 ← r2 OR (~r3)
- r1 ← ~ r2 AND (r3)
- r1 ← r2 AND (~r3)
Answer :-
9. Which of the following ARM instructions sets CPSR flags?
- cmn
- teq
- adds
- All of the options
Answer :-
10. Which of the following instructions is not an unconditional branch instruction?
- bl
- b
- bx
- None of the options
Answer :- For ANswers Click Here