Computer Architecture & Assembly Language MCQs with Answers
Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.
Multiple Choice Questions
Q351: What is the size of each descriptor in the GDT?
- A: 4 bytes
- B: 6 bytes
- C: 8 bytes
- D: 10 bytes
View Answer
C
Q352: Which instruction is used to set the VESA video mode?
- A: INT 10h, AX=4F00h
- B: INT 10h, AX=4F01h
- C: INT 10h, AX=4F02h
- D: INT 10h, AX=4F03h
View Answer
C
Q353: In 32-bit mode, what does the instruction mov ds, ax accomplish?
- A: Load the code segment
- B: Load the stack segment
- C: Load the data segment
- D: Load the descriptor segment
View Answer
C
Q354: What is the purpose of the CLI instruction before switching to protected mode?
- A: Enable interrupts
- B: Disable interrupts
- C: Clear memory
- D: Set privilege level
View Answer
B
Q355: How is the base address of a segment descriptor filled in the provided examples?
- A: Direct assignment
- B: Using shifts and masking
- C: By default
- D: By interrupt
View Answer
B
Q356: In the printstr function, which register is used to point to the video base?
- A: AX
- B: BX
- C: CX
- D: ES
View Answer
D
Q357: What does the 'G' bit in a descriptor indicate?
- A: Granularity (4K pages)
- B: Global descriptor
- C: Gate segment
- D: General purpose
View Answer
A
Q358: What does the MUL instruction in the pprintstr function do?
- A: Multiplies the string length by 2
- B: Multiplies the Y offset
- C: Multiplies the base address
- D: Multiplies the descriptor index
View Answer
B
Q359: What is the term used for the behavior of a high-level language (HLL) when calling functions?
- A: Function calling
- B: Calling conventions
- C: Calling protocols
- D: Function directives
View Answer
B
Q360: In C calling conventions, in what order are parameters passed to the routine?
- A: Left to right
- B: Right to left
- C: Random order
- D: Sequential order
View Answer
B