Home > Unix Programming > Quizzes > Unix Basics Practice Test: Process Control
Unix Basics Practice Test: Process Control
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 57% Most missed: “The entire process life cycle is built around ___ system calls.”
The basic unit of execution in a Unix system is a process. A process is an instance of a running program. Each process has its own memory space, its own set of open files, and its own set of environment variables. Processes are created using the fork() system call. The fork() system call creates a new process that is an exact copy of the parent process. The new process has its own memory space, but it shares the parent process's open files and environment variables. Processes can be terminated using the exit() system call. The exit() system call causes the process to terminate and return a... Show more
Unix Basics Practice Test: Process Control
Time left 00:00
25 Questions

1. Which of the following action can be taken by a process upon receiving a signal?
2. There are _____ signals that are generated from the keyboard.
3. The entire process life cycle is built around ___ system calls.
4. Both exit and _exit system call share an identical syntax.
5. The environment variables are available in _____
6. The parent process picks up the exit status of a child using ___ system call.
7. What is the default disposition of most signals?
8. Address space of a process is virtual.
9. If two users execute the same program, the memory requirements are doubled.
10. Which of the following system call is used for inter-process communication?
11. Which library function uses kill to send any signal to the current process?
12. Which of the following system call is preferred over dup and dup2 for replicating file descriptor?
13. Which of the following functions is used for handling environment variables of a process?
14. Which system call is used to set a timer that generates the SIGALARM signal?
15. The action that a signal takes on receipt of a signal is called ____
16. ___ system call behaves in an identical manner to the kill command.
17. The stack stores the _______
18. ____ exec is responsible for executing programs on a UNIX system.
19. Which of the following system call is more powerful (in waiting mechanism) than wait system call?
20. The collection of memory locations that the process can access is called _______
21. We can use pipe with fork system call.
22. We can also duplicate the file descriptor using ___
23. A process can be terminated using the exit or _exit system call.
24. Which of the following system calls returns one or more file descriptors?
25. UNIX supports preemptive multitasking.