adplus-dvertising
frame-decoration

Question

Which of the following system call is used for duplicating file descriptor?

a.

dup

b.

decr

c.

exec

d.

execv

Posted under UNIX

Answer: (a).dup

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following system call is used for duplicating file descriptor?

Similar Questions

Discover Related MCQs

Q. We can also duplicate the file descriptor using ___

Q. Which of the following system call is preferred over dup and dup2 for replicating file descriptor?

Q. Which of the following system call is used for inter-process communication?

Q. We can use pipe with fork system call.

Q. The action that a signal takes on receipt of a signal is called ____

Q. The sources from where the signals can be generated are:

Q. There are _____ signals that are generated from the keyboard.

Q. Which of the following signals are generated from the hardware?

Q. ___ system call behaves in an identical manner to the kill command.

Q. Which library function uses kill to send any signal to the current process?

Q. Which system call is used to set a timer that generates the SIGALARM signal?

Q. If two users execute the same program, the memory requirements are doubled.

Q. Address space of a process is virtual.

Q. Which of the following system calls returns one or more file descriptors?

Q. The environment variables are available in _____

Q. Which of the following functions are used for obtaining and setting the value of environment variables?

Q. Which of the following action can be taken by a process upon receiving a signal?

Q. What is the default disposition of most signals?

Q. Which of the following resources are required to be managed and monitored?

Q. System time comprises ____ components.