Ch 15: 32-Bit Protected Mode Architecture

173 Questions173 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS401 - Computer Architecture and Assembly Language Programming Examination Practice

Timed practice exam simulation for CS401 - Computer Architecture and Assembly Language Programming.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 81 โ€“ 90 of 173 Questions
Page 9 of 18
Q81
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ Interrupt Descriptor Table Register (IDTR)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In Protected Mode x86 architecture, which processor register stores the 32-bit linear base physical address and 16-bit limit size of the Interrupt Descriptor Table (IDT)?
๐Ÿ’ป assembly Snippet
lidt [idt_ptr]
  1. A.GDTR
  2. B.IDTR
  3. C.IVT
  4. D.IDTT
Q82
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ Protected Mode Interrupt Handling and IDTRMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How are interrupts handled in x86 Protected Mode compared to Real Mode?
๐Ÿ’ป assembly Snippet
lidt [idt_ptr]
Q83
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ Protected Mode Segment Descriptor Attribute BitsHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 Protected Mode segment descriptors, fill in the blanks with the correct descriptor flag bits from the list provided: (A bit, C bit, G bit, D bit, P bit, R bit, B bit). 'In descriptors the 32-bit base is scattered into different places for compatibility reasons. The limit is stored in 20 bits, but the [Blank 1] defines that the limit is in terms of bytes or 4KB pages, therefore a maximum 4GB segment size is possible. The [Blank 2] must be set to signal that this segment is present in memory. DPL is the descriptor privilege level. The [Blank 3] defines whether this segment executes code in 16-bit mode or 32-bit mode. The [Blank 4] is the conforming bit. The [Blank 5] signals that the segment is readable. The [Blank 6] is automatically set whenever the segment is accessed.'
Q84
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ Parameter Passing through Stack vs RegistersMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are the limitations of parameter passing through general-purpose CPU registers, and why is parameter passing through the stack preferred for complex or nested subroutines?
๐Ÿ’ป assembly Snippet
push param1
push param2
call my_subroutine
Q85
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ Speed Characteristics of Parameter Passing MechanismsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 assembly language programming, which parameter passing mechanism is execution-wise the fastest, despite its limited scalability?
  1. A.Parameter passing through registers
  2. B.Parameter passing through the stack
  3. C.Parameter passing through global memory variables
  4. D.Parameter passing through input/output ports
Q86
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ Stack Frame Pointer and Parameter Access using BP RegisterMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why is the Base Pointer (BP) register used instead of the Stack Pointer (SP) to access parameters passed on the stack in 8086/8088 assembly language?
๐Ÿ’ป assembly Snippet
mov bp, sp
mov ax, [bp+4]
Q87
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ Stack Frame Layout and Parameter OffsetsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe the stack layout upon entry into a Near subroutine when parameters are passed via the stack, and explain the relative BP offsets when 'mov bp, sp' is executed immediately upon entry (without pushing BP).
๐Ÿ’ป assembly Snippet
mov bp, sp
mov ax, [bp+2]
mov bx, [bp+4]
Q88
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ Default Segment Association for BP RegisterEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8086/8088 architecture, which segment register is associated by default with the Base Pointer (BP) register during indirect memory addressing?
  1. A.Code Segment (CS)
  2. B.Data Segment (DS)
  3. C.Stack Segment (SS)
  4. D.Extra Segment (ES)
Q89
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ Inefficiency of Parameter Retrieval via POP vs BP AccessMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why is attempting to retrieve stack parameters using PUSH and POP inside a subroutine inefficient compared to using the Base Pointer (BP) register?
๐Ÿ’ป assembly Snippet
mov bp, sp
mov ax, [bp+2]
Q90
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ Standard Subroutine Prologue and Stack Frame OffsetsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the standard x86 subroutine prologue ('push bp' followed by 'mov bp, sp') and describe how it preserves the caller's frame pointer while shifting stack parameter offsets.
๐Ÿ’ป assembly Snippet
push bp
mov bp, sp
mov ax, [bp+4]
mov bx, [bp+6]