System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2881: InterlockedIncrement() takes a parameter of type ________.
- A: int*
- B: LONG volatile*
- C: char*
- D: double*
View Answer
B
Q2882: The variable used with InterlockedIncrement() must be stored at a ________.
- A: 1-byte boundary
- B: 2-byte boundary
- C: 4-byte boundary
- D: 16-byte boundary
View Answer
C
Q2883: InterlockedIncrement64() is used in ________ systems.
- A: 8-bit
- B: 16-bit
- C: 32-bit
- D: 64-bit
View Answer
D
Q2884: For 64-bit interlocked functions, the variable should be stored at ________.
- A: 4-byte boundary
- B: 2-byte boundary
- C: 8-byte boundary
- D: 1-byte boundary
View Answer
C
Q2885: The function InterlockedDecrement(&N) will ________.
- A: delete N
- B: return N*2
- C: decrement N and return new value
- D: print N
View Answer
C
Q2886: Interlocked functions work on variables declared as ________.
- A: static
- B: local
- C: volatile
- D: global
View Answer
C
Q2887: Using InterlockedIncrement() twice to increase value by 2 is ________.
- A: recommended
- B: unreliable
- C: required
- D: optimal
View Answer
B
Q2888: Which function is used to safely increase a variable by more than one atomically?
- A: InterlockedIncrement()
- B: InterlockedFlush()
- C: InterlockedExchangeAdd()
- D: InterlockedDelay()
View Answer
C
Q2889: Interlocked functions ensure atomicity in ________.
- A: thread scheduling
- B: arithmetic on volatile variables
- C: memory paging
- D: file access
View Answer
B
Q2890: The value of N can be changed by another thread ________ the Interlocked function returns.
- A: before
- B: after
- C: while
- D: all of these
View Answer
D