Multiple choice technology programming languages

4.) How can a parent and child process communicate?

  1. a) Using open()

  2. b) Using popen()

  3. c) Using fork()

  4. d) Using exec()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

popen() creates a pipe and forks a process, enabling communication between parent and child via the pipe. fork() creates a child process but doesn't establish communication. exec() replaces the current process. open() is for file operations.