System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2851: A volatile variable may degrade performance due to skipping ________.
- A: Synchronization
- B: Memory allocation
- C: Optimization
- D: Compilation
View Answer
C
Q2852: What does the volatile qualifier not guarantee in multi-processor systems?
- A: Register usage
- B: Execution speed
- C: Order of visibility across processors
- D: Cache flushing
View Answer
C
Q2853: Processor cores store values in ________ before writing them back to memory.
- A: Main memory
- B: Disk
- C: Cache
- D: Stack
View Answer
C
Q2854: Which technique ensures memory is accessed in the desired order?
- A: Volatile qualifier
- B: Register allocation
- C: Memory barrier
- D: Thread locking
View Answer
C
Q2855: Memory barriers are also known as ________.
- A: Interrupts
- B: Memory fences
- C: Static guards
- D: Mutexes
View Answer
B
Q2856: Volatile ensures values are updated in ________.
- A: L2 cache
- B: L1 cache
- C: Main memory
- D: GPU
View Answer
B
Q2857: Each core typically has its own ________.
- A: L3 cache
- B: Data bus
- C: Instruction pointer
- D: Level-1 cache
View Answer
D
Q2858: Level-2 cache is commonly shared by ________ on the same chip.
- A: All processors
- B: All cores on a chip
- C: All memory types
- D: GPU and CPU
View Answer
B
Q2859: If core 0 updates a variable using a memory barrier, the updated value will be ________ for core 3.
- A: Unchanged
- B: Delayed
- C: Coherent
- D: Compressed
View Answer
C
Q2860: Memory barriers make the memory view across processors more ________.
- A: Synchronized
- B: Randomized
- C: Segmented
- D: Fragmented
View Answer
A