4.) How can a parent and child process communicate?
-
a) Using open()
-
b) Using popen()
-
c) Using fork()
-
d) Using exec()
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.