Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3931: SetThreadAffinityMask function returns
  • A: the previous thread affinity mask
  • B: a boolean value
  • C: a pointer
  • D: to the process affinity mask
View Answer
A

Q3932: SetProcessAffinityMask function returns
  • A: a BOOL
  • B: the previous mask
  • C: a pointer
  • D: an integer
View Answer
A

Q3933: The process affinity mask affects
  • A: all the threads in the process
  • B: only the main thread
  • C: only new threads
  • D: only system threads
View Answer
A

Q3934: Initially, thread affinity mask
  • A: is the same as process affinity mask
  • B: zero
  • C: one
  • D: system affinity mask
View Answer
A

Q3935: Process affinity masks are
  • A: bit vectors
  • B: integers
  • C: strings
  • D: floating-point numbers
View Answer
A

Q3936: Which API is used to set the thread affinity mask?
  • A: SetThreadAffinityMask
  • B: GetProcessAffinityMask
  • C: SetProcessAffinityMask
  • D: SetSystemAffinityMask
View Answer
A

Q3937: If the system affinity mask has the bit value '1', it means that the processor is
  • A: configured on the system
  • B: not configured
  • C: disabled
  • D: offline
View Answer
A

Q3938: The thread affinity mask can only be a
  • A: subset of the process affinity mask
  • B: any random value
  • C: always the same as system mask
  • D: always zero
View Answer
A

Q3939: Inter-process communication (IPC) is used to
  • A: pass information among processes
  • B: manage memory
  • C: handle user input
  • D: control threads
View Answer
A

Q3940: A pipe used for IPC is usually
  • A: a file-like object
  • B: a database
  • C: a network socket
  • D: a hardware device
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now