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 141 โ€“ 150 of 216 Questions
Page 15 of 22
Q141
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ Linear Memory Mapping of 2D Text DisplayMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain how two-dimensional text mode screen coordinates (80 columns by 25 rows) are linearly mapped into one-dimensional video RAM, detailing the word-per-character memory structure.
๐Ÿ’ป assembly Snippet
mov ax, 0xB800
mov es, ax
mov di, (5 * 80 + 10) * 2
mov word [es:di], 0x0741
Q142
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ Fundamental Principles of VGA Text ModeEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
State the three fundamental principles that govern how the CPU interacts with the VGA video controller in text display mode.
Q143
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ String and Character Declarations in NASM SyntaxMedium๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe the three equivalent syntax methods used in NASM assembly language to declare single characters and contiguous character strings in memory.
๐Ÿ’ป assembly Snippet
char1: db 65
char2: db 'A'
string1: db 'Hello World', 0
Q144
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Attribute Byte EncodingMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In VGA text mode display memory, which bit of the 8-bit attribute byte represents the Red component of the foreground color?
๐Ÿ’ป assembly Snippet
mov byte [es:di+1], 0x04
  1. A.Bit 5
  2. B.Bit 4
  3. C.Bit 3
  4. D.Bit 2
Q145
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Chargen Services and Font BitmapsEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many bytes of storage memory are required to store a single character matrix in an 8x16 VGA font?
  1. A.2 bytes
  2. B.4 bytes
  3. C.8 bytes
  4. D.16 bytes
Q146
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ MS-DOS Display Modes and Text Mode VRAMEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which primary video display mode is utilized by default by the MS-DOS operating system command line interface?
  1. A.Character-based mode (Text mode)
  2. B.Graphics-based mode
  3. C.Numeric-based mode
  4. D.Console bitmap mode
Q147
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Font Bitmaps and Memory StorageEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many bytes of storage memory are required to store a single character bitmap glyph in an 8x16 font?
  1. A.2 bytes
  2. B.4 bytes
  3. C.8 bytes
  4. D.16 bytes
Q148
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ BIOS Video Service CategoriesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In PC BIOS architecture, into how many broad categories are video display services categorized?
  1. A.2 categories
  2. B.3 categories
  3. C.4 categories
  4. D.5 categories
Q149
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Font Character Bitmaps and VRAM StorageEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many bytes of storage memory are required to store an 8x16 VGA font character matrix in chargen memory?
  1. A.3 bytes
  2. B.4 bytes
  3. C.8 bytes
  4. D.16 bytes
Q150
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Video RAM Memory LayoutEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In VGA text mode video memory, what does the byte stored at the higher memory address (+1 byte offset) of a screen location word represent?
๐Ÿ’ป 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