Ch 07: Video Memory & Screen Display

264 Questions264 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 31 โ€“ 40 of 264 Questions
Page 4 of 27
Q31
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Number Printing Algorithm)Hardโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Outline the step-by-step algorithm and assembly implementation for printing a multi-digit decimal integer (e.g., 352) to the screen.
๐Ÿ’ป assembly Snippet
mov ax, 352 ; Number to print
call printnum
Q32
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (ASCII Code 0x30 for Character '0')Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the video RAM instruction `mov word [es:160], 0x1230`, what ASCII character code is represented by the byte value `0x30`?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230 ; 0x12 = Attribute, 0x30 = ASCII for '0'
  1. A.A
  2. B.B
  3. C.0
  4. D.1
Q33
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Video RAM Offset Calculation for Row 2)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard 80x25 text mode video memory, at what screen position will the execution of instruction `mov word [es:160], 0x1230` display a character?
  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
Q34
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REP Repeat Prefix)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which special instruction prefix is used in x86 assembly language to repeat a string primitive instruction for a block of memory?
๐Ÿ’ป assembly Snippet
rep movsb ; Repeats MOVSB CX times
  1. A.rep
  2. B.repeat
  3. C.repb
  4. D.repe
Q35
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Standard ASCII Character Range)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Standard ASCII character encoding consists of 128 characters with assigned numerical values ranging from __________.
  1. A.1 to 129
  2. B.0 to 127
  3. C.0 to 128
  4. D.None of the Given
Q36
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (ASCII Code 0x41 for Character 'A')Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When ASCII code __________ is sent to VGA text-mode video RAM, the display generator turns pixels on and off to render the uppercase character 'A' on screen.
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741 ; Writes ASCII 0x41 ('A') with light gray attribute 0x07
  1. A.0x60
  2. B.0x90
  3. C.0x30
  4. D.0x41
Q37
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 7 Blinking)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text mode attribute byte formatting (`B IRGB I rgb`), which bit position controls the Blinking feature of foreground text?
  1. A.6
  2. B.7
  3. C.5
  4. D.3
Q38
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 3 Intensity)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text mode attribute byte formatting (`B IRGB I rgb`), which bit position controls the Intensity component of foreground color?
  1. A.4
  2. B.5
  3. C.3
  4. D.7
Q39
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 5 Background Green)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text mode attribute byte formatting (`B IRGB I rgb`), which bit position controls the Green component of the background color?
  1. A.1
  2. B.5
  3. C.3
  4. D.7
Q40
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (NASM String Definition Formats)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In NASM assembly language syntax, string byte data can be defined using which valid format?
๐Ÿ’ป assembly Snippet
str1: db 0x61, 0x62, 0x63
str2: db 'a', 'b', 'c'
str3: db 'abc'
  1. A.db 0x61, 0x62, 0x63
  2. B.db 'a', 'b', 'c'
  3. C.db 'abc'
  4. D.All of the above