Ch 06: Parameter Passing and Stack Frames

216 Questions216 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 161 โ€“ 170 of 216 Questions
Page 17 of 22
Q161
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Memory Mapping and Offset CalculationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
At which screen location will the instruction 'MOV WORD [ES:160], 0x1230' display character '0' in standard 80x25 VGA text mode?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230
  1. A.Second column of first row
  2. B.First column of second row
  3. C.Second column of second row
  4. D.First column of third row
Q162
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Attribute Byte StructureMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a standard VGA text mode attribute byte, which bit index controls the Red component of the background color?
  1. A.Bit 3
  2. B.Bit 4
  3. C.Bit 5
  4. D.Bit 6
Q163
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Foreground Color BitsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a standard VGA text mode attribute byte, which bit index controls the Blue component of the foreground color?
  1. A.Bit 0
  2. B.Bit 1
  3. C.Bit 2
  4. D.Bit 3
Q164
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Clear Screen Word (0x0720)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What 16-bit word value is written to every video memory cell during a standard clear screen routine in VGA text mode?
๐Ÿ’ป assembly Snippet
mov ax, 0x0720
rep stosw
  1. A.0x0417
  2. B.0x0714
  3. C.0x0741
  4. D.0x0720
Q165
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Font Character Bitmaps and Memory StorageEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In VGA text mode, how many bytes of video/ROM memory are required to store a single 8x16 matrix font character pattern?
  1. A.3 bytes
  2. B.4 bytes
  3. C.8 bytes
  4. D.16 bytes
Q166
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Character Cell Memory LayoutEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In VGA text mode memory layout, within the 16-bit word designated for one screen character location, what is stored at the higher memory address (odd byte offset)?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741
  1. A.The character code
  2. B.The attribute byte
  3. C.The parameters
  4. D.The dimensions
Q167
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Video Memory Segment Initialization (0xB800)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following sets of assembly instructions correctly initializes segment register ES to access color VGA text mode video memory?
๐Ÿ’ป assembly Snippet
mov ax, 0xb800
mov es, ax
  1. A.MOV AX, 0xB008 MOV ES, AX
  2. B.MOV AX, 0xB800 MOV ES, AX
  3. C.MOV AX, 0x8B00 MOV ES, AX
  4. D.MOV AX, 0x800B MOV ES, AX
Q168
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Cell Byte SizeEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In VGA text mode video memory, how many bytes of RAM correspond to a single screen character cell location?
  1. A.One byte
  2. B.Two bytes
  3. C.Four bytes
  4. D.Eight bytes
Q169
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Attribute Byte Background Color DecodingMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Executing the instruction 'MOV WORD [ES:0], 0x0741' prints character 'A' on the screen. What is the resulting background color of the character cell?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741
  1. A.Black
  2. B.Blue
  3. C.Green
  4. D.Red
Q170
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Font Storage in MemoryEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many bytes of memory are required to store a single 8x16 font character matrix bitmap?
  1. A.2 bytes
  2. B.4 bytes
  3. C.8 bytes
  4. D.16 bytes