Computer Architecture & Assembly Language MCQs with Answers
Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.
Multiple Choice Questions
Q81: In binary multiplication, what is done if the multiplier bit is 1?
- A: The multiplicand is subtracted
- B: The multiplicand is added to the result
- C: The multiplicand is ignored
- D: The result is multiplied by 2
View Answer
B
Q82: Which instruction should be used for division by 2 for signed numbers?
- A: SHR
- B: SAR
- C: RCL
- D: SHL
View Answer
B
Q83: In the multiplication algorithm, what happens when a 0 bit is encountered in the multiplier?
- A: The multiplicand is added to the result
- B: The multiplicand is shifted left by one position
- C: The multiplicand is multiplied by 2
- D: No addition is performed
View Answer
D
Q84: Which flag is checked to determine the least significant bit (LSB) during right shifting?
- A: Zero Flag
- B: Carry Flag
- C: Overflow Flag
- D: Sign Flag
View Answer
B
Q85: What is the primary purpose of shift operations in a processor?
- A: To simplify complex algorithms
- B: To perform arithmetic addition
- C: To invert bit values
- D: To rotate bits within a register
View Answer
A
Q86: What does the SHR instruction do in assembly language?
- A: Multiplies by 2
- B: Divides by 2
- C: Adds 1
- D: Subtracts 1
View Answer
B
Q87: Which instruction is used to skip addition if the bit is zero?
- A: JMP
- B: ADD
- C: JNZ
- D: JNC
View Answer
D
Q88: How many bits are initialized for multiplication in the start label?
- A: 4
- B: 8
- C: 16
- D: 32
View Answer
C
Q89: In the context of extended multiplication, what is the purpose of the ADC instruction?
- A: Adds without carry
- B: Subtracts with borrow
- C: Adds with carry
- D: Multiplies by 2
View Answer
C
Q90: Which instruction in assembly language inverts all bits of a byte or word?
- A: XOR
- B: AND
- C: NOT
- D: OR
View Answer
C