Information Technology Tools and Network Basis

Introduction to Operating System Question & Answer



Question : 1
What are various categories of software?


Answer :

Software are classified into following categories –

(i) System Software

a. Operating System

b. Language Processor

(ii) Application Software

a. Packages

b. Utilities

c. Customized software

d. Developer Tools



Question : 2
What is the difference between an interpreter and a compiler?


Answer :

Interpreter: Interpreter is a type of system software that translates and executes instructions written in a computer program lini-by-line, unit by unit etc. It is slower in execution because each time when you run the program translation is required.

Compiler: Compiler is another type of system software that translates and executes instructions written in a computer program in one go. Once compiled program need not to translate again so it works faster. 



Question : 3
What is application software? Why it is required?


Answer :

Application software is the set of programs necessary to carry out operations for a specific task. Such as for word processing there are many application software like MS-Word, Wordpad etc. These software are required to perform special task using the computer like painting, recording, typing, data handling etc. 



Question : 4
What is system software?


Answer :

The software that controls internal computer operations is called system software. It manages all the resources of a system. Its example is Operating System. 



Question : 5
Discuss the role of utility software in the context of computer performance?


Answer :

Discuss the role of utility software in the context of computer performance?



Question : 6
What is the importance of an OS?


Answer :

An operating system is a program which acts as an interface between a user and the hardware. It manages all the resources of the computer system. It provides and environment to the user to work with. All the application are installed after the operating system is installed. It manages memory, processing, storage, memory etc. 



Question : 7

What is the utility of these software?

(a) disk fragmentor

(b) backup software



Answer :

(a) disk fragmentor: A file is fragmented when it becomes too large for your computer to store in a single location on a disk. When this happens, your computer splits the file up and stores in pieces. You can use fragmented files, but it takes your computer longer to access them.

(b) Backup software: This utility program facilitates the backing-up of disk. Back-up means duplicating the disk information so that in case of any damage or data-loss, this backed-up data may be used.



Question : 8

Describe the role of Operating System as a resource Manager.



Answer :

A computer system has many resources (hardware and software), which may be require to complete a task. The commonly required resources are input/output devices, memory, file storage space, CPU etc. The operating system acts as a manager of the above resources and allocates them to specific programs and users, whenever necessary to perform a particular task. Therefore operating system is the resource manager i.e. it can manage the resource of a computer system internally. The resources are processor, memory, files, and I/O devices. In simple terms, an operating system is the interface between the user and the machine.

Operating System Management Tasks

1. Processor management which involves putting the tasks into order and pairing them into manageable size before they go to the CPU.

2. Memory management which coordinates data to and from RAM (random-access memory) and determines the necessity for virtual memory.

3. Device management which provides interface between connected devices.

4. Storage management which directs permanent data storage.

5. Application which allows standard communication between software and your computer.

6. User interface which allows you to communicate with your computer.



Question : 9

What are the advantages of parallel computing?



Answer :

Parallel computing is a type of computation in which many calculations or the execution of processes are carried out simultaneously. Large problems can often be divided into smaller ones, which can then be solved at the same time. It refers to the simultaneous working of multiple processors to solve a computational problem. Its advantages are –

(i) It saves time and the cost too.

(ii) It makes easier to solve larger or complex problems.

(iii) It provides efficient use of underlying hardware.

(iv) It can utilize the resources available remotely.



Question : 10

What is process scheduling?



Answer :

The process scheduling is the activity of the process manager that handles the removal of the running process from the CPU and the selection of another process on the basis of a particular strategy.

Process scheduling is an essential part of a Multiprogramming operating systems. Such operating systems allow more than one process to be loaded into the executable memory at a time and the loaded process shares the CPU using time multiplexing.



Question : 11

What are process scheduling queues?



Answer :

The OS maintains all PCBs in Process Scheduling Queues. The OS maintains a separate queue for each of the process states and PCBs of all processes in the same execution state are placed in the same queue. When the state of a process is changed, its PCB is unlinked from its current queue and moved to its new state queue.

The Operating System maintains the following important process scheduling queues −

  •  Job queue − This queue keeps all the processes in the system.
  •  Ready queue − This queue keeps a set of all processes residing in main memory, ready and waiting to execute. A new process is always put in this queue.
  •  Device queues − The processes which are blocked due to unavailability of an I/O device constitute this queue.



Question : 12

How does OS manage all the running processes?



Answer :

Process managements involve the execution of various tasks such as creation of processes, scheduling of processes, management of deadlock, and termination of processes. It is responsibility of operating system to manage all the running processes of the system. Operating system manages processes by performing tasks such as resource allocation and process scheduling. When a process runs on computer device memory and CPU of computer are utilized. The operating system also has to synchronize the different processes of computer system.

A process consists of set of instruction to be executed called process code. A process is also associated with some data that is to be processed. The resources that a process required for its execution is called process components. There is also a state that is associated with a process at a particular instant of time called process state. Similar to these concepts, there are number of concepts associated with the process management function of an operating system. Some of those concepts are given as following.

  •  Process State
  •  Process Control Block (PCB)
  •  Process Operations
  •  Process Scheduling
  •  Process Synchronization
  •  Interprocess Communication
  •  Deadlock


