Mock Quiz Hub
Dark
Mock Quiz Hub
1
Recent Updates
Added: OS Mid 1 Quiz
Added: OS Mid 2 Quiz
Added: OS Lab 1 Quiz
Check back for more updates!
Time: 00:00
Quiz
Navigate through questions using the controls below
0%
Question 1 of 20
Quiz ID: 1
A semaphore _____________________.
can not be more than zero
can not drop below zero
can not be more than one
can not drop below one
Question 2 of 20
Quiz ID: 2
Thread-specific data is data that __________.
is copied and not shared with the parent process
is not associated with any process
is generated by the thread independent of the thread's process
has been modified by the thread, but not yet updated to the parent process
Question 3 of 20
Quiz ID: 3
When a user program performs a system call, it must first put the system call arguments onto the kernel stack and then run a special instruction to switch to kernel mode.
True
False
Only for privileged system calls
Only for I/O operations
Question 4 of 20
Quiz ID: 4
Microkernels use _____ for communication.
message passing
virtualization
shared memory
system calls
Question 5 of 20
Quiz ID: 5
Which statement about scheduling algorithms is most comprehensive?
Only shortest remaining time first scheduling may cause starvation
Only preemptive scheduling may cause starvation
Only round robin is better than FCFS in terms of response time
Shortest remaining time first scheduling may cause starvation, preemptive scheduling may cause starvation, and round robin is better than FCFS in terms of response time
Question 6 of 20
Quiz ID: 6
A microkernel is a kernel ____.
containing many components that are optimized to reduce resident memory size
that is stripped of all nonessential components
that is compiled to produce the smallest size possible when stored to disk
that is compressed before loading in order to reduce its resident memory size
Question 7 of 20
Quiz ID: 7
In multithreaded programs, the kernel informs an application about certain events using a procedure known as a(n) ____.
upcall
signal
event handler
pool
Question 8 of 20
Quiz ID: 8
System calls can be run in either user mode or kernel mode.
True
False
Only for file operations
Only for memory management
Question 9 of 20
Quiz ID: 9
A ________ provides an API for creating and managing threads.
thread library
multicore system
multithreading model
set of system calls
Question 10 of 20
Quiz ID: 10
What is the primary characteristic of user level threads?
are managed by a thread library
are scheduled by the operating system
must ultimately be mapped to an associated kernel-level thread
require kernel mode privileges to create
Question 11 of 20
Quiz ID: 11
When an external device becomes ready to be serviced by the processor the device sends a(n) _________ signal to the processor.
interrupt
halt
handler
access
Question 12 of 20
Quiz ID: 12
_____ provide(s) an interface to the services provided by an operating system.
System calls
Communication
Shared memory
Simulators
Question 13 of 20
Quiz ID: 13
A __________ is an entity corresponding to a user job or application that owns resources such as memory and open files.
thread
task
token
process
Question 14 of 20
Quiz ID: 14
Which of the following instructions should definitely be privileged and restricted to kernel mode?
Read the clock
Issue a trap instruction
Turn off interrupts
Switch from user to kernel mode
Question 15 of 20
Quiz ID: 15
Whenever the CPU becomes idle, the operating system must select one of the processes in the _____________ queue to be executed.
process
execution
waiting
ready
Question 16 of 20
Quiz ID: 16
_____ is not one of the major categories of system calls.
Security
Communications
Protection
Process control
Question 17 of 20
Quiz ID: 17
If a process is executing in its critical section, no other process can be executing in their critical section. This principle is called:
Mutual Exclusion
Race Condition
Deadlock Prevention
Starvation Avoidance
Question 18 of 20
Quiz ID: 18
The problem encountered when a process is perpetually denied the necessary resources is called:
Starvation
Circular Wait
Preemption
Deadlock
Question 19 of 20
Quiz ID: 19
The circular wait condition can be prevented by:
defining a circular order of requests
maintaining a linear order of request types
defining a linear order of resource types
none of these
Question 20 of 20
Quiz ID: 20
Which of the following is true regarding the relationship between processes and threads:
It takes less time to switch between two different processes than to switch between two threads within the same process
It takes less time to terminate a process than a thread
It takes far less time to create a new thread in an existing process than to create a new process
Process and thread operations take the same amount of time
Quiz Summary
Review your answers before submitting
20
Total Questions
0
Answered
20
Remaining
00:00
Time Spent
Submit Quiz
Back to Questions
Previous
Question 1 of 20
Next
!
Confirm Submission
Cancel
Submit Quiz