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 201 โ€“ 210 of 216 Questions
Page 21 of 22
Q201
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.2. Clearing the ScreenEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To clear the text-mode display screen, an assembly subroutine initializes the entire block of video memory to which 16-bit value?
๐Ÿ’ป assembly Snippet
mov ax, 0x0720
rep stosw
  1. A.0x0417
  2. B.0x0714
  3. C.0x0741
  4. D.0x0720
Q202
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In text-mode Video RAM, in the 16-bit word designated for one screen location, what does the byte at the higher memory address (odd byte offset) hold?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741  ; High byte 0x07 = Attribute, Low byte 0x41 = ASCII 'A'
  1. A.The character code
  2. B.The attribute byte
  3. C.The parameters
  4. D.The dimensions
Q203
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Text Mode Display MemoryEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following instruction sequences correctly sets up Extra Segment register ES to point to color text-mode Video RAM base address?
๐Ÿ’ป 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
Q204
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Text Mode Display MemoryEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In color text-mode Video RAM, each character screen location corresponds to how many bytes of memory?
  1. A.One byte
  2. B.Two bytes
  3. C.Four bytes
  4. D.Eight bytes
Q205
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Executing the instruction 'MOV WORD [ES:0], 0x0741' displays character 'A' on screen. What is the resulting background color of the screen character cell?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741
  1. A.Black
  2. B.White
  3. C.Red
  4. D.Blue
Q206
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.2. ASCII Character CodingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Standard ASCII character encoding defines 128 distinct characters with numerical code values ranging from:
  1. A.1 to 128
  2. B.0 to 127
  3. C.1 to 256
  4. D.0 to 255
Q207
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.2. ASCII Character CodingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the character code ________ (ASCII for 'A') is written to Video RAM in text mode, the video controller turns pixels on and off so that character 'A' appears on screen.
๐Ÿ’ป assembly Snippet
mov byte [es:0], 0x41  ; Displays 'A'
  1. A.0x60
  2. B.0x90
  3. C.0x30
  4. D.0x41
Q208
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8-bit text-mode character attribute byte, which bit controls the Blinking attribute (or background intensity)?
  1. A.Bit 6
  2. B.Bit 7
  3. C.Bit 5
  4. D.Bit 3
Q209
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8-bit text-mode character attribute byte, which bit controls the Intensity component (brightness) of the foreground color?
  1. A.Bit 4
  2. B.Bit 5
  3. C.Bit 3
  4. D.Bit 7
Q210
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8-bit text-mode character attribute byte, which bit controls the Green component of the background color?
  1. A.Bit 1
  2. B.Bit 5
  3. C.Bit 3
  4. D.Bit 7