Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2991: The function to delete a CRITICAL_SECTION is ________.
  • A: EndCS()
  • B: DeleteSection()
  • C: DeleteCriticalSection()
  • D: RemoveCS()
View Answer
C

Q2992: CRITICAL_SECTION objects are used only in ________.
  • A: user space
  • B: kernel space
  • C: network sockets
  • D: system registry
View Answer
A

Q2993: CRITICAL_SECTION objects cannot be ________ among processes.
  • A: copied
  • B: shared
  • C: nested
  • D: terminated
View Answer
B

Q2994: When a thread enters the critical section, it should call ________ on exit.
  • A: ExitCS()
  • B: LeaveCS()
  • C: LeaveCriticalSection()
  • D: FinishCS()
View Answer
C

Q2995: A call to LeaveCriticalSection() must match a call to ________.
  • A: LockCS()
  • B: InitCS()
  • C: EnterCriticalSection()
  • D: UnlockCS()
View Answer
C

Q2996: If a thread tries to enter an already-occupied CRITICAL_SECTION, it gets ________.
  • A: terminated
  • B: blocked
  • C: re-routed
  • D: idle
View Answer
B

Q2997: Recursive critical section means a thread can ________.
  • A: block itself
  • B: enter multiple times
  • C: delete the section
  • D: access it without lock
View Answer
B

Q2998: Windows maintains a ________ when recursive entry into critical sections occurs.
  • A: stack
  • B: log
  • C: counter
  • D: semaphore
View Answer
C

Q2999: The function TryEnterCriticalSection() returns TRUE if ________.
  • A: thread is blocked
  • B: CRITICAL_SECTION is deleted
  • C: current thread owns the section
  • D: entry is denied
View Answer
C

Q3000: CRITICAL_SECTION objects ________ handles.
  • A: require
  • B: have
  • C: do not have
  • D: store
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now