System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2791: What may happen if a worker thread starts before being created?
- A: Speed increases
- B: Error occurs
- C: Data is optimized
- D: Output is the same
View Answer
B
Q2792: In thread synchronization, the boss thread should access worker’s data only when ________.
- A: Worker thread is paused
- B: Data is deleted
- C: Worker completes execution
- D: CPU switches
View Answer
C
Q2793: In a synchronized environment, threads should access shared data ________.
- A: Simultaneously
- B: Without permission
- C: Exclusively
- D: Automatically
View Answer
C
Q2794: Programming flaws in concurrent processing may cause ________.
- A: Better performance
- B: Security patches
- C: Vulnerabilities
- D: Compilation errors
View Answer
C
Q2795: Thread synchronization is important to maintain ________ of the program.
- A: Speed
- B: Accuracy
- C: Debugging
- D: Logging
View Answer
B
Q2796: The final values of M and N in normal sequential execution are ________ respectively.
- A: 5 and 5
- B: 6 and 6
- C: 4 and 5
- D: 5 and 6
View Answer
B
Q2797: The final values of M and N in concurrent execution (example) are ________ respectively.
- A: 6 and 6
- B: 4 and 4
- C: 5 and 5
- D: 6 and 5
View Answer
C
Q2798: In concurrent execution, thread switching may occur ________ instructions.
- A: Before
- B: After
- C: Between
- D: All of these
View Answer
D
Q2799: To avoid data inconsistency, threads should be ________.
- A: Terminated
- B: Synchronized
- C: Skipped
- D: Compiled
View Answer
B
Q2800: One drawback of concurrent processing is ________.
- A: Increased RAM
- B: Reduced speed
- C: Inconsistent output
- D: Better multithreading
View Answer
C