Question : 13

What is the role of memory manager and I/O manager of OS?



Answer :

Memory management is a form of resource management applied to computer memory. The essential requirement of memory management is to provide ways to dynamically allocate portions of memory to programs at their request, and free it for reuse when no longer needed. This is critical to any advanced computer system where more than a single process might be underway at any time.

I/O Manager:One of the important jobs of an Operating System is to manage various I/O devices including mouse, keyboards, touch pad, disk drives, display adapters, USB devices, Bit-mapped screen, LED, Analog-to-digital converter, On/off switch, network connections, audio I/O, printers etc.

An I/O system is required to take an application I/O request and send it to the physical device, then take whatever response comes back from the device and send it to the application. I/O devices can be divided into two categories −

Block devices − A block device is one with which the driver communicates by sending entire blocks of data. For example, Hard disks, USB cameras, Disk-On-Key etc.

Character devices − A character device is one with which the driver communicates by sending and receiving single characters (bytes, octets). For example, serial ports, parallel ports, sounds cards etc



Question : 14

What is parallel computing?



Answer :

Parallel computing is a type of computation in which many calculations or the execution of processes are carried out simultaneously. Large problems can often be divided into smaller ones, which can then be solved at the same time. It refers to the simultaneous working of multiple processors to solve a computational problem.



Question : 15

How is parallel computing different from serial computing?



Answer :

Serial Computing: A processing in which one task is completed at a time and all the tasks are run by the processor in a sequence. In real time example, people standing in a queue and waiting for a railway ticket. In this case, one person can get a ticket at a time. Suppose there are two queues of people and one cashier is handling both the queues then one person can get a ticket at a time from both queues. Similarly, processor get lists of tasks and each task is completed at a time and all other tasks wait till the first one completes. This type of processing is also known as sequential processing.

Parallel Computing: A type of processing in which multiple tasks are completed at a time by different processors. Note that in parallel processing there is more than one processor involved. In real time example, there are multiple queues of people standing to get railway tickets. In this case, each queue is handled by multiple people, so multiple people will get tickets at a time. Similarly, in the operating system, there are multiple queues of tasks and multiple tasks are completed by different processors at a time.



Question : 16

What are the advantages of parallel computing?



Answer :

Parallel computing is a type of computation in which many calculations or the execution of processes are carried out simultaneously. Large problems can often be divided into smaller ones, which can then be solved at the same time. It refers to the simultaneous working of multiple processors to solve a computational problem. Its advantages are –

(i) It saves time and the cost too.

(ii) It makes easier to solve larger or complex problems.

(iii) It provides efficient use of underlying hardware.

(iv) It can utilize the resources available remotely.



Question : 17

What is PCB? What is its role?



Answer :

While creating a process the operating system performs several operations. To identify these process, it must identify each process, hence it assigns a process identification number (PID) to each process. As the operating system supports multi-programming, it needs to keep track of all the processes. For this task, the process control block (PCB) is used to track the process‘s execution status. Each block of memory contains information about the process state, program counter, stack pointer, status of opened files, scheduling algorithms, etc. All these information is required and must be saved when the process is switched from one state to another. When the process made transitions from one state to another, the operating system must update information in the process‘s PCB.

A process control block (PCB) contains information about the process, i.e. registers, quantum, priority, etc.

Pointer – It is a stack pointer which is required to be saved when the process is switched from one state to another to retain the current position of the process.

Process state – It stores the respective state of the process.

Process number – Every process is assigned with a unique id known as process ID or PID which stores the process identifier.

Program counter – It stores the counter which contains the address of the next instruction that is to be executed for the process.

Register – These are the CPU registers which includes: accumulator, base, registers and general purpose registers.

Memory limits – This field contains the information about memory management system used by operating system. This may include the page tables, segment tables etc.

Open files list – This information includes the list of files opened for a process.



Question : 18

Explain booting process and its types.



Answer :

Concept of Booting

When the computer is switched on, a copy of boot program is brought from ROM into the main memory. This process is called booting. The CPU first runs a jump instruction that transfers to BIOS (Basic Input output System) and it starts executing. The BIOS conducts a series of self diagnostic tests called POST (Power On Self Test). These tests include memory tests, configuring and starting video circuitry, configuring the system’s hardware and checking other devices that help to function the computer properly. Thereafter the BIOS locates a bootable drive to load the boot sector. The execution is then transferred to the Boot Strap Loader program on the boot sector which loads and executes the operating system. If the boot sector is on the hard drive then it will have a Master Boot record (MBR) which checks the partition table for active partition. If found, the MBR loads that partition’s boot sector and executes it.

Booting Process is of two types – Warm and Cold

Cold Booting: When the system starts from initial state i.e. it is switched on, we call it cold booting or Hard Booting. When the user presses the Power button, the instructions are read from the ROM to initiate the booting process.

