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 151 โ€“ 160 of 216 Questions
Page 16 of 22
Q151
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ Video Memory Mapping and Segment InitializationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which pair of assembly instructions correctly loads the video memory segment address into the Extra Segment (ES) register to access VGA text mode RAM?
๐Ÿ’ป 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
Q152
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Cell Memory GranularityEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In VGA text mode display memory, how many memory bytes are allocated to represent a single screen character position?
  1. A.One byte
  2. B.Two bytes
  3. C.Four bytes
  4. D.Eight bytes
Q153
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Attribute Byte Color DecodingMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Executing the instruction 'MOV WORD [ES:0], 0x0741' displays character 'A' on screen. What will be the background color of the character cell?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741
  1. A.Black
  2. B.White
  3. C.Red
  4. D.Blue
Q154
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Font Bitmaps and Memory StorageEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many bytes of storage memory are required to store an 8x16 font character matrix in chargen memory?
  1. A.2 bytes
  2. B.4 bytes
  3. C.8 bytes
  4. D.16 bytes
Q155
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Memory Character and Attribute EncodingMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Executing 'MOV WORD [ES:160], 0x1230' writes to VGA text mode memory. What ASCII character is represented by the lower byte value 0x30?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230
  1. A.Character 'A'
  2. B.Character 'B'
  3. C.Character '0'
  4. D.Character '1'
Q156
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Offset Calculation (Row/Column Mapping)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
At which screen position will the instruction 'MOV WORD [ES:160], 0x1230' display a character in standard 80x25 VGA text mode?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230
  1. A.First column of second row
  2. B.Second column of first row
  3. C.Second column of second row
  4. D.First column of third row
Q157
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Character ASCII MappingMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the instruction 'MOV WORD [ES:160], 0x1230', which ASCII character is written to VGA text mode video RAM?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230
  1. A.Character 'A'
  2. B.Character 'B'
  3. C.Character '0'
  4. D.Character '1'
Q158
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Character ASCII MappingMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the assembly instruction 'MOV WORD [ES:160], 0x1230', which character is represented by the lower byte value 0x30 in video memory?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230
  1. A.Character 'A'
  2. B.Character 'B'
  3. C.Character '0'
  4. D.Character '1'
Q159
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ VGA Text Mode Attribute Byte EncodingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard VGA text mode memory layout, what does the second byte (odd byte offset) of a 16-bit video word represent for a single screen cell location?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741
  1. A.The physical dimensions of the screen
  2. B.The character position on the screen
  3. C.Character color and attribute on the screen
  4. D.ASCII code of the displayed character
Q160
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ ASCII Character Conversion for Numeric DigitsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How do you convert a single numeric decimal digit (0โ€“9) into its corresponding ASCII character code in assembly language?
๐Ÿ’ป assembly Snippet
add al, 0x30
  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