Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2701: The programmer can specify a thread’s ________ to limit which processors run that thread.
  • A: processor affinity
  • B: priority
  • C: time slice
  • D: state
View Answer
A

Q2702: The function to set a thread’s preferred processor is ________.
  • A: SetThreadIdealProcessor
  • B: SetProcessAffinityMask
  • C: GetProcessAffinityMask
  • D: GetThreadPriority
View Answer
A

Q2703: SetProcessAffinityMask helps allocate ________ to threads to assure responsiveness.
  • A: processors
  • B: memory
  • C: time slices
  • D: priority
View Answer
A

Q2704: The scheduler places a ready thread on any available ________ unless restricted by affinity.
  • A: processor
  • B: thread
  • C: memory
  • D: priority
View Answer
A

Q2705: The term used when a thread wakes up after waiting is that it transitions to the ________ state.
  • A: ready
  • B: running
  • C: waiting
  • D: terminated
View Answer
A

Q2706: Threads execute ________, which means they do not run in a fixed sequence by default.
  • A: asynchronously
  • B: synchronously
  • C: sequentially
  • D: repeatedly
View Answer
A

Q2707: Without explicit sequencing, thread execution order is ________.
  • A: unpredictable
  • B: fixed
  • C: controlled
  • D: linear
View Answer
A

Q2708: It is possible for a child thread to run to completion before the ________ thread.
  • A: parent
  • B: sibling
  • C: scheduler
  • D: main
View Answer
A

Q2709: On a multiprocessor computer, the parent and child threads may run ________.
  • A: concurrently
  • B: sequentially
  • C: suspended
  • D: terminated
View Answer
A

Q2710: Initialization required by a child thread must be performed before calling ________.
  • A: CreateThread()
  • B: StartThread()
  • C: RunThread()
  • D: ExecuteThread()
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now