Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3971: In the example, how many child processes are created by the parent?
  • A: 1
  • B: 2
  • C: 3
  • D: 4
View Answer
B

Q3972: Child processes are piped together to
  • A: redirect input and output
  • B: execute parallel code
  • C: monitor memory usage
  • D: run independently
View Answer
A

Q3973: Anonymous pipes are used in the example to
  • A: connect standard input and output
  • B: connect mouse and keyboard
  • C: connect memory blocks
  • D: connect databases
View Answer
A

Q3974: Which structure is used to define pipe security attributes?
  • A: PROCESS_INFORMATION
  • B: SECURITY_ATTRIBUTES
  • C: STARTUPINFO
  • D: PIPE_SECURITY
View Answer
B

Q3975: In the provided code, what is the purpose of GetStartupInfo()?
  • A: To start a process
  • B: To retrieve system info
  • C: To initialize child process handles
  • D: To initialize startup structures for child processes
View Answer
D

Q3976: What does the character '=' represent in the command line?
  • A: Command termination
  • B: Process separator
  • C: Command pipe
  • D: Redirection indicator
View Answer
D

Q3977: Which function reads the current command line?
  • A: ReadCommand()
  • B: GetCommandLine()
  • C: GetInput()
  • D: GetLine()
View Answer
B

Q3978: If no '=' separator is found in the command line, the program
  • A: will raise an error
  • B: will create a new file
  • C: will execute command1 only
  • D: will exit silently
View Answer
A

Q3979: The child process created first uses
  • A: standard input and hWritePipe
  • B: standard output and hReadPipe
  • C: standard output and hWritePipe
  • D: standard input and hReadPipe
View Answer
C

Q3980: The child process created second uses
  • A: hWritePipe as input
  • B: hReadPipe as input
  • C: hReadPipe as output
  • D: hWritePipe as output
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now