Operating Systems Problem set Exam
Questions with all answers Correctly
provided Latest 2024/2025
Which of the following statements is incorrect? - correct answer Operating systems
provide both command line as well as graphical user interfaces.
The two separate modes of operating in a system are - correct answer user mode and
kernel mode
_____ is/are not a technique for passing parameters from an application to a system
call. - correct answer Cache memory
OS - correct answer A program that manages the computers hardware and provides
the environment in which programs are executed
- its a resource allocator and control program
CPU - correct answer The processor that performs the computations
I/O devices - correct answer Items such as the terminal, disks, video board, printer,
network card key are all considered one of these
Main Memory - correct answer This contains data and programs used by the CPU
System bus - correct answer This is the communication medium between CPU,
memory and peripherals
kernel - correct answer the one program running at all times on the computer
- everything else is system or application program
,Kernel Mode - correct answer When the OS has control of the computer rather than
the user, it is in what mode?
Privileged instructions - correct answer These instructions are restricted to use only by
the OS and make it so that the user may not access , memory, halt the machine, disable
and enable interrupts, or address I/O directly
System Call - correct answer Provides interface to services made available by OS.
Causes traps to allow the kernel to execute privileged instructions
device controllers - correct answer connect through common bus providing access to
shared memory
- each controller is in charge of particular device type
- each controller has local buffer
- informs CPU that it has finished an operation by causing interrupt
interrupt vector - correct answer which contains the addresses of all the service
routines
interrupt handling - correct answer 1. The OS preserves the state of the CPU by
storing registers and program counter.
2. Determines which type of interrupt has occurred: polling/vectored.
3. Separate segments of code determine what action should be taken for each type of
interrupt.
traps - correct answer What do system calls cause?
device status table - correct answer contains entry for each I/O device indicating its
type, address, and state
application programming interface - correct answer API
, direct memory access structure - correct answer Used for high-speed I/O devices able
to transmit information at close to memory speeds
clustered systems - correct answer - multiple systems working together
- usually sharing storage via SAN
- provides high availability service which survives failures
- asymmetric and symmetric clustering
- some clusters are for high performance computing(HPC)
Asymmetric Clustering - correct answer one machine is in hot-standby mode while the
other is running applications
symmetric clustering - correct answer has multiple nodes running applications,
monitoring each other
caching - correct answer Important principle, performed at many levels in a computer
(in hardware, operating system, software)
Information in use copied from slower to faster storage temporarily
Faster storage (cache) checked first to determine if information is
there
API - definition - correct answer Specifies a set of functions that are available to an
application programmer, including the parameters that are passed to each function and
the return values the programmer can expect
Trap or Exception - correct answer Software generated interrupt. It causes the kernel
to take over and initiate a process.
Trap or Interrupt handler - correct answer This uses the parameter to the system call to
jump to the appropriate handler( I/O, terminal etc)