Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3451: In InterlockedExchangeAdd(LONG volatile *Addend, LONG Increment), Increment is ________ to *Addend.
  • A: Added
  • B: Subtracted
  • C: Multiplied
  • D: Divided
View Answer
A

Q3452: Interlocked functions ensure that operations on shared variables are ________ to prevent race conditions.
  • A: Atomic
  • B: Delayed
  • C: Concurrent
  • D: Queued
View Answer
A

Q3453: Which of the following is NOT an interlocked function?
  • A: InterlockedMultiply
  • B: InterlockedIncrement
  • C: InterlockedExchange
  • D: InterlockedDecrement
View Answer
A

Q3454: Atomic machine instructions used in interlocked functions are implemented at the ________ level.
  • A: Hardware
  • B: Software
  • C: Application
  • D: Network
View Answer
A

Q3455: To prevent race conditions, operations on shared variables must be ________.
  • A: Atomic
  • B: Concurrent
  • C: Parallel
  • D: Independent
View Answer
A

Q3456: When multiple threads run concurrently, they compete for ________.
  • A: CPU time
  • B: Resources
  • C: Network bandwidth
  • D: Input devices
View Answer
B

Q3457: Memory allocated dynamically in multithreading is allocated from the ________.
  • A: Stack
  • B: Heap
  • C: Register
  • D: Cache
View Answer
B

Q3458: Threads use ________ and free() functions to allocate and free memory dynamically.
  • A: malloc() and free()
  • B: new() and delete()
  • C: HeapAlloc() and HeapFree()
  • D: HeapCreate() and HeapDestroy()
View Answer
A

Q3459: To manage memory allocation safely in multithreading, a thread can create a handle to its own heap using ________.
  • A: malloc()
  • B: HeapCreate()
  • C: HeapAlloc()
  • D: HeapFree()
View Answer
B

Q3460: Instead of malloc() and free(), memory management in threads can be performed using ________.
  • A: HeapCreate() and HeapDestroy()
  • B: HeapAlloc() and HeapFree()
  • C: new() and delete()
  • D: delete() and free()
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now