System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3051: When mapping synchronization object to variables, the best practice is to use ________ mapping.
- A: recursive
- B: many-to-many
- C: one-to-one or one-to-many
- D: temporary
View Answer
C
Q3052: The use of synchronization objects is part of ________ control in concurrent programs.
- A: display
- B: data
- C: access
- D: thread
View Answer
C
Q3053: A single object used to guard critical section data provides ________ execution.
- A: serialized
- B: parallel
- C: arbitrary
- D: interleaved
View Answer
A
Q3054: It is ________ to use different synchronization objects on the same shared data.
- A: recommended
- B: logical
- C: incorrect
- D: necessary
View Answer
C
Q3055: In the given example, the variable N is being accessed by ________ objects.
- A: global
- B: local
- C: two different
- D: temporary
View Answer
C
Q3056: If synchronization is improperly managed, ________ conditions may occur.
- A: update
- B: race
- C: logical
- D: compile
View Answer
B
Q3057: Guarding shared data with multiple synchronization objects results in ________.
- A: thread-safe behavior
- B: race-free operation
- C: potential conflicts
- D: reliable execution
View Answer
C
Q3058: Mutual exclusion ensures that ________ thread accesses a variable at one time.
- A: every
- B: no
- C: multiple
- D: only one
View Answer
D
Q3059: An incorrect use of synchronization may generate ________ results.
- A: optimized
- B: incomplete
- C: incorrect
- D: sequential
View Answer
C
Q3060: The variable N should be protected by ________ synchronization object in a thread-safe design.
- A: unique
- B: multiple
- C: shared
- D: single
View Answer
D