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 11 โ€“ 20 of 127 Questions
Page 2 of 13
Q11
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.1. DOS Program Segment Prefix (COM File Entry Point Offset 0x0100)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a DOS executable program formatted as a `.COM` file, the entry point and first program instruction must be located at which segment offset?
๐Ÿ’ป assembly Snippet
[org 0x0100] ; Entry point for DOS COM files
  1. A.0x0010
  2. B.0x0100
  3. C.0x1000
  4. D.0x0000
Q12
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.1. Multitasking and Threads (Dynamic Thread Creation)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In operating systems and thread management, the creation of threads can be __________.
  1. A.static
  2. B.dynamic
  3. C.easy
  4. D.difficult
Q13
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.1. Multitasking and Threads (Scheduler Task Scheduling)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The thread registration code initializes the Process Control Block (PCB) and adds it to the active task linked list so that the __________ will allocate CPU execution time to it.
  1. A.assembler
  2. B.scheduler
  3. C.linker
  4. D.debugger
Q14
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.1. Multitasking and Threads (Timer Interrupt Frequency and Context Switching)Mediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How can the scheduling frequency and execution speed of preemptive multitasking be increased in an assembly language environment?
๐Ÿ’ป assembly Snippet
; Reprogramming PIT Channel 0 for higher frequency
mov al, 0x36   ; Channel 0, LSB/MSB, square wave mode
out 0x43, al
mov ax, 11931  ; Higher frequency divisor (100 Hz timer)
out 0x40, al   ; Send LSB
mov al, ah
out 0x40, al   ; Send MSB
Q15
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.1. Multitasking and Threads (PCB Memory Allocation Directive)Mediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write the assembly language instruction/directive required to allocate memory space for 32 Process Control Blocks (PCBs) in a multitasking kernel where each PCB consists of 16 word registers.
๐Ÿ’ป assembly Snippet
pcb: times 32*16 dw 0 ; Allocates memory space for 32 PCBs
Q16
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ DOS Keyboard Input Services (INT 21h Service 0Ah)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When using DOS buffered keyboard input (INT 21h, Service 0Ah), which byte in the parameter buffer stores the actual number of characters entered by the user?
๐Ÿ’ป assembly Snippet
buffer: db 80, 0
        times 80 db 0
  1. A.First byte
  2. B.Second byte
  3. C.Third byte
  4. D.Fourth byte
Q17
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ DOS Device Driver ArchitectureMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a DOS Device Driver header, which bit in the Device Attribute Word determines whether the device is a character device or a block device?
๐Ÿ’ป assembly Snippet
dw 0x8000    ; Device Attribute Word with Bit 15 set (Character Device)
  1. A.Bit 12
  2. B.Bit 13
  3. C.Bit 14
  4. D.Bit 15
Q18
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ DOS Buffered Input Services (INT 21h Service 0Ah)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In DOS buffered keyboard input (INT 21h, Service 0Ah), which byte in the parameter buffer stores the actual number of characters read upon return?
๐Ÿ’ป assembly Snippet
buffer: db 80, 0
        times 80 db 0
  1. A.First byte
  2. B.Second byte
  3. C.Third byte
  4. D.Fourth byte
Q19
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ DOS Services and Keyboard Input HandlingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
DOS INT 21h Service 01h reads a single character from standard input with echo. In which register is the ASCII character code returned?
๐Ÿ’ป assembly Snippet
mov ah, 0x01
int 0x21
  1. A.AL
  2. B.BL
  3. C.CL
  4. D.BH
Q20
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 12๐Ÿท๏ธ Device Driver Architecture: Character vs Block DevicesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Classify and explain the two main categories of peripheral devices used in computer systems.