Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3001: A blocked thread gets access to the critical section when ________ is called.
  • A: ResetCriticalSection()
  • B: DeleteCriticalSection()
  • C: LeaveCriticalSection()
  • D: ReleaseThread()
View Answer
C

Q3002: A thread will remain blocked forever if ________.
  • A: system halts
  • B: no Enter call is made
  • C: no Leave call is made
  • D: critical section is empty
View Answer
C

Q3003: CRITICAL_SECTION supports ________ functions to allow reentry.
  • A: secure
  • B: non-thread-safe
  • C: recursive
  • D: conditional
View Answer
C

Q3004: If TryEnterCriticalSection returns FALSE, it means the CS is ________.
  • A: unallocated
  • B: uninitialized
  • C: owned by another thread
  • D: deleted
View Answer
C

Q3005: CRITICAL_SECTION objects provide better performance over ________ objects.
  • A: synchronization
  • B: user space
  • C: kernel space
  • D: timer
View Answer
C

Q3006: Only ________ thread can access the CS variable at any time.
  • A: one
  • B: two
  • C: multiple
  • D: no
View Answer
A

Q3007: The EnterCriticalSection() function causes ________ if another thread is inside the CS.
  • A: timeout
  • B: error
  • C: blocking
  • D: retry
View Answer
C

Q3008: TryEnterCriticalSection() is used to ________ critical section access.
  • A: enforce
  • B: poll
  • C: skip
  • D: reject
View Answer
B

Q3009: There is ________ timeout mechanism for EnterCriticalSection().
  • A: a short
  • B: an adjustable
  • C: a fixed
  • D: no
View Answer
D

Q3010: The purpose of recursive critical sections is to support ________ functions.
  • A: infinite
  • B: recursive
  • C: exclusive
  • D: static
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now