Computer Architecture & Assembly Language MCQs with Answers
Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.
Multiple Choice Questions
Q91: How is the TEST instruction different from AND?
- A: It changes the destination operand
- B: It does not change the destination operand
- C: It only sets flags
- D: Both B and C
View Answer
D
Q92: What is the result of the operation XOR AX, BX when both AX and BX have the same value?
- A: All bits set to 1
- B: All bits set to 0
- C: AX is added to BX
- D: AX is subtracted from BX
View Answer
B
Q93: In the extended shifting operation, what happens to the most significant bit of the lower word during a left shift?
- A: It is added to the result
- B: It is pushed into the least significant bit of the next word
- C: It is discarded
- D: It is set to 1
View Answer
B
Q94: When performing selective bit clearing using AND, what does the mask contain?
- A: 1s at positions to clear and 0s at positions to retain
- B: 0s at positions to clear and 1s at positions to retain
- C: 1s at positions to set and 0s at positions to clear
- D: 0s at positions to set and 1s at positions to clear
View Answer
B
Q95: How does the SBB instruction function in extended subtraction?
- A: Adds with carry
- B: Subtracts with borrow
- C: Adds with borrow
- D: Subtracts without borrow
View Answer
B
Q96: In the given multiplication algorithm, why is the JNZ instruction used?
- A: To terminate the program
- B: To repeat the loop until bits are left
- C: To skip the addition step
- D: To test a specific bit
View Answer
B
Q97: What is the primary advantage of using XOR in cryptography and image processing?
- A: It is a reversible operation
- B: It inverts all bits
- C: It is faster than other operations
- D: It can clear specific bits
View Answer
A
Q98: Which operation would you use to test a specific bit in a number without altering it?
- A: SHL
- B: AND
- C: TEST
- D: JNC
View Answer
C
Q99: What happens when the MOV instruction is used to transfer data from src to dest in the extended addition algorithm?
- A: The value of src is added to dest
- B: The value of dest is subtracted from src
- C: The value of src is transferred to dest
- D: The value of dest is multiplied by src
View Answer
C
Q100: What is the purpose of the SHL instruction in assembly language?
- A: Shift bits to the left
- B: Shift bits to the right
- C: Set all bits to 1
- D: Set all bits to 0
View Answer
A