Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3441: Interlocked functions help synchronize access to a variable shared by ________.
  • A: Multiple threads
  • B: Single thread
  • C: Single process
  • D: Single function
View Answer
A

Q3442: Interlocked functions perform operations on variables in an ________ manner.
  • A: Atomic
  • B: Sequential
  • C: Parallel
  • D: Simultaneous
View Answer
A

Q3443: Threads of different processes can use interlocked functions if the variable is in ________.
  • A: Shared memory
  • B: Local memory
  • C: Register
  • D: Cache
View Answer
A

Q3444: Which function combines the steps involved in incrementing a variable atomically?
  • A: InterlockedIncrement
  • B: InterlockedExchange
  • C: InterlockedExchangeAdd
  • D: InterlockedDecrement
View Answer
A

Q3445: Which function atomically decrements a variable?
  • A: InterlockedDecrement
  • B: InterlockedExchange
  • C: Add
  • D: InterlockedIncrement
View Answer
B

Q3446: Interlocked functions are sometimes called ________ because they use atomic machine instructions.
  • A: Compiler intrinsic statements
  • B: Kernel calls
  • C: User functions
  • D: System calls
View Answer
A

Q3447: InterlockedExchange function stores one variable into ________.
  • A: Another variable
  • B: A register
  • C: Memory cache
  • D: A constant
View Answer
A

Q3448: What does InterlockedExchange return?
  • A: Previous value of *Target
  • B: New value
  • C: Value plus one
  • D: Incremented value
View Answer
A

Q3449: The InterlockedExchangeAdd function adds the increment to the ________.
  • A: *Addend
  • B: *Target
  • C: *Value
  • D: *Variable
View Answer
A

Q3450: InterlockedExchangeAdd returns the ________ value of *Addend.
  • A: New
  • B: Old
  • C: Incremented
  • D: Decremented
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now