Title | CS 2301 self Quiz Unit 3 sample 1 |
---|---|
Author | Kute Face |
Course | Operating Systems 1 (proctored course) |
Institution | University of the People |
Pages | 33 |
File Size | 129.3 KB |
File Type | |
Total Downloads | 102 |
Total Views | 140 |
CS 2301 self Quiz Unit 3 sample 1...
Operating System A program that acts as an intermediary between a user of a computer and the computer hardware
2.1. A _____ is an example of a systems program. command interpreter
2.10. ____ is a popular commercial application that abstracts Intel 80XXx86 hardware into isolated virtual machines. VMware
2.11. Java technology is A specification of a virtual machine
A virtual machine
2.12. _____ is not an example of a benefit of virtual machines. Uses less physical memory than an actual operating system
2.13. _____ provide(s) an interface to the services provided by an operating system. System calls
2.14. _____ is not one of the major categories of system calls. Security
2.15. ______ tricks an application by having it think it is the only process on the system. Paravirtualization
2.16. _____ allow operating system services to be loaded dynamically. Modules
2.17. Microkernels use _____ for communication.
message passing
2.18. The Windows CreateProcess() system call creates a new process. What is the equivalent system call in UNIX: fork()
The close() system call in UNIX is used to close a file. What is the equivalent system call in Windows: CloseHandle()
Upgrade to remove ads Only $2.99/month 2.2. If a program terminates abnormally, a dump of memory may be examined by a ____ to determine the cause of the problem. debugger
2.20. Which of the following statements is incorrect? Operating systems provide both command line as well as graphical user interfaces.
2.21. _____ is/are not a technique for passing parameters from an application to a system call. Cache memory
2.3. A message-passing model is ____. easier to implement than a shared memory model for intercomputer communication
2.34. KDE and GNOME desktops are available under open-source licenses. True
2.35. Many operating system merge I/O devices and files into a combined file because of the similarity of system calls for each. True
2.36. The virtual-machine concept does not offer complete protection of the various system resources. False
2.37. A program written for the .NET Framework need not worry about the specifics of the hardware or the operating system on which it will run. True
2.38. An initial bootstrap program is in the form of random-access memory (RAM). False
2.39. System calls can be run in either user mode or kernel mode. False
Upgrade to remove ads Only $2.99/month Policy ____. determines what will be done
2.40. Application programmers typically use an API rather than directory invoking system calls. True
2.41. In general, Windows system calls have longer, more descriptive names and UNIX system calls use shorter, less descriptive names. True
2.42. Some level of hardware support is required to provide virtualization. True
2.43. The JVM may only be implemented in software. False
2.44. The JVM provides the ability to run architecture-neutral programs. True
2.5. The major difficulty in designing a layered operating system approach is ____. appropriately defining the various layers
2.6 A microkernel is a kernel ____. that is stripped of all nonessential components
2.7. To the SYSGEN program of an operating system, the least useful piece of information is _____. what applications to install
2.8. A boot block ____. typically only knows the location and length of the rest of the bootstrap program
Upgrade to remove ads Only $2.99/month 2.9. In a virtual machine, each program believes that it has ____. its own memory
Computer system can be divided into four components: Hardware, Operating System, application programs, Users.
The one program running at all times on the computer kernel
I/O devices and the CPU execute concurrently
____ is/are not a technique for passing parameters from an application to a system call.
-Cache memory -Stack -Special block in memory -Registers Cache memory
Which of the following statements is incorrect?
-Operating systems always provide both command line as well as graphical user interfaces. -Operating systems must provide both protection and security. -An operating system always provides an environment for the execution of programs. -An operating system always manages system resources. Operating systems always provide both command line as well as graphical user interfaces.
____ is a popular commercial application that abstracts Intel 80XXx86 hardware into isolated virtual machines.
-JVM -VMWare -.NET -JIT VMWare
A boot block ____.
-is composed of multiple disk blocks -is composed of multiple disk cylinders -typically only knows the location and length of the rest of the bootstrap program -typically is sophisticated enough to load the operating system and begin its execution
typically only knows the location and length of the rest of the bootstrap program
The Windows CreateProcess() system call creates a new process. What is the equivalent system call in UNIX:
-NTCreateProcess() -process() -fork() -getpid() fork()
The major difficulty in designing a layered operating system approach is ____.
-debugging a particular layer -making sure that each layer hides certain data structures, hardware, and operations from higherlevel layers -making sure each layer is easily converted to modules -appropriately defining the various layers appropriately defining the various layers
The virtual-machine [VM] concept is designed to insulate various system resources from processes running on the VM.
True False True
A program written for the .NET Framework need not worry about the specifics of the hardware or the operating system on which it will run.
True False
True
KDE and GNOME desktops are available under open-source licenses.
True False True
Some level of hardware support is required to provide virtualization.
True False True
____ is not an example of a benefit of virtual machines.
-The ability to concurrently run several different operating systems -Uses less physical memory than an actual operating system -The ability to run several different operating systems that all share the same hardware -Protects the host system from guest operating systems Uses less physical memory than an actual operating system
_____ provide(s) an interface to the services provided by an operating system.
-Simulators -Shared memory -Communication -System calls System calls
Upgrade to remove ads Only $2.99/month If a program terminates abnormally, a dump of memory may be examined by a ____ to determine the cause of the problem.
-control card -module -shell -debugger debugger
_____ is not one of the major categories of system calls.
-Protection -Communications -Security -Process control Security
Policy ____.
-determines how to do something -is not likely to change over time -is not likely to change across places -determines what will be done determines what will be done
_____ tricks an application by having it think it is the only process on the system.
-The .NET framework -The Java virtual machine
-Paravirtualization -Simulation Paravirtualization
Application programmers typically use an API rather than directory invoking system calls.
True False True
In general, Windows system calls have longer, more descriptive names and UNIX system calls use shorter, less descriptive names.
True False True
____ allow operating system services to be loaded dynamically.
-Virtual machines -File systems -Graphical user interfaces -Modules Modules
Microkernals use ____ for communication.
-message passing -shared memory -virtualization -system calls
message passing
Many operating system merge I/O devices and files into a combined file because of the similarity of system calls for each.
True False True
An initial bootstrap program is in the form of random-access memory (RAM).
True False False
Upgrade to remove ads Only $2.99/month A message-passing model is ____.
-easier to implement than a shared memory model for intercomputer communication -faster than the shared memory model -a network protocol, and does not apply to operating systems -only useful for small simple operating systems easier to implement than a shared memory model for intercomputer communication
A _____ is an example of a systems program.
-text formatter -command interpreter -Web browser
-database system command interpreter
In a virtual machine, each program believes that it has ____.
-its own memory -multiple processors -more memory than is physically available on the machine -other "virtual" computer to assist in its operations its own memory
The close() system call in UNIX is used to close a file. What is the equivalent system call in Windows:
-CloseHandle() -Exit() -CloseFile() -close() CloseHandle()
To the SYSGEN program of an operating system, the least useful piece of information is ____.
-amount of memory available -what applications to install -operating-system options such as buffer sizes or CPU scheduling algorithms -the CPU being used what application to install
System calls can be run in either user mode or kernel mode.
True False
Which of the following statements is most correct. Select one: a. An operating system consists of the necessary software components to facilitate the usage of your computer including the graphical user interface but not the included utility programs. b. An operating system consists of everything you get when you buy your computer. c. An operating system consists of the necessary software components to facilitate the usage of your computer including the graphical user interface and included utility programs. d. An operating system consists of the necessary software components to facilitate the usage of your computer but not necessarily the graphical user interface or included utility programs. d. An operating system consists of the necessary software components to facilitate the usage of your computer but not necessarily the graphical user interface or included utility programs.
Touch screen is a user interface on mobile systems. Select one: True False True
System call interface is the boundary between user programs and operating system services. Select one: a. No b. Yes b. Yes
A Graphical User Interface (GUI) is the most common interface. Select one: True False True
_____ is/are not a technique for passing parameters from an application to a system call.
Select one: a. Cache memory b. Stack c. Registers d. Special block in memory a. Cache memory
System calls can be run in either user mode or kernel mode.
Select one: True False False
There is only a single flavor of shells for users to choose.
Select one: True False False
_____ is not one of the major categories of system calls.
Select one: a. Protection b. Communications c. Security d. Process Control c. Security
KDE and GNOME desktops are available under open-source licenses.
Select one: True False True
Check all the answers that are correct ways of interfacing with the kernel from the user application. Select one or more: a. System Calls b. By escalating privileges c. Calling Interrupts d. Jumping directly to the Kernel e. Writing data to Kernel Memory a. System Calls
Program loading and execution is a system service. Select one: True False True
System programs all run in kernel mode. Select one: True False False
Upgrade to remove ads Only $2.99/month Email is a system service.
Select one: True False False
A _____ is an example of a systems program.
Select one: a. text formatter b. web browser c. database system d. command interpreter d. command interpreter
Check all the answers that are benefits of a relocatable executable file format. Select one or more: a. Can be loaded anywhere in memory and not at a fixed address everytime b. Are great for the bootstrap code c. Allows for the same executable to be used on different operating systems. d. Can utilize dynamically linked libraries a. Can be loaded anywhere in memory and not at a fixed address everytime d. Can utilize dynamically linked libraries
Source files are compiled into object file(s) which use absolute addresses. Select one: True False False
A statically-linked library is only linked and loaded if it is conditionally required during program runtime.
False
As long as the CPU (machine) instructions are the same, an application can run across machines regardless of the operating system. Select one: True False False
Applications that are designed to work on one operating system will also work on another operating system as long as they provide the same APIs.
Select one: True False False
An operating system is far easier to port-to move to some other hardware-if it is written in a lowerlevel language.
Select one: True False False
A policy should be defined together with the mechanism.
Select one: True False False
Policy __________. Select one: a. is not likely to change across places b. is not likely to change over time c. determines how to do something d. determines what will be done d. determines what will be done
Upgrade to remove ads Only $2.99/month _____ allows operating system services to be loaded dynamically.
Select one: a. Modules b. File systems c. Graphical user interfaces d. Virtual Machines a. Modules
A microkernel is a kernel ____.
Select one: a. that is stripped of all nonessential components b. containing many components that are optimized to reduce resident memory size c. that is compiled to produce the smallest size possible when stored to disk d. that is compressed before loading in order to reduce its resident memory size a. that is stripped of all nonessential components
The major difficulty in designing a layered operating system approach is ____. Select one:
a. making sure that each layer hides certain data structures, hardware, and operations from higherlevel layers b. making sure each layer is easily converted to modules c. debugging a particular layer d. appropriately defining the various layers d. appropriately defining the various layers
An initial bootstrap program is in the form of random-access memory (RAM).
Select one: True False False
To the SYSGEN program of an operating system, the least useful piece of information is _____.
Select one: a. what applications to install b. the CPU being used c. amount of memory available d. operating-system options such as buffer sizes or CPU scheduling algorithms a. what applications to install
A boot block __________. Select one: a. typically is sophisticated enough to load the operating system and begin its execution b. is composed of multiple disk blocks c. typically only knows the location and length of the rest of the bootstrap program d. is composed of multiple disk cylinders c. typically only knows the location and length of the rest of the bootstrap program
If a program terminates abnormally, a dump of memory may be examined by a ____ to determine the cause of the problem.
Select one: a. control card b. shell c. debugger d. module c. debugger
Debugging is the activity of finding and fixing errors in a system, only in software.
Select one: True False False
Tools for operating system debugging must be system-wide.
Select one: True False Feedback False
What did the professor say is the best debugging tool that we need? Select one: a. print b. gdb c. tcpdump d. your friend
e. core dump f. google g. Geeks Programming a. print
Upgrade to remove ads Only $2.99/month Many operating system merge I/O devices and files into a combined file because of the similarity of system calls for each. Select one: a. True b. False a. True
iOS and Android combine different structures, resulting in hybrid systems that address performance, security, and usability issues. Select one: a. False b. True b. True
Which of the following is an inter-process communication that requires two processes share memory? Select one: a. shared memory b. all of the other answers c. message passing d. socket communication a. shared memory
What is the relationship between library call open() and open() system call?
Select one: a. open() is a predecessor version of open() system call b. open() invokes open() system call to get service from operating system c. open() system call is part of open() d. open() system call in an alternate version of open() b. open() invokes open() system call to get service from operating system
______ is a mobile operating system designed for the iPhone and iPad. Select one: a. UNIX b. Android c. iOS d. Mac OS X c. iOS
Which of the following statements is incorrect? Select one: a. Operating systems must provide both protection and security. b. An operating system manages system resources. c. An operating system provides an environment for the execution of programs. d. Operating systems provide both command line as well as graphical user interfaces. d. Operating systems provide both command line as well as graphical user interfaces.
Which of the following is not an operating system service? Select one: a. I/O operation b. program execution c. graphical user interface d. protection and security c. graphical user interface
What category of system call includes the ones for process creation of and termination? Select one: a. file management b. device management c. protection d. process control d. process control
Which of the following defines the view of the operating system seen by most users? Select one: a. application and system programs b. library calls c. system calls d. device drivers a. application and system programs
In general, Windows system calls have longer, more descriptive names and UNIX system calls use shorter, less descriptive names. Select one: a. False b. True b. True
Mac OS X is a hybrid system consisting of both the Mach microkernel and BSD UNIX. Select one: a. True b. False a. True
Applications compiled on one operating system can be directly executable on other operating systems due to common structure. Select one:
a. False b. True a. False
Which of the following is the only gateway between user space and kernel space? Select one: a. user interface b. hardware drivers c. operating system d. system call d. system call
The Windows CreateProcess() system call creates a new process. What is the equivalent system call in UNIX? Select one: a. fork() b. NTCreateProcess() c. process() d. getpid() a. fork()
One important principle is the separation of policy from mechanism. Select one: a. True b. False a. True
iOS is open source, Android is closed source. Select one: a. False b. True
a. False
The ____...