CSC 415 Operating System Principles Chapter 2
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
_____ 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
Application programmers typically use an API (library functions) rather than directory invoking system calls. Select one: a. False b. True
b. True
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
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.
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
There is only a single flavor of shells for users to choose. Select one: True False
False
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
System call interface is the boundary between user programs and operating system services. Select one: a. No b. Yes
b. Yes
KDE and GNOME desktops are available under open-source licenses. Select one: True False
True
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 higher-level 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
______ 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
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
Source files are compiled into object file(s) which use absolute addresses. Select one: True False
False
Program loading and execution is a system service. Select one: True False
True
Touch screen is a user interface on mobile systems. Select one: True False
True
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
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
iOS is open source, Android is closed source. Select one: a. False b. True
a. 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
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
System calls can be run in either user mode or kernel mode. Select one: True False
False
_____ provide(s) an interface to the services provided by an operating system. Select one: a. Shared memory b. Communication c. System calls d. Simulators
c. System calls
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
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
System programs all run in kernel mode. Select one: True False
False
A statically-linked library is only linked and loaded if it is conditionally required during program runtime.
False
An initial bootstrap program is in the form of random-access memory (RAM). 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 lower-level language. Select one: True False
False
Debugging is the activity of finding and fixing errors in a system, only in software. Select one: True False
False
A Graphical User Interface (GUI) is the most common interface. Select one: True False
True
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
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
_____ allows operating system services to be loaded dynamically. Select one: a. Modules b. File systems c. Graphical user interfaces d. Virtual Machines
a. Modules
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
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
A policy should be defined together with the mechanism. Select one: True False
False
Email is a system service. Select one: True False
False
Tools for operating system debugging must be system-wide. Select one: True False Feedback
False
The ________ provides a portion of the system call interface for UNIX and Linux. Select one: a. Standard C library b. Java c. Standard API d. POSIX
a. Standard C library
One important principle is the separation of policy from mechanism. Select one: a. True b. False
a. True
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
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()
What did the professor say is the best debugging tool that we need? Select one: a. printf b. gdb c. tcpdump d. your friend e. core dump f. google g. Geeks Programming
a. printf
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
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.
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
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
Which of the following is a user interface where human fingers slide across the screen or press buttons to select choices? Select one: a. graphical user interface b. touch screen c. voice control d. command line
b. touch screen
_____ is not one of the major categories of system calls. Select one: a. Protection b. Communications c. Security d. Process Control
c. Security