Which of the following system calls transforms an executable binary file into…

2022

Which of the following system calls transforms an executable binary file into a process?

  1. A.

    fork

  2. B.

    exec

  3. C.

    ioctl

  4. D.

    longjmp

Attempted by 887 students.

Show answer & explanation

Correct answer: B

Key idea: The exec*() family is what loads an executable file into a process. exec*() replaces the current process image with a new program from an executable binary (e.g., execve()).

fork() only creates a new process by duplicating the current one; it does not load a new executable.

Explore the full course: Up Lt Grade Assistant Teacher 2025