Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3491: Critical sections cost approximately ______ more than interlocked functions.
  • A: 10 times
  • B: 2 times
  • C: 4 times
  • D: Equal performance
View Answer
B

Q3492: Mutexes may cost ______ more than interlocked functions.
  • A: 1 to 5 times
  • B: 2 to 10 times
  • C: 2 to 30 times
  • D: 10 to 100 times
View Answer
C

Q3493: What happens to CS (Critical Section) performance as processor count increases?
  • A: It degrades
  • B: Remains constant
  • C: It improves
  • D: It fluctuates
View Answer
C

Q3494: Mutex performance ______ as processor count increases.
  • A: improves slightly
  • B: degrades rapidly
  • C: remains stable
  • D: increases exponentially
View Answer
B

Q3495: Which version of the program performed fastest overall?
  • A: NS (no sync)
  • B: CS (critical section)
  • C: MX (mutex)
  • D: IN (interlocked)
View Answer
A

Q3496: Which construct aligns memory to avoid cache conflict?
  • A: align_cache()
  • B: cache_avoid()
  • C: align_malloc()
  • D: declspec(align)
View Answer
D

Q3497: align_malloc() is used to ______.
  • A: create threads
  • B: lock variables
  • C: allocate aligned memory
  • D: assign CPU priority
View Answer
C

Q3498: What is measured in real time, user time, and system time?
  • A: Execution complexity
  • B: Memory footprint
  • C: Thread concurrency
  • D: Performance impact
View Answer
D

Q3499: Synchronization introduces ______ that affects performance.
  • A: thread creation
  • B: locking overhead
  • C: system shutdown
  • D: memory leaks
View Answer
B

Q3500: Which two implementations showed nearly equal timing?
  • A: NS and MX
  • B: IN and CS
  • C: NS and IN
  • D: MX and IN
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now