Ch 10: Hardware Interrupts and PIC 8259

189 Questions189 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 161 โ€“ 170 of 189 Questions
Page 17 of 19
Q161
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ RET Instruction Stack Pointer IncrementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
After the execution of a standard near return instruction 'RET', what modification occurs to the Stack Pointer (SP) register?
๐Ÿ’ป assembly Snippet
ret
  1. A.SP is incremented by 2
  2. B.SP is decremented by 2
  3. C.SP is incremented by 1
  4. D.SP is decremented by 1
Q162
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Video RAM Attribute Byte FunctionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In text-mode Video RAM, each screen character cell consists of 2 bytes. The second byte (attribute byte) holds:
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741  ; 0x41 = 'A' (1st byte), 0x07 = Attribute (2nd byte)
  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
Q163
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Numerical Digit to ASCII Conversion (+0x30)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In order to convert a numerical single-digit value (0โ€“9) into its corresponding ASCII character representation, which operation is performed?
๐Ÿ’ป 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
Q164
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Video RAM Byte Offset Screen Coordinate CalculationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Executing the assembly instruction 'MOV WORD [ES:160], 0x1230' writes a character '0' to text-mode Video RAM at which screen location?
๐Ÿ’ป 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
Q165
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Video RAM Attribute Byte Background Red Bit 6Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8-bit text-mode Video RAM attribute byte, which bit position controls the Red component of the background color?
  1. A.Bit 3
  2. B.Bit 4
  3. C.Bit 5
  4. D.Bit 6
Q166
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Video RAM Attribute Byte Foreground Blue Bit 0Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8-bit text-mode Video RAM attribute byte, which bit position controls the Blue component of the foreground text color?
  1. A.Bit 0
  2. B.Bit 1
  3. C.Bit 2
  4. D.Bit 3
Q167
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Clear Screen Video Memory Word Value (0x0720)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly video routines, the clear screen operation initializes the entire text Video RAM block by writing which 16-bit word value?
๐Ÿ’ป assembly Snippet
mov ax, 0x0720
rep stosw
  1. A.0x0417
  2. B.0x0714
  3. C.0x0741
  4. D.0x0720
Q168
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Traditional C vs Pascal Calling ConventionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many traditional procedure parameter passing calling conventions (C and Pascal) exist in standard assembly integration?
  1. A.1
  2. B.2
  3. C.3
  4. D.4
Q169
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ RETF Far Return Stack Popping SequenceEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing a far return instruction 'RETF', which register receives the offset component popped off the stack first?
๐Ÿ’ป assembly Snippet
retf
  1. A.BP
  2. B.IP
  3. C.SP
  4. D.SI
Q170
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ RET N Subroutine Stack Frame CleanupEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
After the execution of the instruction 'RET 2' (near return with 2-byte parameter cleanup), what is the total change to the Stack Pointer (SP) register?
๐Ÿ’ป assembly Snippet
ret 2
  1. A.SP is incremented by 2
  2. B.SP is decremented by 2
  3. C.SP is incremented by 4
  4. D.SP is decremented by 4