WorksheetsOS Quiz 1 KCS-401
Total questions: 61
Worksheet time: 30mins
Which of these is not a function of an OS:
Provide a user interface
Communicate with hardware
Allow the computer to multi-task
Improves CPU performance
What do device drivers do?
Allows the OS to communicate with hardware
Drives around the motherboard
Increases the amount of storage
Which of these is an advantage to using a command-line interface over a GUI?
More interactive
Easier to use
Less resource heavy
What type of operating system is Windows 10?
Single-user OS
Multi-user OS
Which of the following is not an example of an OS for Smart phone?
UNIX
IOS
Windows Phone 7
Android
Most people have this Operating System on their Computer System.
UNIX
LINUX
IOS
Microsoft Windows
System software is a set of_______________needed for a computer to_______________.
program, work
instructions , pause
instructions, work
The Operating System is a program that allows different ____________ and various pieces of hardware to _________with each other.
application, software
software , application
application , communicate
software, communicate
1. What is an operating system?
a) interface between the hardware and application programs
b) collection of programs that manages hardware resources
c) system service provider to the application programs
d) all of the mentioned
3. To access the services of the operating system, the interface is provided by the ___________
a) Library
b) System calls
c) Assembly instructions
d) API
4. Where is the interrupt in operating system?
a) either low or high memory (depending on the location of interrupt vector)
b) in the low memory
c) in the high memory
d) none of the mentioned
10 In Unix, which system call creates the new process?
a) create
b) fork
c) new
d) none of the mentioned
readers
Writers
Reader and Writer
None of the Option
Starvation
Deadlock
Aging
Singaling
Wait and Signal
Hold And Signal
Continue and Wait
Signal And Hold
5 philosophers and 5 chopsticks
4 philosophers and 5 chopsticks
3 philosophers and 5 chopsticks
6 philosophers and 5 chopsticks
Mutual Exclusion
Bounded Wait
Progress
All of the Above
continue()
wakeup()
getup()
start()
after a particular process
periodically
atomically
none of the mentioned
suspended until another process invokes the signal operation
waiting for another process to complete before it can itself call the signal operation
stopped until the next process in the queue finishes execution
none of the mentioned
puts the system into a deadlock state
suspends some default process execution
nothing happens
the output is unpredictable
is a binary mutex
must be accessed from only one process
can be accessed from multiple processes
none of the mentioned
data consistency
data insecurity
data inconsistency
none of the mentioned
Which process can be affected by other processes executing in the system?
cooperating process
child process
parent process
init process
When several processes access the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place is called ________
dynamic condition
race condition
essential condition
critical condition
Which process can be affected by other processes executing in the system?
cooperating process
child process
parent process
init process
When several processes access the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place is called ________
dynamic condition
race condition
essential condition
critical condition
Which of the following is the most basic problem in process synchronization?
Critical section problem
Producer-consumer problem
Dining philosophers problem
Bounded buffer problem
In a multi-process system, which part of the code must be executed mutually exclusively?
Critical section
Non-critical section
Initialization section
Termination section
If a process is executing in its critical section, then no other processes can be executing in their critical section. What is this condition called?
mutual exclusion
critical exclusion
synchronous exclusion
asynchronous exclusion
Which one of the following is a synchronization tool?
thread
pipe
semaphore
socket
Which of the following is a binary semaphore?
Counting semaphore
Mutex semaphore
Binary counting semaphore
All of the above
Which synchronization tool is used to provide mutual exclusion?
Semaphore
Monitor
Lock
Barrier
A semaphore is a shared integer variable __________
that can not drop below zero
that can not be more than zero
that can not drop below one
that can not be more than one
When high priority task is indirectly preempted by medium priority task effectively inverting the relative priority of the two tasks, the scenario is called __________
priority inversion
priority removal
priority exchange
priority modification
For cooperating process, _________ process produces information that is consumed by a ___________ process.
consumer, producer
producer, consumer
independent, consumer
cooperating, consumer
