CS 405 Linux with App. Programming Mid-Term Exam Spring 201 17. Which of the fol
ID: 3724519 • Letter: C
Question
CS 405 Linux with App. Programming Mid-Term Exam Spring 201 17. Which of the following is a version of the Linux operating sy stem? a) Redhat b) Ubutu c) SUSE d) All of above 18. Which of the following is a command-line interface in Linux? a) Unity b) X-Terminal c) GNOME d) All of above 19. Which of the following is NOT correct regarding the operating systems? a) An operating system is interrupt driven (by hardware or traps) -it sits quietly until an interrupt occurs. A modern operating system run in dual modes: user mode and kermel mode. c) b) OS is a resource allocator as it manages all resources and decides betweer conflicting requests for efficient and fair resource use. d) An operating is a piece of hardware inside the computer motherboard. 20. Which of the following is NOT a function of operating systems? a) Process management b) Memory management c) VO device management d) Compilers and assemblers B. Analyze the Output (Total 30 points, 5 points per question) Assume all code segments have been embedded in a correct and complete program. a) What will be printed from this program?b) What will be printed from this program? #!/bin/bash X-0 Sum=0 while [ SX -le 5] do /bin/bash function echo_word echo SI echo "Call the function! echo $X Sum=$((Sum+X)) echo word HelloExplanation / Answer
As all of them are linux distributions answer is
17) d - All of the above
As Unity is a graphical shell for the GNOME desktop environment,and xterm is the standard terminal emulator of the XWindow System, providing a command-line interface within a window.
18) b - X terminal
As operating system is not a piece of hardware inside a motherboard,the anwer is
19) d
As a,b,c, are functions of operating systems,the answer is
20) d
For the B portion,as the image is not complete I would be skipping that part