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 1 โ€“ 10 of 173 Questions
Page 1 of 18
Q1
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ 15.2. DescriptorsEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are the types of user descriptors available in x86 protected mode? State their names.
Q2
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ 15.2. DescriptorsHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Construct 8-byte Protected Mode Segment Descriptors in 'dd doubleword1, doubleword2' NASM assembly format given attribute parameters A = 0, P = 1, G = 0, AVL = 1, and r = 0 for: i. 32-bit, non-conforming, execute-only code segment at privilege level 2, with base address 0x00403333 and limit 0x0FFFF. ii. 32-bit, read-only data segment at privilege level 0, with base address 0x00A0BBBB and limit 0x1CCCC.
๐Ÿ’ป assembly Snippet
; Format: dd DWORD1, DWORD2
dd 0x3333FFFF, 0x0050D840
dd 0xBBBBCCCC, 0x005190A0
Q3
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ 15.3. Protected Mode Memory AddressingHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Calculate the 32-bit physical memory addresses in Protected Mode given Segment Base = 0x00A00000, Limit = 0x30000, EBX = 0x00001000, and ESI = 0x00003000 for the following memory operand accesses: i. [bx+si] ii. [ebx+esi-0x0012FD]
๐Ÿ’ป assembly Snippet
; Segment Base = 0x00A00000, EBX = 0x00001000, ESI = 0x00003000
mov ax, [bx+si]
mov ebx, [ebx+esi-0x0012FD]
Q4
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ 15.1. 32-bit ArchitectureEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
A 32-bit address register can access up to ________ of memory, significantly increasing memory access capacity.
๐Ÿ’ป assembly Snippet
mov eax, 0xFFFFFFFF
  1. A.2GB
  2. B.4GB
  3. C.6GB
  4. D.8GB
Q5
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ 15.2. DescriptorsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Give the names and brief descriptions of any two Segment Descriptors used in x86 Protected Mode.
๐Ÿ’ป assembly Snippet
; 32-bit Code Descriptor: dd 0x0000FFFF, 0x00CF9A00
; 32-bit Data Descriptor: dd 0x0000FFFF, 0x00CF9200
Q6
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ 15.1. IntroductionHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the complete step-by-step process required to switch an x86 processor from 16-bit Real Mode into 32-bit Protected Mode.
๐Ÿ’ป assembly Snippet
mov eax, cr0
or eax, 1
cli
mov cr0, eax
jmp 0x08:pstart
Q7
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ 15.2. DescriptorsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 Protected Mode, what is the size of a Segment Selector register (such as CS, DS, SS, ES, FS, GS)?
๐Ÿ’ป assembly Snippet
mov ax, 0x08
mov ds, ax
  1. A.32 bits
  2. B.24 bits
  3. C.16 bits
  4. D.None of the given options
Q8
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ 15.1. IntroductionMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the difference between a Fault exception and a Trap exception in x86 Protected Mode architecture?
Q9
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ 15.2. DescriptorsHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Construct the 8-byte Protected Mode Segment Descriptor in 'dd doubleword1, doubleword2' NASM assembly format for a 32-bit writable data segment at Privilege Level 2 (DPL=2), with base address 0x00B00000 and limit 0x10000. Assume attribute bits: A=1, AVL=0, P=1, r=0, G=0, D=1, E=0, and B=1.
๐Ÿ’ป assembly Snippet
dd 0x00000000, 0x0041D3B0
Q10
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 15๐Ÿท๏ธ 15.2. DescriptorsHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Construct the 8-byte Protected Mode Segment Descriptor in 'dd doubleword1, doubleword2' NASM assembly format for a 32-bit non-conforming, readable code segment at Privilege Level 0, with base address 0x00300000 and limit 0x0FFFF.
๐Ÿ’ป assembly Snippet
dd 0x0000FFFF, 0x00409A30