Operating Systems
1. The operating system is A. Application software. B. Hardware. C. System software. D. A user program. 2. A process can be terminated due to A. normal exit C. fatal error B. killed by another process D. all of the mentioned 3. The degree of multi-programming is : A. the number of processes executed per unit time B. the number of processes in the ready queue C. the number of processes in the I/O queue D. the number of processes in memory 4. When a process is created using the classical fork() system call, which of the following is not inherited by the child process? A. User ID B. Process ID C. Process group ID D. None of the above 5. The threading model supported by the Linux operating system is A. one-to-one B. one-to-many C. many-to-one D. many-to-many 6. In a system where Round Robin is used for CPU scheduling, the following is TRUE when a process cannot finish its computation during its current time quantum? A. The process will terminate itself. B. The process will be terminated by the operating system. C. The process's state will be changed from running to blocked. D. None of the above. 7. Which of the following statements regarding system calls is TRUE? A. System calls are functions defined as part of the operating systems. B. System calls are functions that run in user mode in a dual mode system. C. System calls cannot be used by the programmers directly, and the programmers have to use the library functions. D. None of the above. 8. Which of the following thread/process state transitions is ILLEGAL? A. Ready to Running B. Running to Ready C. Blocked to Running D. Blocked to Ready 9. The following code is compiled and run on a modern Linux machine. Assuming fork() never fails, how many times will the message "Hello!" be displayed? int main() { int a = 0; int fork_return - fork(); a ++; if (fork_return == 0) { cout 0) cout