Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2981: A thread that accesses a locked file without synchronization can cause ________.
  • A: thread safety
  • B: race condition
  • C: modularity
  • D: garbage collection
View Answer
B

Q2982: Using too many synchronization objects without planning may lead to ________.
  • A: optimized execution
  • B: file sharing
  • C: deadlocks
  • D: fast performance
View Answer
C

Q2983: The function WaitForSingleObject() returns when the object is ________.
  • A: hidden
  • B: available
  • C: locked
  • D: null
View Answer
B

Q2984: Synchronization objects like Mutexes and Semaphores exist to avoid ________.
  • A: I/O failures
  • B: deadlocks
  • C: resource conflicts
  • D: function duplication
View Answer
C

Q2985: Critical Sections are mainly used in ________.
  • A: multiple applications
  • B: single-threaded processes
  • C: single-process multithreaded apps
  • D: network protocols
View Answer
C

Q2986: Semaphores use a ________ to count how many threads can access the resource.
  • A: timer
  • B: counter
  • C: flag
  • D: register
View Answer
B

Q2987: Using SRW locks can improve performance over traditional ________.
  • A: threads
  • B: critical sections
  • C: timers
  • D: file streams
View Answer
B

Q2988: A critical section is a part of code that can be executed by ________ at a time.
  • A: all threads
  • B: multiple processes
  • C: one thread
  • D: two processes
View Answer
C

Q2989: Which object does Windows provide for solving the critical section problem?
  • A: MUTEX_OBJECT
  • B: KERNEL_LOCK
  • C: CRITICAL_SECTION
  • D: THREAD_MONITOR
View Answer
C

Q2990: CRITICAL_SECTION objects are initialized using which function?
  • A: InitCS()
  • B: InitializeCriticalSection()
  • C: StartCriticalSection()
  • D: BeginSection()
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now