Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2561: Why is multithreading preferred over multitasking in this example?
  • A: Multitasking is slower
  • B: Multithreading allows concurrent I/O and processing
  • C: Multitasking uses more memory
  • D: Multithreading uses no CPU
View Answer
B

Q2562: What happens to a thread handle after the thread exits?
  • A: It is reused
  • B: It is closed
  • C: It is printed
  • D: It is duplicated
View Answer
B

Q2563: WaitForSingleObject waits for ______ thread/process to finish.
  • A: Any
  • B: All
  • C: A single
  • D: Some
View Answer
C

Q2564: Which variable holds handles of all created threads?
  • A: tHandle
  • B: threadHandle
  • C: threads[]
  • D: threadList
View Answer
A

Q2565: Which function copies the pattern string into thread argument structure?
  • A: _tcscpy
  • B: _strcpy
  • C: strcpy_s
  • D: memcpy
View Answer
A

Q2566: The _beginthreadex function:
  • A: Allows specifying security attributes
  • B: Returns a HANDLE
  • C: Is simpler than CreateThread
  • D: Allows returning thread status
View Answer
B

Q2567: Temporary files are deleted ______.
  • A: Before thread creation
  • B: After process execution
  • C: Immediately after creation
  • D: After thread handle is closed
View Answer
B

Q2568: In asynchronous I/O, multiple processes can read multiple files ______.
  • A: simultaneously
  • B: sequentially
  • C: only one at a time
  • D: in order
View Answer
A

Q2569: In the boss-worker model of multithreading, who assigns tasks to workers?
  • A: Boss
  • B: Worker
  • C: Client
  • D: Server
View Answer
A

Q2570: In the boss-worker model, how do workers report their results?
  • A: Directly to each other
  • B: Back to the boss
  • C: To the client
  • D: To the server
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now