Computer Architecture & Assembly Language MCQs with Answers
Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.
Multiple Choice Questions
Q141: How are parameters passed to subroutines in assembly language if the number of registers is limited?
- A: Through registers only
- B: By pushing parameters onto the stack
- C: By calling subroutines recursively
- D: By using indirect addressing
View Answer
B
Q142: What does the instruction MOV BP, SP achieve in a subroutine?
- A: It moves data from BP to SP
- B: It initializes BP with the value of SP
- C: It swaps the contents of BP and SP
- D: It resets the stack pointer to zero
View Answer
B
Q143: Why is the RET instruction used with an argument in some cases?
- A: To add a value to SP after returning
- B: To pass control to another subroutine
- C: To pop additional registers from stack
- D: To discard parameters on the stack
View Answer
D
Q144: What is the role of the BP register in accessing parameters passed on the stack?
- A: It stores the return address
- B: It serves as a reference point on the stack
- C: It increments the stack pointer
- D: It swaps data on the stack
View Answer
B
Q145: How does the CALL instruction differ for intra-segment and inter-segment calls?
- A: It pushes CS for inter-segment calls only
- B: It pushes IP for both types of calls
- C: It doesn't modify SP for inter-segment
- D: It only modifies CS for intra-segment
View Answer
A
Q146: What does the XCHG instruction do when one operand is in memory?
- A: Swaps with another memory operand
- B: Loads the operand into a register
- C: Exchanges with the contents of the register
- D: Moves data to the stack
View Answer
C
Q147: What does ASCII stand for?
- A: American Standard Code for Information Interchange
- B: American Symbolic Character Interface
- C: Alphabetic System Code Identification
- D: Advanced System Code Interface
View Answer
A
Q148: How many characters are defined in the standard ASCII?
- A: 128
- B: 256
- C: 64
- D: 512
View Answer
A
Q149: Which standard has become the most prevalent for global communication?
- A: EBCDIC
- B: Gray Code
- C: ASCII
- D: Unicode
View Answer
C
Q150: What is the memory address used for the IBM PC text mode color display?
- A: A0000
- B: B8000
- C: C0000
- D: D8000
View Answer
B