Warm Booting: When the system restarts or when Reset button is pressed, we call it Warm Booting or Soft Booting. The system does not start from initial state and so all diagnostic tests need not be carried out in this case. There are chances of data loss and system damage as the data might not have been stored properly.



Question : 19

Explain any two functions of an Operating system



Answer :

Two functions of an Operating system are:

Processor Management — The OS (Operating System) ensures that each process/application receives enough time from the processor to function properly. It also tries to utilize as many processor cycles as possible for the real time work.

Memory Storage and Management — The OS (Operating System) manages the sharing of internal memory among the multiple applications. It also ensures that one process should not consume the memory allocated to another process. An OS has to make efficient utilisation of different types of memory (RAM, Cache, etc.) within the system, so as to ensure proper execution of every process.



Question : 20

What are the advantages of GUI over CUI?



Answer :
GUI (Graphical User Interface)
CUI (Character User Interface)
GUI interface is much attractive and appealing.
CUI interface is relatively less appealing.
GUI is easier to learn and more user-friendly due to the presence of various graphical elements like icons, menu, buttons, etc.
CUI is a text based interface and hence is not as user friendly as GUI.
With GUI, a user does not have to learn complicated commands.
A user is required to memorize many commands to operate and control a CUI.
GUI users have Windows that allow a user to work, view, control, and manipulate multiple programs and folders at the same time.
CUI does not offer the same ease and ability to work with multiple programs at once on one screen.
GUI supports the use of both a mouse and keyboard to control and navigate through your system.
CUI supports the use of a keyboard only.
In GUI, the user mostly gets immediate visual feedback of the action he is doing. For example, the user can see immediately that a file is successfully moved from one directory to another. In CUI, there is no obvious feedback. If we consider the same example, one or more additional commands will have to be issued to confirm the file transfer action.
In GUI multiple tasks can run simultaneously at a time.
Only one task can be executed at a particular point of time in CUI.




Question : 21

Define Operating System (OS) and describe any three functions of operating system in detail. 



Answer :

An Operating System (OS) acts as an intermediary between the user of a computer and computer hardware. The purpose of an operating system is to provide an environment in which a user can execute programs in a convenient and efficient manner.

An OS is a software program that controls the internal activities of the computer hardware and provides user interface. Application programs need to interact with the operating system for using hardware resources.

OS is the first program loaded (copied) into the computer’s main memory after the computer is switched on. Thus, one of the primary functions of operating system is to provide an interface between the user and hardware. Examples of Operating systems are Linux, Unix, Windows etc.

 


Main Functions of OS:

  • Process Management: different processors perform different tasks.
  • Memory Management: allocates the main memory and secondary memory as per requirement by program and data.
  • Input/ Output Management: manages and coordinates different input and output devices.
  • File Management: manages different file operations (such as reading from/writing to the files, rename, copy, paste, hide files etc).
  • Security Management: establishes data security and integrity. 


Question : 22

 what is Linux and what are its basic features?



Answer :

Linux is one of popular version of UNIX operating System. It is open source as its source code is freely available. It is free to use. Linux was designed considering UNIX compatibility. Its functionality list is quite similar to that of UNIX. Some popular versions or distributions of Linux OS are Ubuntu, Fedora, Linux Mint, openSUSE, PCLinuxOS, Debian etc.

Components of Linux System

Linux Operating System has primarily three components

Kernel − Kernel is the core part of Linux. It is responsible for all major activities of this operating system. It consists of various modules and it interacts directly with the underlying hardware. Kernel provides the required abstraction to hide low level hardware details to system or application programs.

System Library − System libraries are special functions or programs using which application programs or system utilities accesses Kernel's features. These libraries implement most of the functionalities of the operating system and do not requires kernel module's code access rights.

System Utility − System Utility programs are responsible to do specialized, individual level tasks 

Basic Features

Following are some of the important features of Linux Operating System.

Portable − Portability means software can works on different types of hardware in same way. Linux kernel and application programs supports their installation on any kind of hardware platform.

Open Source − Linux source code is freely available and it is community based development project. Multiple teams work in collaboration to enhance the capability of Linux operating system and it is continuously evolving.

Multi-User − Linux is a multiuser system means multiple users can access system resources like memory/ ram/ application programs at same time.

Multiprogramming − Linux is a multiprogramming system means multiple applications can run at same time.

Hierarchical File System − Linux provides a standard file structure in which system files/ user files are arranged.

Shell − Linux provides a special interpreter program which can be used to execute commands of the operating system. It can be used to do various types of operations, call application programs. etc.

Security − Linux provides user security using authentication features like password protection/ controlled access to specific files/ encryption of data. 

Architecture

The architecture of a Linux System consists of the following layers −

Hardware layer − Hardware consists of all peripheral devices (RAM/ HDD/ CPU etc).

Kernel − It is the core component of Operating System, interacts directly with hardware, provides low level services to upper layer components.

Shell − An interface to kernel, hiding complexity of kernel's functions from users. The shell takes commands from the user and executes kernel's functions.

Utilities − Utility programs that provide the user most of the functionalities of an operating systems. 



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad