Question: Test Please answer every question. Each question carries the number of points as specified at the end of it. 1. Write a Bash Program. The
Test Please answer every question. Each question carries the number of points as specified at the end of it. 1. Write a Bash Program. The program should choose a number between 1 to 100. The program should ask the user to guess the number. If the guessed number is less than the chosen number, the program should say so, if the guessed number is less than the chosen number it should say so, and if the number is equal to the chosen number then it should say so and congratulate the user and halt. (12) Write a C program to sort in ascending order, an array of 10 elements read from the user during run time. Use Merge sort algorithm to do so. (12) What are the three main purposes of operating systems? (3) What is the main difficulty that a programmer must overcome in writing an operating system for a real-time environment? (3) Some CPUs provide for more than two modes of operation. What are two possible uses of these multiple modes? (2) How does the distinction between kernel mode and user mode function as a rudimentary form of protection (security) system? (2) What is the purpose of system calls? (3) What are the five major activities o 2. 3. 4. 5. 6. 7. 8. f an operating system with regard to process management? 9. What are the 3 major activities of an operating system with respect to secondary-storage management? (3) 10. What system calls have to be executed by a command interpreter or shell in order to start a new process? (2) 11. What are the advantages and disadvantages of layered approach to system design?(6) 12. Why do some systems store the operating systems in firmware, while others store it on disk? (4) 13. What is the purpose of the command interpreter? Why is it usually separate from the kernel? (4) 14. What is the purpose of system programs? (3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
