System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1951: If a handle is inheritable, the child process can ______.
- A: automatically delete it
- B: ignore it
- C: access it directly
- D: encrypt it
View Answer
C
Q1952: Handles must be closed by ______.
- A: the parent only
- B: the child only
- C: the operating system
- D: both parent and child
View Answer
D
Q1953: Converting handles into text and passing through command line is a technique for ______.
- A: restricting access
- B: encryption
- C: debugging
- D: passing handles
View Answer
D
Q1954: Which of the following is a valid reason to prefer STARTUPINFO for handle passing?
- A: Simplicity in parent process
- B: Better memory access
- C: No changes required in child process
- D: Compatibility with .NET
View Answer
C
Q1955: STARTUPINFO allows handle redirection primarily for ______.
- A: memory allocation
- B: network services
- C: IO operations
- D: environment variables
View Answer
C
Q1956: Passing handles via IPC means using mechanisms like ______.
- A: STARTUPINFO
- B: files and folders
- C: named pipes or sockets
- D: function pointers
View Answer
C
Q1957: Parent and child can access the same file via different ______.
- A: process names
- B: file names
- C: drive letters
- D: file pointers
View Answer
D
Q1958: What is the effect of making a handle inheritable but not passing it properly?
- A: It is ignored
- B: It is automatically managed
- C: It becomes non-inheritable
- D: It causes runtime errors
View Answer
A
Q1959: Which technique allows interprocess handle sharing without modifying the child?
- A: shared memory
- B: STARTUPINFO
- C: manual copy
- D: command line
View Answer
B
Q1960: Inherited handles accessed by both processes must be ______.
- A: protected
- B: duplicated
- C: closed independently
- D: logged
View Answer
C