MCQOPTIONS
Saved Bookmarks
This section includes 19 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
The parent process picks up the exit status of a child using ___ system call. |
| A. | wait |
| B. | waitp |
| C. | exec |
| D. | kill |
| Answer» B. waitp | |
| 2. |
Both exit and _exit system call share an identical syntax. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 3. |
A process can be terminated using the exit or _exit system call. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 4. |
Which of the following functions is used for handling environment variables of a process? |
| A. | getenv |
| B. | setenv |
| C. | letenv |
| D. | getenv and setenv |
| Answer» E. | |
| 5. |
WHICH_OF_THE_FOLLOWING_FUNCTIONS_IS_USED_FOR_HANDLING_ENVIRONMENT_VARIABLES_OF_A_PROCESS??$ |
| A. | getenv |
| B. | setenv |
| C. | letenv |
| D. | getenv and setenv |
| Answer» E. | |
| 6. |
Both exit and _exit system call share an identical syntax.$ |
| A. | True |
| B. | False |
| Answer» B. False | |
| 7. |
A_process_can_be_terminated_using_the_exit_or__exit_system_call.$ |
| A. | True |
| B. | False |
| Answer» B. False | |
| 8. |
Every process belongs to a process group. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 9. |
If the child dies first but the entry of that child in the process table is still present, then that process is called ____ |
| A. | orphan |
| B. | zombie |
| C. | termin |
| D. | daemon |
| Answer» C. termin | |
| 10. |
Which of the following system call is more powerful (in waiting mechanism) than wait system call? |
| A. | waitp |
| B. | waitpid |
| C. | kill |
| D. | run |
| Answer» C. kill | |
| 11. |
The_parent_process_picks_up_the_exit_status_of_a_child_using_____system_call. |
| A. | wait |
| B. | waitp |
| C. | exec |
| D. | kill |
| Answer» B. waitp | |
| 12. |
Which of the following system call is used for replicating a process? |
| A. | fork |
| B. | exec |
| C. | wait |
| D. | _exit |
| Answer» B. exec | |
| 13. |
The entire process life cycle is built around ___ system calls. |
| A. | 3 |
| B. | 4 |
| C. | 2 |
| D. | 5 |
| Answer» C. 2 | |
| 14. |
The attributes of every process are stored in ____ |
| A. | data table |
| B. | inode table |
| C. | process table |
| D. | heap |
| Answer» D. heap | |
| 15. |
The stack stores the _______ |
| A. | arguments and local variables |
| B. | address to return to |
| C. | global variables |
| D. | arguments and local variables and address to return |
| Answer» E. | |
| 16. |
The segment representing the constants, globals and static variables is called: |
| A. | text segment |
| B. | data segment |
| C. | stack |
| D. | heap |
| Answer» C. stack | |
| 17. |
The virtual address space consists of ____ segments. |
| A. | 4 |
| B. | 5 |
| C. | 3 |
| D. | 2 |
| Answer» C. 3 | |
| 18. |
The collection of memory locations that the process can access is called _______ |
| A. | process table |
| B. | process space |
| C. | virtual address space |
| D. | virtual space |
| Answer» D. virtual space | |
| 19. |
UNIX supports preemptive multitasking. |
| A. | True |
| B. | False |
| Answer» B. False | |