System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2871: Cache coherency ensures all cores have ________ view of shared variables.
- A: Random
- B: Local
- C: Consistent
- D: Exclusive
View Answer
C
Q2872: Memory barriers can impact performance due to ________ overhead.
- A: Synchronization
- B: Network
- C: Heap
- D: GPU
View Answer
A
Q2873: Moving data from one core to another via main memory may take ________ cycles.
- A: Less than one
- B: A few
- C: Hundreds of
- D: Two
View Answer
C
Q2874: Which of the following ensures cache is coherent across all processors?
- A: Register allocation
- B: Static linking
- C: Memory barriers
- D: File buffers
View Answer
C
Q2875: Using only volatile in a multi-core system might lead to ________ values across threads.
- A: Synchronized
- B: Incoherent
- C: Stable
- D: Protected
View Answer
B
Q2876: Memory barrier ensures updated values are written to ________.
- A: Temporary stack
- B: Main memory
- C: Network buffer
- D: Index buffer
View Answer
B
Q2877: The diagram of dual-core chips shows each core with its own ________.
- A: Instruction pointer
- B: Hard disk
- C: L1 cache
- D: GPU unit
View Answer
C
Q2878: Interlocked functions are best suited for operations like ________.
- A: file handling
- B: incrementing, decrementing, and exchanging
- C: memory allocation
- D: conditional branching
View Answer
B
Q2879: Which of the following is a basic interlocked function?
- A: InterlockedFlush()
- B: InterlockedCopy()
- C: InterlockedIncrement()
- D: InterlockedLock()
View Answer
C
Q2880: Interlocked functions generate a ________.
- A: memory leak
- B: memory barrier
- C: garbage value
- D: process fork
View Answer
B