System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q911: Programs holding locks longer than needed can cause ________ in multi-program environments.
- A: performance issues
- B: faster execution
- C: memory leaks
- D: security breaches
View Answer
A
Q912: File locks should be released ________ to prevent negative impact on system resources.
- A: immediately
- B: after several hours
- C: only during shutdown
- D: never
View Answer
A
Q913: File locking can generate ________ similar to those caused by mutual exclusion locks.
- A: deadlocks
- B: race conditions
- C: memory leaks
- D: buffer overflows
View Answer
A
Q914: If a read or write returns false due to a lock conflict, the byte transfer count will be ________ the number requested.
- A: equal
- B: greater
- C: less
- D: unknown
View Answer
C
Q915: A shared lock allows other processes to ________ the file but not write to it.
- A: read
- B: write
- C: delete
- D: modify
View Answer
A
Q916: Improper use of shared locks can generate ________ errors.
- A: unexpected
- B: compiler
- C: logical
- D: syntax
View Answer
A
Q917: Shared locks restrict ________ access to a file while allowing read access.
- A: write
- B: read
- C: delete
- D: modify
View Answer
A
Q918: Deadlocks in file locking occur due to ________ resource contention.
- A: mutual
- B: exclusive
- C: time-based
- D: random
View Answer
A
Q919: The Windows Registry is a ________ database.
- A: hierarchical
- B: relational
- C: flat
- D: network
View Answer
A
Q920: The Windows Registry stores low-level settings for the Windows OS and ________.
- A: hardware applications
- B: websites
- C: network protocols
- D:
View Answer
B