Match List I with List II. List I: System call List II: Description A. fork()…

2021

Match List I with List II.

List I: System call

List II: Description

A. fork()

I. Sends a signal from one process to another process

B. exec()

II. Indicates termination of the current process

C. kill()

III. Loads the specified program into memory

D. exit()

IV. Creates a child process

Choose the mapping in which every system call is paired with its description.

Answer: B. A – IV, B – III, C – I, D – IIConceptA system call is a controlled interface through which a process requests a service from the operating-system kernel. For a matching question, identify…

  1. A.

    A – II, B – III, C – IV, D – I

  2. B.

    A – IV, B – III, C – I, D – II

  3. C.

    A – IV, B – I, C – II, D – III

  4. D.

    A – IV, B – III, C – II, D – I

Attempted by 887 students.

Show answer & explanation

Correct answer: B

Concept

A system call is a controlled interface through which a process requests a service from the operating-system kernel.

For a matching question, identify the primary effect of each call independently and only then compare the complete mappings.

Application

  1. fork() duplicates the calling process to create a child process; parent and child continue as separate processes.

  2. exec() replaces the current process image with the specified program loaded into memory; it does not create a new process.

  3. kill() sends a signal to a process (or process group), allowing actions such as notification or termination according to the signal.

  4. exit() terminates the calling process and makes its exit status available to the parent.

Cross-check

The four primary effects are distinct: creation belongs to fork(), program replacement to exec(), signal delivery to kill(), and process termination to exit().

System call

Primary effect

fork()

Creates a child process

exec()

Loads the specified program into memory

kill()

Sends a signal

exit()

Indicates termination of the current process

Therefore, the accepted mapping is fork() → creates a child process; exec() → loads the specified program into memory; kill() → sends a signal; exit() → indicates termination of the current process.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor Computer Science Paper 2

Loading lesson…