Ch 12: Terminate and Stay Resident (TSR)

127 Questions127 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 127 Questions
Page 4 of 13
Q31
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ DOS EXEC Parameter Block (EPB) Structure (INT 21h AH=4Bh)Hard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe the layout and structure of the EXEC Parameter Block (EPB) passed to MS-DOS INT 21h Service 4Bh (AH = 4Bh, AL = 00h) when loading and executing a child program.
๐Ÿ’ป assembly Snippet
epb:
    dw 0           ; Inherit parent environment
    dd cmd_line    ; Pointer to command line tail
    dd fcb1        ; Pointer to FCB 1
    dd fcb2        ; Pointer to FCB 2
Q32
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ DOS Buffered Keyboard Input Structure (INT 21h AH=0Ah)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a DOS buffered keyboard input structure (INT 21h Service 0Ah), which byte offset stores the count of characters actually read upon return?
๐Ÿ’ป assembly Snippet
buffer: db 80, 0
times 80 db 0
  1. A.First byte (Offset +0)
  2. B.Second byte (Offset +1)
  3. C.Third byte (Offset +2)
  4. D.Fourth byte (Offset +3)
Q33
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ DOS Device Driver Attribute Word (Bit 15)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In an MS-DOS Device Driver Header, which bit in the 16-bit Device Attribute Word determines whether the driver represents a character device or a block device?
  1. A.Bit 12
  2. B.Bit 13
  3. C.Bit 14
  4. D.Bit 15
Q34
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ DOS Character Input Service (INT 21h AH=01h)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
DOS INT 21h Service 01h reads a character from standard input with echo. In which register is the ASCII value returned?
๐Ÿ’ป assembly Snippet
mov ah, 0x01
int 0x21
  1. A.AL register
  2. B.BL register
  3. C.CL register
  4. D.BH register
Q35
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ DOS Device Driver Header Attribute Word (Bit 15)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In an MS-DOS Device Driver Header, which bit in the 16-bit Device Attribute Word determines whether the device is a character device or a block device?
  1. A.Bit 12
  2. B.Bit 13
  3. C.Bit 14
  4. D.Bit 15
Q36
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ MS-DOS Device Driver Architecture and Header StructureMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are device drivers in operating systems? Explain their primary role and describe the device driver header structure in MS-DOS.
๐Ÿ’ป assembly Snippet
driver_header:
    dd -1               ; Link to next driver
    dw 0x8000           ; Attribute word (Character device)
    dw strategy_routine ; Strategy offset
    dw interrupt_routine; Interrupt offset
    db 1                ; Units supported
Q37
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ Bitwise Logical Operations (AND, OR, XOR, NOT)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain how bitwise logical instructions (AND, OR, XOR, NOT) operate on registers in 8088 assembly language using 'AND AX, BX' as an example.
๐Ÿ’ป assembly Snippet
and ax, bx
Q38
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ Bitwise AND and OR OperationsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the bitwise AND and OR instructions in 8088 assembly language, detailing their operational behavior on corresponding bits and supported operand forms.
๐Ÿ’ป assembly Snippet
and ax, bx
or byte [mem], 5
Q39
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ Bitwise XOR Instruction and Reversibility ApplicationsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe the operational characteristics of the bitwise XOR (Exclusive OR) instruction in 8088 assembly language. Why is XOR reversible, and what are its practical applications?
๐Ÿ’ป assembly Snippet
xor ax, ax
xor byte [mem], 5
Q40
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ NOT Instruction and One's ComplementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the operation of the bitwise NOT instruction in 8088 assembly language and highlight how it differs from AND, OR, and XOR.
๐Ÿ’ป assembly Snippet
not ax
not byte [mem]