Ch 16: Interfacing Assembly with C/C++

69 Questions69 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 41 โ€“ 50 of 69 Questions
Page 5 of 7
Q41
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ Extended ASCII Semi-Graphics and Text User InterfacesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why did IBM introduce extended ASCII semi-graphics characters (codes 128 to 255) when the IBM PC was launched?
Q42
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ Standard vs Extended ASCII Character Set SizesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many total character symbols are defined in standard 7-bit ASCII and IBM Extended 8-bit ASCII, respectively?
  1. A.64 and 128
  2. B.128 and 256
  3. C.256 and 512
  4. D.128 and 512
Q43
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ ASCII Table Contiguous Structure and Case/Digit ConversionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain how the contiguous arrangement of ASCII character codes simplifies case conversion (uppercase/lowercase) and digit-to-ASCII conversion in 8088 assembly language.
๐Ÿ’ป assembly Snippet
add al, 0x30
sub bl, 0x20
Q44
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ Memory-Mapped Video RAM Architecture and Screen ControlMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe how the CPU accesses Video Memory (VGA Text Mode RAM) via Memory-Mapped I/O, and explain how screen manipulation works at the hardware memory bus level.
๐Ÿ’ป assembly Snippet
mov ax, 0xb800
mov es, ax
Q45
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 2D Screen to 1D Linear Video Memory Mapping FormulaMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard 80x25 text mode, how is a 2D screen mapped into 1D linear video memory? State the memory size per character cell and give the formula for calculating the byte offset of a character at row R and column C.
๐Ÿ’ป assembly Snippet
; Offset = (row * 80 + col) * 2
Q46
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ Core Principles of VGA Text Mode Video RAMEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Summarize the three core principles of VGA text mode display memory architecture in IBM PC systems.
Q47
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ Display Memory Standardization and Base Address 0xB800Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why was the physical memory address for color text mode display memory standardized at 0xB8000 (segment base 0xB800), and how does the CPU load segment registers to access it?
๐Ÿ’ป assembly Snippet
mov ax, 0xb800
mov es, ax
mov byte [es:0], 'A'
Q48
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ VGA Text Mode Attribute Byte StructureMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the purpose and structure of the Video Attribute Byte in VGA 80x25 text mode display memory.
๐Ÿ’ป assembly Snippet
mov byte [es:1], 0x07
Q49
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ Video RAM Segment and Full Screen Memory Size CalculationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard IBM PC 80x25 text mode, what physical memory segment register value is loaded to target color video RAM, and how many total words are required to display a full screen?
  1. A.Segment 0xA000 and 1,000 words
  2. B.Segment 0xB000 and 4,000 words
  3. C.Segment 0xB800 and 2,000 words
  4. D.Segment 0xC000 and 2,000 words
Q50
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ VGA Text Mode Attribute Byte Bit Layout and Color CalculationsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the detailed bit layout of the 8-bit Video Attribute Byte in VGA 80x25 text mode, detailing how foreground colors (16 possibilities), background colors (8 possibilities), and character blinking are controlled.
๐Ÿ’ป assembly Snippet
mov byte [es:1], 0b10000111