Ch 13: Multitasking & Cooperative Kernels

141 Questions141 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 21 โ€“ 30 of 141 Questions
Page 3 of 15
Q21
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Multitasking, Multi-threading, and Thread CreationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In multitasking systems, the creation of threads can be ________.
  1. A.Both Static and Dynamic
  2. B.Static only
  3. C.Dynamic only
  4. D.Neither Static nor Dynamic
Q22
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Operating System Concepts (PSP Command Tail Offset 0x82)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a DOS COM executable file, the first command-line parameter text is stored starting at which offset within the Program Segment Prefix (PSP)?
  1. A.0x80
  2. B.0x82
  3. C.0x84
  4. D.0x86
Q23
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Operating System Concepts (DOS INT 0x21 Function 0x3D Error Handling)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When calling DOS service `INT 0x21` with function `AH = 0x3D` (Open File), if the file cannot be opened, how does DOS indicate the error?
๐Ÿ’ป assembly Snippet
mov ah, 0x3d
mov al, 0
mov dx, filename
int 0x21
jc file_open_error ; Jumps if CF == 1
  1. A.CF will contain 1
  2. B.CF will contain 0
  3. C.ZF will contain 1
  4. D.ZF will contain 0
Q24
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Operating System Concepts (Multitasking and OS Scheduler)Mediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In operating system kernel multithreading, thread registration code initializes a Process Control Block (PCB) and attaches it to the ready queue list so that which OS component can assign it CPU execution time?
  1. A.Assembler
  2. B.Scheduler
  3. C.Linker
  4. D.Debugger
Q25
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Operating System Concepts (Static and Dynamic Thread Creation)Easyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In operating systems and concurrent programming, thread creation can be __________.
  1. A.Static
  2. B.Dynamic
  3. C.Both
  4. D.None of the above
Q26
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Operating System Concepts (Multitasking Context Switching)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During context switching in an operating system kernel, register states and stack pointers for all active tasks/threads are saved during __________.
  1. A.Multitasking
  2. B.Multi Processing
  3. C.Function Call
  4. D.BIOS
Q27
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Multitasking and Process Management (Multitasking OS Scheduler)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Thread registration routines initialize the Process Control Block (PCB) and insert it into the ready queue linked list so that which operating system component can allocate CPU execution turns to it?
  1. A.Assembler
  2. B.Linker
  3. C.Scheduler
  4. D.Debugger
Q28
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. High-Level Language Interface (C vs Pascal Calling Conventions)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many prevalent parameter passing / function calling conventions exist and are primarily discussed in assembly language programming (specifically C and Pascal calling conventions)?
  1. A.1
  2. B.2
  3. C.3
  4. D.4
Q29
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. High-Level Language Interface (C vs Pascal Stack Parameter Cleanup Responsibility)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Who is responsible for removing parameters from the stack when calling a function in the C calling convention versus the Pascal calling convention?
๐Ÿ’ป assembly Snippet
; C Calling Convention (Caller cleans stack):
call c_func
add sp, 4 ; Caller removes 4 bytes of parameters

; Pascal Calling Convention (Callee cleans stack):
call pascal_func
; Inside pascal_func: ret 4 ; Callee removes 4 bytes
Q30
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ Storage Access Using BIOS Disk ServicesMediumโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How is data written directly to a disk sector using BIOS disk services in assembly language?
๐Ÿ’ป assembly Snippet
mov ah, 0x03
mov al, 1
mov ch, 0
mov cl, 2
mov dh, 1
mov dl, 0
mov bx, buffer
int 0x13