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 191 โ€“ 200 of 216 Questions
Page 20 of 22
Q191
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Text Mode Display MemoryEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the assembly instruction 'MOV WORD [ES:160], 0x1230', lower byte 0x30 represents which ASCII character?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230
  1. A.A
  2. B.B
  3. C.0
  4. D.1
Q192
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In text-mode Video RAM, each screen location is allocated two bytes (one 16-bit word). What does the second byte (the upper byte) represent?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741  ; 'A' (0x41) with light gray attribute (0x07)
  1. A.The dimensions of the screen
  2. B.Character position on the screen
  3. C.Character color and attribute on the screen
  4. D.ASCII code of the character
Q193
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Text Mode Display MemoryEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To convert a single decimal digit value (0โ€“9) to its corresponding ASCII character code in assembly language, which operation is performed?
๐Ÿ’ป assembly Snippet
add al, 0x30  ; Convert digit in AL to ASCII
  1. A.Add 0x30 to the digit
  2. B.Subtract 0x30 from the digit
  3. C.Add 0x61 to the digit
  4. D.Subtract 0x61 from the digit
Q194
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Text Mode Display MemoryMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Executing the instruction 'MOV WORD [ES:160], 0x1230' prints the character '0' (ASCII 0x30) at which screen location in 80x25 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
Q195
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8-bit text-mode video attribute byte (B-R-G-B-I-R-G-B format), which bit bit-position represents the Red component of the background color?
  1. A.Bit 3
  2. B.Bit 4
  3. C.Bit 5
  4. D.Bit 6
Q196
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8-bit text-mode video attribute byte, which bit position represents the Blue component of the foreground color?
  1. A.Bit 0
  2. B.Bit 1
  3. C.Bit 2
  4. D.Bit 3
Q197
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.2. Clearing the ScreenEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To clear the text-mode display screen, an assembly subroutine initializes every word cell in video memory to which hex value?
๐Ÿ’ป assembly Snippet
mov ax, 0x0720
rep stosw
  1. A.0x0417
  2. B.0x0714
  3. C.0x0741
  4. D.0x0720
Q198
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In text-mode Video RAM, each character cell occupies 2 bytes (one 16-bit word). What does the second byte (the upper byte) hold?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741  ; 'A' (0x41) with attribute (0x07)
  1. A.Character color and attribute on the screen
  2. B.The dimensions of the screen
  3. C.Character position on the screen
  4. D.ASCII code of the character
Q199
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Text Mode Display MemoryEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To convert any single numerical digit (0โ€“9) to its ASCII character representation, which operation is performed?
๐Ÿ’ป assembly Snippet
add al, 0x30  ; Convert digit in AL to ASCII
  1. A.Add 0x30 to the digit
  2. B.Subtract 0x30 from the digit
  3. C.Add 0x61 to the digit
  4. D.Subtract 0x61 from the digit
Q200
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8-bit text-mode video attribute byte (B-R-G-B-I-R-G-B format), which bit position represents the Red component of the background color?
  1. A.Bit 3
  2. B.Bit 4
  3. C.Bit 5
  4. D.Bit 6