Operating System Question Bank
Operating System Question Bank
UNIT 1:
Q.1 What is operating system? Define.
It is the program that, after it is added to the than it manages all of the other
application programs in a computer.
The application programs make use of the operating system by making requests
for services through a defined application program interface (API).
users can interact directly with the operating system through a user interface, such
as a command-line interface (CLI) or a graphical UI (GUI).
4. Network Management:
network management involves several different components.
Network management is the process of managing and administering a computer
network.
Network management comprises fault analysis, maintaining the quality of service,
provisioning of networks, and performance management.
7. Security Management:
The various processes in an operating system must be protected from each
other’s activities.
Security Management refers to a mechanism for controlling the access of
programs, processes, or users to the resources defined by a computer controls
to be imposed, together with some means of enforcement.
9.File Management –
A file system is organized into directories for efficient or easy navigation and usage.
These directories may contain other directories and other files.
It keeps track of where information is stored, user access settings and status of every
file, and more… These facilities are collectively known as the file system.
Q.8 what are the different activities carried out in process management?
Events:
o User request for process creation
o System Initialization
o Batch job initialization
o Execution of a process creation system call by a running process
A process may be created by another process using fork().
The creating process is called the parent process and the created process is the child
process. A child process can have only one parent but a parent process may have
many children.
Both the parent and child processes have the same memory image, open files and
environment strings.
However, they have distinct address spaces.
Memory
Processes
Files
Security
CPU Scheduling
Devices, Device I/O
Interrupts
Networks
DNS
o Program execution
o I/O operations
o File System manipulation
o Communication
o Error Detection
o Resource Allocation
o Protection
In the matter of multi-user or multi-tasking environments, resources such as main
memory, CPU cycles and files storage are to be allocated to each user or job.
Some major activities of an OS with respect to resource management are −
o The Operating System manages all kinds of resources using schedulers.
o CPU scheduling algorithms are employed for better utilization of CPU.
It refers to practices and measures that can ensure the confidentiality, integrity, and
availability (CIA) of operating systems.
The goal of OS security is to protect the OS from various threats, including malicious
software such as worms, trojans and other viruses, misconfigurations, and remote
intrusions.
it typically involves the implementation of control techniques that can protect your
assets from unauthorized modification and deletion or theft.
The most common techniques used to protect operating systems include the use of
antivirus software and other endpoint protection measures, regular OS patch updates,
a firewall for monitoring network traffic, and enforcement of secure access through
least privileges and user controls.
A timer is a software program or hardware device that keeps track of the elapsed time
between two events.
A timer may also measure a specified amount of time, and signal the user when the
"time is up."
Uses of a timer include measuring the elapsed time between the start and end of a
computer program, or the elapsed time between two mouse button clicks.
1. Trojan Horse:
2.Trap Door:
A trap door is kind of a secret entry point into a program that allows anyone to gain
access to any system without going through the usual security access procedures.
Another definition of a trap door is it is a method of bypassing normal authentication
methods. Therefore it is also known as a back door.
Trap Doors are quite difficult to detect and also in order to find them the programmers
or the developers have to go through the components of the system.
Programmers use Trap door legally to debug and test programs.
Program development and software update activities should be the first focus of
security measures. The operating system that controls the trap doors is difficult to
implement.
Application view.
User view.
System view.
Implementation view.
o Application view:
The operating system does not perform any functions on its own, but it provides an
atmosphere in which various apps and programs can do useful work.
The operating system may be observed from the point of view of the user or the
system, and it is known as the user view and the system view.
o User view:
The user view depends on the system interface that is used by the users.
The user viewpoint focuses on how the user interacts with the operating system
through the usage of various application programs.
the system viewpoint focuses on how the hardware interacts with the operating system
to complete various tasks.
o System view:
A computer system comprises various sources, such as hardware and software, which
must be managed effectively.
The operating system manages the resources, decides between competing demands,
controls the program execution, etc.
According to this point of view, the operating system's purpose is to maximize
performance.
o Implementation view:
Operating system by itself does not provide any function but it provides an
atmosphere in which different applications and programs can do useful work.
There are many problems that can occur while designing and implementing an
operating system.
These are covered in operating system design and implementation.
The user view depends on the system interface that is used by the users.
The user view focuses on how the user interacts with the operating system through the
usage of various application programs.
the system viewpoint focuses on how the hardware interacts with the operating system
to complete various tasks.
Types: 1.single user view point, 2.multiple user view point, 3.handled user view point,
4.embedded user view point.
Multiprocessor system means, there are more than one processor which work parallel
to perform the required operations.
It allows the multiple processors, and they are connected with physical memory,
computer buses, clocks, and peripheral devices.
The best Operating system in multiprocessor and parallel computing environment is
UNIX, because it has many advantages
o It is multi-user.
o It is portable.
o It is good for multitasking.
o It has an organized file system.
o It has device independence.
o Utilities are brief and operation commands can be combined in a single line.
o Unix provides various services, as it has built-in administrative tools,
o UNIX can share files over electronic networks with many various kinds of equipment.
Q.25 Explain mainframe operating systems.
Q.29 Differentiate between distributed operating system and network operating system.
It’s main objective is to provide the It’s main objective is to manage the hardware
1. local services to remote client. resources.
NOS is more scalable than Distributed DOS is less scalable than Network Operating
3. Operating System. System.
5. Rate of autonomy in NOS is high. While The rate of autonomy in DOS is less.
A mobile operating system is an operating system that helps to run other application
software on mobile devices.
It is the same kind of software as the famous computer operating systems like Linux
and Windows, but now they are light and simple to some extent.
The operating systems found on smartphones include Symbian OS, iPhone OS, RIM's
BlackBerry, Windows Mobile, Palm WebOS, Android, and Maemo.
It combines the beauty of computer and hand use devices.
It typically contains a cellular built-in modem and SIM tray for telephony and internet
connections.
If you buy a mobile, the manufacturer company chooses the OS for that specific
device.
The Android operating system was developed by Google (GOOGL) for use in all of
its touchscreen devices, tablets, and cell phones.
This operating system was first developed by Android Inc., a software company
located in Silicon Valley before it was acquired by Google in 2005.
While the Android source code is released in an open-source format to help advance
open standards across mobile devices, it is still packaged with proprietary software
when sold on handset devices.
IOS is a mobile operating system for Apple-manufactured devices. iOS runs on the
iPhone, iPad, iPod Touch and Apple TV.
iOS is best known for serving as the underlying software that allows iPhone users to
interact with their phones using gestures such as swiping, tapping and pinching.
These finger actions are typically performed on multitouch capacitive touch screen
displays, which provide fast response and accept inputs from multiple fingers.
Although it is not the No. 1 mobile OS globally, iOS dominates the North American
market by a large margin, with a 60 percent market share as of May 2010.
Q.36 Difference between Time sharing System and Real Time System.
In this operating system any modification While in this modification does not take
3. in the program can be possible. place.
In this OS, computer resources are shared But in this OS, computer resources are not
4. to the external. shared to the external.
It deals with more than processes or Whereas it deals with only one process or
5. applications simultaneously. application at a time.
In this OS, the response is provided to While in real time OS, the response is
6. the user within a second. provided to the user within time constraint.
Q.37 Difference between Multiprogramming and Multitasking.
In MS-DOS, there are two ways commands are executed: internally and externally.
An internal command is embedded into the COMMAND.COM file, and an external
command is not and requires a separate file to operate.
1.Primary Goal:
2.Secondary Goal:
The secondary goal of an Operating System is efficiency.
The Operating System should perform all the management of resources in such a way
that the resources are fully utilised and no resource should be held idle if some request
to that resource is there at that instant of time.
UNIX systems also have a graphical user interface (GUI) similar to Microsoft
Windows which provides an easy to use environment.
However, knowledge of UNIX is required for operations which aren't covered by a
graphical program, or for when there is no windows interface available, for example,
in a telnet session.
UNIX Shell is a collection of computer operating systems that allow multiple users to
do multiple tasks.
A shell is a medium provided to interact with the kernel, which is a Command Line
Interface (CLI) to the Unix system.
It is basically a command-line interface to the Unix system.
It works by gathering the input from the users, executing the program based on the
input from the users, and then displaying the output after the program’s execution.
The history of Windows dates back to 1981 when Microsoft started work on a
program called "Interface Manager".
It was announced in November 1983 (after the Apple Lisa, but before the Macintosh)
under the name "Windows", but Windows 1.0 was not released until November 1985.
Q.49 What are Microsoft's design goals for Windows OS? Explain.
1. Portable Environment
The Linux system includes essential programs that users can utilize in order to issue
commands to the operating system for executing the design flawlessly.
4. End-to-end encryption
Authentication can help you keep your data protected.
Before you may access some critical files, the Linux Operating System requires you
to enter a password.
Linux Operating System comes with Graphical User Interface (GUI) abilities in the
same way you can with Windows.
Software updates are controlled by the users in Linux. Individuals have the option to
pick and choose which updates are required, and there are a plethora of system
updates accessible.
8. Lightweight Infrastructure
9. Extremely Flexible
Linux is highly flexible, and a variety of desktop applications, embedded systems, and
server applications can benefit from the same.
Linux supports programming language, including C/C++, Java, Python, Ruby, etc.
Furthermore, it provides a wide range of development-related applications.
Kernel –
o Kernel is the core part of Linux.
o It is responsible for all major activities of this operating system.
o It consists of various modules and it interacts directly with the underlying hardware.
o Kernel provides the required abstraction to hide low level hardware details to system
or application programs.
System Library –
o System libraries are special functions or programs using which application programs
or system utilities accesses Kernel's features.
o These libraries implement most of the functionalities of the operating system and do
not requires kernel module's code access rights.
System Utility –
o System Utility programs are responsible to do specialized, individual level tasks.
Full-Form CUI stands for Character User GUI stands for Graphical User
Interface. Interface.
Interaction The user interacts with the The user interacts with the system
computer using commands like using Graphics like icons, images.
text.
The fact that a majority of the fastest supercomputers of the world that run on Linux
can be attributed to its speed.
Linux has a reputation for being fast and smooth while Windows 10 is known to
become slow and slow over time.
Linux runs faster than Windows 8.1 and Windows 10 along with a modern desktop
environment and qualities of the operating system while Windows is slow on older
hardware.
Talking about the core capabilities of OS like thread scheduling, memory
management, i/o handling, file system management, and core tools, overall Linux is
superior to Windows.