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 11 โ€“ 20 of 141 Questions
Page 2 of 15
Q11
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.4. Device DriversEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are the two primary categories of I/O hardware devices used in PC computer architecture?
Q12
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.2. Thread Management and Context SwitchingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a multitasking environment, each individual thread maintains its own stack enabling independent function calls, parameter passing, and ________ variables.
  1. A.local
  2. B.global
  3. C.legal
  4. D.illegal
Q13
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.4. Device Drivers and Device Attribute WordEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the Device Header Device Attribute Word, which bit decides whether the device driver is a Character Device or a Block Device?
  1. A.Bit 15
  2. B.Bit 12
  3. C.Bit 13
  4. D.Bit 14
Q14
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.2. Process Control Block (PCB) and Context SwitchingHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write 8088 assembly language instructions to save the register values of CX, DX, SI, DI, BP, and ES into the current Process Control Block (PCB) structure in the specified order.
๐Ÿ’ป assembly Snippet
mov [bx+0], cx
mov [bx+2], dx
mov [bx+4], si
mov [bx+6], di
mov [bx+8], bp
mov [bx+10], es
Q15
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.2. Process Control Block (PCB) and Addressing ModesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Consider the instruction `mov [pcb+bx+0], ax` which saves the AX register into the Process Control Block (PCB). Explain the addressing mode used and the role of PCB register saving in context switching.
๐Ÿ’ป assembly Snippet
mov [pcb+bx+0], ax
Q16
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Multitasking, Processes, and Multi-Threading ConceptsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In multi-threaded software architectures, thread creation and management can be performed at which level(s)?
  1. A.User-level or Kernel-level
  2. B.Only User-level
  3. C.Only Kernel-level
  4. D.Neither User-level nor Kernel-level
Q17
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Multitasking, Multi-threading, and Thread CreationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In multitasking and multi-threaded system design, thread creation can be ________.
  1. A.Static or Dynamic
  2. B.Static only
  3. C.Dynamic only
  4. D.Neither static nor dynamic
Q18
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Thread Scheduling and Process Control BlocksEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The thread registration code initializes the PCB/TCB (Thread Control Block) and adds it to the active task list so that the ________ will assign it CPU time slots.
  1. A.Scheduler
  2. B.Assembler
  3. C.Linker
  4. D.Debugger
Q19
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Thread Context and Local Variable StacksEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In multithreaded programming, each individual thread possesses its own stack, permitting function calls, parameters, and ________ variables.
  1. A.local
  2. B.global
  3. C.legal
  4. D.illegal
Q20
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Thread Context and Local Stack FramesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In multithreaded architecture, each thread has its own stack, allowing function calls, parameters, and ________ variables.
  1. A.Local
  2. B.Global
  3. C.Legal
  4. D.Illegal