System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2021: What happens if DUPLICATE_CLOSE_SOURCE is not used?
- A: Target handle is invalid
- B: Source handle remains open
- C: Access is denied
- D: Process is suspended
View Answer
B
Q2022: Duplicated handles are only valid in ______.
- A: the source process
- B: the system registry
- C: the target process
- D: handle pool
View Answer
C
Q2023: In order to duplicate a handle, the parent process must ______.
- A: Have admin rights
- B: Have kernel access
- C: Use pseudohandle
- D: Communicate with target process
View Answer
D
Q2024: The flag DUPLICATE_SAME_ACCESS ensures ______.
- A: access rights match source
- B: handle is auto-deleted
- C: handle is assigned to all threads
- D: access is always full
View Answer
A
Q2025: DuplicateHandle() can be used to duplicate ______.
- A: files only
- B: processes only
- C: any handle type
- D: threads only
View Answer
C
Q2026: lpTargetHandle is used to ______.
- A: write to the handle
- B: hold the pointer to the new handle
- C: set the handle name
- D: allocate process memory
View Answer
B
Q2027: The process duplicating the handle must have ______ rights.
- A: PROCESS_TERMINATE
- B: PROCESS_CREATE_THREAD
- C: PROCESS_DUP_HANDLE
- D: PROCESS_VM_READ
View Answer
C
Q2028: The target handle created by DuplicateHandle() is valid in the ______.
- A: source process
- B: target process
- C: all child processes
- D: system process
View Answer
B
Q2029: DuplicateHandle() can be used to duplicate socket handles.
- A: A
- B: B
- C:
- D:
View Answer
A
Q2030: DuplicateHandle() only works for process handles.
- A: A
- B: B
- C:
- D:
View Answer
B