Skip to main content

Computer Architecture & Assembly Language MCQs with Answers

Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.

Chapter: 3
Q61:
Which flag combination will cause the JG (Jump if Greater) instruction to execute?
A. ZF = 1 and CF = 1
B. ZF = 0 and CF = 0
C. ZF = 1 and SF = OF
D. ZF = 0 and SF = OF
Correct Answer: D
Chapter: 3
Q62:
What is the main difference between near and far jumps?
A. Far jumps are faster
B. Near jumps are faster
C. Far jumps include segment address
D. Near jumps include only offset address
Correct Answer: C
Chapter: 3
Q63:
Which jump instruction would you use to branch if the sign bit indicates a negative number?
A. JS
B. JP
C. JNS
D. JO
Correct Answer: A
Chapter: 3
Q64:
What does the JCXZ instruction do?
A. Jumps if the Carry Flag is set
B. Jumps if CX register is zero
C. Jumps if the Zero Flag is set
D. Jumps if the Sign Flag is set
Correct Answer: B
Chapter: 3
Q65:
How does the JBE instruction determine the branch?
A. Based on the Zero and Carry Flags
B. Based on the Sign and Overflow Flags
C. Based on the Parity Flag
D. Based on the Sign Flag
Correct Answer: A
Chapter: 3
Q66:
Which jump is taken when the Overflow Flag is set?
A. JO
B. JNO
C. JL
D. JG
Correct Answer: A
Chapter: 3
Q67:
What does the JPE (Jump if Parity Even) instruction check?
A. Zero Flag
B. Carry Flag
C. Sign Flag
D. Parity Flag
Correct Answer: D
Chapter: 3
Q68:
In a short jump, what is the maximum range of the jump?
A. 128 bytes forward or backward
B. 127 bytes forward or backward
C. 256 bytes forward or backward
D. 255 bytes forward or backward
Correct Answer: B
Chapter: 3
Q69:
Which of the following is a renamed version of the JZ instruction?
A. JE
B. JC
C. JA
D. JNGE
Correct Answer: A
Chapter: 3
Q70:
When does the JNE (Jump if Not Equal) instruction execute?
A. When operands are equal
B. When operands are not equal
C. When overflow occurs
D. When the carry flag is set
Correct Answer: B
Chapter: 3
Q71:
What is the opcode for a near jump in assembly language?
A. EA
B. EB
C. E9
D. F2
Correct Answer: C
Chapter: 4
Q72:
What is the result of multiplying binary numbers 1101 and 0101?
A. 1010100
B. 11000011
C. 1100100
D. 1000001
Correct Answer: D
Chapter: 4
Q73:
In the multiplication algorithm, what happens to the multiplicand after each step?
A. It remains unchanged
B. It is shifted left by one position
C. It is shifted right by one position
D. It is divided by 2
Correct Answer: B
Chapter: 4
Q74:
What does the Shift Logical Right (SHR) operation do to the bits?
A. Inserts 1 from the left
B. Inserts 0 from the left
C. Shifts bits to the left
D. Multiplies the number by 2
Correct Answer: B
Chapter: 4
Q75:
Which instruction is equivalent to multiplication by 2?
A. SHR
B. ROR
C. SHL
D. SAR
Correct Answer: C
Chapter: 4
Q76:
What happens to the sign bit in Shift Arithmetic Right (SAR) operation?
A. It changes to 0
B. It is moved to the right
C. It remains unchanged
D. It is moved to the left
Correct Answer: C
Chapter: 4
Q77:
How is the carry flag used in the Rotate Through Carry Right (RCR) operation?
A. It is ignored
B. It is shifted to the left
C. It is inserted from the left
D. It is inserted from the right
Correct Answer: C
Chapter: 4
Q78:
What does the Rotate Left (ROL) instruction do?
A. Moves each bit to the right
B. Moves each bit to the left
C. Inserts 1 from the left
D. Inserts 0 from the right
Correct Answer: B
Chapter: 4
Q79:
Which of the following operations is NOT a bit manipulation technique?
A. SHR
B. ROL
C. ADD
D. RCR
Correct Answer: C
Chapter: 4
Q80:
What is the purpose of shifting the multiplier in the multiplication algorithm?
A. To move it to the right
B. To move it to the left
C. To add it to the result
D. To clear the carry flag
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Computer Architecture & Assembly Language

🚀 Start Quiz Now