1/154
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
____ operating systems are designed primarily to maximize resource utilization.
PC
Handheld computer
Mainframe
Network
mainframe
Which of the following programs runs all the time on the computer?
compiler
assembler
text editor
kernel
kernel
There is no universally accepted definition of an operating system.
True
False
true
Which of the following is NOT secondary storage device?
random access memory
solid state disks
optical disk
magnetic tape
random access memory
Which of the following is nonvolatile?
register
cache
main memory
hard-disk drive
hard-disk drive
Which of the following is tertiary storage medium?
register
magnetic tapes
main memory
hard-disk drive
magnetic tapes
The CPU catches the interrupt and ____ it to the interrupt handler
raises
catches
dispatches
clears
dispatches
The device controller _____ an interrupt by asserting a signal on the interrupt request line.
raises
catches
dispatches
clears
raises
Which of the following storage medium is the slowest regarding access speed?
cache
solid state drive
register
main memory
solid state drive
solid state disks are considered volatile storage.
True
False
false
Which of the following is the definition of processor?
the hardware that executes instructions
a physical chip that contains one or more CPUs
the basic computation unit of the CPU
including multiple computing cores on the same CPU
a physical chip that contains one or more CPUs
Where is the location of L1 cache?
inside CPU core
inside processor but outside CPU core
inside main memory
inside registers
inside CPU core
Virtually all modern operating systems provide support for SMP
True
False
true
A system call runs in kernel mode only.
True
False
true
The two separate modes of operating in a system are
supervisor mode and system mode
kernel mode and privileged mode
physical mode and logical mode
user mode and kernel mode
user mode and kernel mode
Solid state disks are generally faster than magnetic disks.
True
False
true
A system call is triggered by hardware.
True
False
False
Which of the following are used by Linux kernel as data structures?
Lists, Stacks, and Queues
Trees
Hash Functions and Maps
Bitmaps
All of the above
All of the above
Which of the following principles is used for adding and removing items from a queue?
first in first out (FIFO)
last in first out (LIFO)
random order
round robin
FIFO
Which of the following principles is used for adding and removing items from a stack?
first in first out (FIFO)
last in first out (LIFO)
random order
round robin
LIFO
VMware is a virtual machine manager when it manages guest operating systems.
True
False
True
Which of the following technology reduces the overhead for bulk data movement?
Direct Memory Access (DMA)
Non-uniform Memory Access (NUMA)
Symmetric Multiprocessing (SMP)
Storage Area Network (SAN)
Direct Memory Access (DMA)
Which of the following will trigger an interrupt?
kernel function
software execution
CPU execution
I/O completion
I/O completion
Which of the following components of a computer system defines the ways to use system resources to solve computing problems?
application programs
operating system
computer hardware
computer logo
application programs
Which of the following contains the addresses of all the service routines?
page table
interrupt vector
system call table
file descriptor table
interrupt vector
Which of the following is an inter-process communication that requires two processes share memory?
message passing
shared memory
socket communication
all of the above
shared memory
Which of the following is not a type of command interpreter?
Bourne shell
C shell
Korn shell
KDE or GNOME
KDE or GNOME
Which of the following is a user interface where human fingers slide across the screen or press buttons to select choices?
touch screen
graphical user interface
command line
voice control
touch screen
Which of the following is not an operating system service?
program execution
I/O operation
protection and security
graphical user interface
graphical user interface
Which of the following is the only gateway between user space and kernel space?
user interface
system call
operating system
hardware drivers
system call
What is the relationship between library call open() and open() system call?
open() system call is part of open()
open() system call in an alternate version of open()
open() is a predecessor version of open() system call
open() invokes open() system call to get service from operating system
open() invokes open() system call to get service from operating system
What category of system call includes the ones for process creation of and termination?
process control
file management
device management
protection
process control
The ________ provides a portion of the system call interface for UNIX and Linux.
POSIX
Java
Standard C library
Standard API
Standard C library
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
Application programmers typically use an API rather than directory invoking system calls.
True
False
true
Which of the following defines the view of the operating system seen by most users?
application and system programs
system calls
device drivers
library calls
application and system programs
In general, Windows system calls have longer, more descriptive names and UNIX system calls use shorter, less descriptive names.
True
False
true
Applications compiled on one operating system can be directly executable on other operating systems due to common structure.
True
False
false
One important principle is the separation of policy from mechanism.
True
False
True
Which of the following operating system structure is the one for Mach OS?
monolithic structure
layered structure
microkernel
modular approach
microkernel
Which of the following operating system structure involves using loadable kernel module in design?
monolithic structure
layered structure
microkernel
modular approach
modular approach
Mac OS X is a hybrid system consisting of both the Mach microkernel and BSD UNIX.
True
False
True
Which of the following is the correct program type for GRUB in Linux and Unix systems?
bootstrap program
compiler program
binder program
system utility
bootstrap program
When a process fails, the operating system takes a ________ which can then be probed by a debugger for failure analysis?
core dump
crash dump
capture of network statistic information
capture of CPU usage information
core dump
iOS is open source, Android is closed source.
True
False
false
Which of the following inter-process communication is used in microkernel?
message passing
shared memory
socket communication
all of the above
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
The Windows CreateProcess() system call creates a new process
NTCreateProcess()
process()
fork()
getpid()
fork()
_____ provide(s) an interface to the services provided by an operating system.
Shared memory
System calls
Simulators
Communication
System calls
Which of the following statements is incorrect?
An operating system provides an environment for the execution of programs.
An operating system manages system resources.
Operating systems provide both command line as well as graphical user interfaces.
Operating systems must provide both protection and security.
Operating systems provide both command line as well as graphical user interfaces.
Which of the following contains dynamically allocated data during program run time?
text section
data section
heap section
stack section
heap section
Which of the following contains the executable code?
text section
data section
heap section
stack section
text section
Which of the following contains global data?
text section
data section
heap section
stack section
data section
Which of the following contains memory allocated by malloc()?
text section
data section
heap section
stack section
heap section
Which of the following process state will be switched from "running" state when an interrupt occurs?
ready
terminated
waiting
new
ready
Which of the following process state will be switched from "running" state when an I/O event occurs?
ready
terminated
waiting
new
waiting
Which of the following process state will be switched from "ready" state?
ready
terminated
waiting
running
running
The difference between a program and a process is that a program is an active entity while a process is a passive entity.
True
False
False
For a single-processor system, there will never be more than one process in the Running state.
True
False
True
Which of the following memory space dynamically grows from high memory to low memory?
text section
data section
heap section
stack section
stack section
Which of the following data structure is used to manage the processes in Linux?
tree
linked list
hash map
stack
linked list
Which of the following structures defines the process control block for Linux system?
task_struct
files_struct
mm_struct
schedu_entity
task_struct
What is the degree of multiprogramming for a single-processor system?
0
1
2
3
1
Which of the following is true?
An I/O-bound process is one that spends more of its time doing I/O than it spends doing computations
An I/O-bound process is one that spends more of its time doing computations than it spends doing I/O
Both A and B
None of the above
An I/O-bound process is one that spends more of its time doing I/O than it spends doing computations
Which of the following cases could force a process removed from the CPU?
I/O request
fork a child
interrupt or time slice expired
all of the above
All of the above
The list of processes waiting to execute on a CPU is called a(n) ____.
standby queue
device queue
ready queue
interrupt queue
ready queue
Which of the following selects from among the processes that are in the ready queue to execute and allocate the CPU to one of them?
CPU scheduler
context switch
swapping
job scheduler
CPU scheduler
Which of the following system calls is used to let the parent process create a child process?
abort();
wait();
fork();
exec().
fork();
Which of the following system calls is used to have a new program loaded into the new process's memory space?
fork()
exec()
wait()
exit()
exec()
The exec() system call creates a new process.
True
False
False
All processes in UNIX first translate to a zombie process upon termination.
True
False
True
Child processes inherit UNIX ordinary pipes from their parent process because:
The pipe is part of the code and children inherit code from their parents.
A pipe is treated as a file descriptor and child processes inherit open file descriptors from their parents.
The STARTUPINFO structure establishes this sharing.
All IPC facilities are shared between the parent and child processes.
A pipe is treated as a file descriptor and child processes inherit open file descriptors from their parents.
The communication with named pipes requires parent-child relationship.
True
False
False
Ordinary pipes are unidirectional, allowing only one-way communication.
True
False
True
The Mach operating system treats system calls with message passing.
True
False
True
Which of the following items are shared across multiple threads belonging to the same process?
code, data, files
registers
stack
all of the above
code, data, files
In a multithreaded server architecture, which of the following is used to service a new user request?
a new created thread
a new created process
the same process for prior users
none of the above
a new created thread
Which of the following benefits go to multithreaded programming?
responsiveness
resource sharing
economy
scalability
all of the above
all of the above
Virtually all contemporary operating systems support kernel threads.
True
False
True
Which of the following refers to the capability to allow multiple tasks make progress on a single processor system?
concurrency
parallelism
data parallelism
task parallelism
concurrency
Parallelism can be achieved on single-processor systems.
True
False
False
Concurrency is inherently equivalent to parallelism.
True
False
False
Which of the following models are possible for the relationship between the user threads and kernel threads?
many-to-one model
one-to-one model
many-to-many model
two-level model
all of the above
all of the above
The _____ model maps each user-level thread to one kernel thread.
many-to-many
two-level
one-to-one
many-to-one
one-to-one
One-to-one model provides more concurrency than the many-to-one model by allowing another thread to run when a thread makes a blocking system call.
True
False
True
Which of the following is a function that can be provided by Pthreads API for constructing a multithreaded program?
pthread attr init
pthread_create
pthread_join
all of the above
all of the above
Which of the following is an asynchronous signal?
illegal memory access
division by zero
terminating a process with specific keystrokes
none of the above
terminating a process with specific keystrokes
Which of the following is a synchronous signal?
illegal memory access
terminating a process with specific keystrokes
having a timer expire
none of the above
illegal memory access
Which of the following options exist to deliver signals in multithreaded program?
deliver the signal to the thread to which the signal applies
deliver the signal to every thread in the process
deliver the signal to certain threads in the process
assign a specific thread to receive all signals for the process
all of the above
all of the above
To associate each thread created using an implicit technique such as a thread pool, with its unique transaction identifier, we could use ____?
global variable
local variable
static data
thread-local storage
thread-local storage
The default signal handler can be overridden by a user-defined signal handler.
True
False
True
Thread-local storage is inherently equivalent to local variables.
True
False
False
Which are included in the context of a thread?
register set
stacks
private storage area
all of the above
all of the above
When fork() is invoked, it is passed a set of flags that determine how much sharing is to take place between the parent and child tasks.
True
False
False
Deferred cancellation is preferred over asynchronous cancellation.
True
False
True
The ready queue can be implemented as a _______________.
unordered linked list
priority queue
all of the above
FIFO queue
tree
all of the above
Which of the following circumstances can cooperative scheduling take place?
when a process switches from the running state to the waiting state
when a process switches from the waiting state to the ready state
when a process switches from the running state to the ready state
none of the above
when a process switches from the running state to the waiting state
Which of the following circumstances can preemptive scheduling take place?
when a process terminates
none of the above
when a process switches from the waiting state to the ready state
when a process switches from the running state to the waiting state
when a process switches from the waiting state to the ready state
Which of the following items does not belong to the function of a dispatcher?
switching to user mode
switching context from one process to another
jumping to the proper location in the user program to resume that program
selecting a process among the available ones in the ready queue
selecting a process among the available ones in the ready queue
Which of the following criteria is more important for an interactive system?
Throughput
Response time
Turnaround time
CPU utilization
Response time