1/236
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
True or False:
There is no universally accepted definition of an operating system.
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
True or False:
Solid state disks are considered volatile storage.
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
True or False:
Virtually all modern operating systems provide support for SMP
true
True or False:
A system call runs in kernel mode only.
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
True or False:
Solid state disks are generally faster than magnetic disks.
true
True or False:
A system call is triggered by hardware.
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
first in first out (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
last in first out (LIFO)
True or False:
VMware is a virtual machine manager when it manages guest operating systems.
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
KDR 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
True or False:
Application programmers typically use an API rather than directory invoking system calls.
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
True or False:
In general, Windows system calls have longer, more descriptive names and UNIX system calls use shorter, less descriptive names.
true
True or False:
Applications compiled on one operating system can be directly executable on other operating systems due to common structure.
false
True or False:
One important principle is the separation of policy from mechanism.
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
True or False:
Mac OS X is a hybrid system consisting of both the Mach microkernel and BSD UNIX.
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
True or False:
iOS is open source, Android is closed source.
false
Which of the following inter-process communication is used in microkernel?
- message passing
- shared memory
- socket communication
- all of the above
message passing
True or False:
Many operating system merge I/O devices and files into a combined file because of the similarity of system calls for each.
true
What is the Linux equivalent of the Windows CreateProcess() system call?
- 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
True or False:
The difference between a program and a process is that a program is an active entity while a process is a passive entity.
false
True or False:
For a single-processor system, there will never be more than one process in the Running state.
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()
True or False:
The exec() system call creates a new process.
false
True or False:
All processes in UNIX first translate to a zombie process upon termination.
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.
True or False:
The communication with named pipes requires parent-child relationship.
false
True or False:
Ordinary pipes are unidirectional, allowing only one-way communication.
true
True or False:
The Mach operating system treats system calls with message passing.
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
True or False:
Virtually all contemporary operating systems support kernel threads.
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
True or False:
Parallelism can be achieved on single-processor systems.
false
True or False:
Concurrency is inherently equivalent to parallelism.
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
True or False:
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
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
True or False:
The default signal handler can be overridden by a user-defined signal handler.
true
True or False:
Thread-local storage is inherently equivalent to local variables.
false
Which are included in the context of a thread?
- register set
- stacks
- private storage area
- all of the above
all of the above
True or False:
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.
false
True or False:
Deferred cancellation is preferred over asynchronous cancellation.
true
The ready queue can be implemented as a _______________.
- unordered linked list
- tree
- all of the above
- priority queue
- FIFO queue
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
- when a process switches from the waiting state to the ready state
- none of the above
- 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 context from one process to another
- selecting a process among the available ones in the ready queue
- switching to user mode
- jumping to the proper location in the user program to resume that program
selecting a process among the available ones in the ready queue
Which of the following criteria is more important for an interactive system?
- Throughput
- Turnaround time
- Response time
- CPU utilization
response time