Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1931: Standard input and output are typically shared between parent and child using ______.
  • A: command line arguments
  • B: handle pointers
  • C: inheritable handles
  • D: memory mapping
View Answer
C

Q1932: If bInheritHandles is set to FALSE, the child process ______.
  • A: inherits all handles
  • B: inherits no handles
  • C: inherits random handles
  • D: inherits only read handles
View Answer
B

Q1933: The CreateProcess() API allows child processes to inherit handles based on ______.
  • A: execution mode
  • B: handle size
  • C: flag settings
  • D: security level
View Answer
C

Q1934: Inheritable handles are often used for sharing files, input/output streams, and ______.
  • A: graphics
  • B: environment variables
  • C: user interfaces
  • D: process names
View Answer
B

Q1935: Without setting bInheritFlag to TRUE, even if bInheritHandles is set, handles will not be inherited.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1936: bInheritHandles in CreateProcess() alone is enough to make all handles inheritable.
  • A: A
  • B: B
  • C:
  • D:
View Answer
B

Q1937: SECURITY_ATTRIBUTES helps specify whether a handle is inheritable.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1938: Standard output can be shared using handle inheritance.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1939: A handle not marked with bInheritFlag=TRUE is still inherited.
  • A: A
  • B: B
  • C:
  • D:
View Answer
B

Q1940: SECURITY_ATTRIBUTES contains which two key fields for inheritance?
  • A: nSize and handleType
  • B: bInheritFlag and nLength
  • C: hFlag and pSize
  • D: length and parentID
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now