Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Write top 10 examples of OS?

Answer»

Some of the TOP OS’s that are USED MOSTLY are GIVEN below:

  • MS-Windows
  • Ubuntu
  • Mac OS
  • Fedora
  • Solaris
  • Free BSD
  • Chrome OS
  • CentOS
  • Debian
  • Android
2.

What do you mean by overlays in OS?

Answer»

Overlays is BASICALLY a programming method that divides processes into pieces so that instructions that are IMPORTANT and need can be saved in memory. It does not need any TYPE of support from the OS. It can RUN programs that are bigger in size than physical memory by only keeping only important data and instructions that can be NEEDED at any given time. 

3.

What is different between main memory and secondary memory.

Answer»

Main memory: Main memory in a computer is RAM (Random ACCESS Memory). It is also known as primary memory or read-write memory or internal memory. The programs and data that the CPU requires during the execution of a program are stored in this memory.
Secondary memory: Secondary memory in a computer are storage devices that can store data and programs. It is also known as external memory or additional memory or backup memory or auxiliary memory. Such storage devices are capable of storing high-volume data. Storage devices can be hard drives, USB flash drives, CDs, ETC

Primary MemorySecondary Memory
Data can be directly accessed by the processing unit.Firstly, data is transferred to primary memory and after then routed to the processing unit.
It can be both volatile and non-volatile in nature.It is non-volatile in nature.
It is more costly than secondary memory.It is more cost-effective or less costly than primary memory.
It is temporary because data is stored temporarily.It is PERMANENT because data is stored permanently.
In this memory, data can be lost whenever there is a power failure.In this memory, data is stored permanently and therefore cannot be lost even in case of power failure.
It is MUCH faster than secondary memory and saves data that is currently used by the computer.It is slower as compared to primary memory and saves different kinds of data in different formats.
It can be accessed by data.It can be accessed by I/O channels.
4.

What is IPC? What are the different IPC mechanisms?

Answer»

IPC (Interprocess Communication) is a mechanism that REQUIRES the use of RESOURCES like a memory that is SHARED between processes or threads. With IPC, OS allows different processes to COMMUNICATE with each other. It is simply used for exchanging data between multiple threads in one or more programs or processes. In this mechanism, different processes can communicate with each other with the approval of the OS.

Different IPC Mechanisms:

  • Pipes
  • Message Queuing
  • Semaphores
  • Socket
  • Shared Memory
  • Signals
5.

What do you mean by process synchronization?

Answer»

Process synchronization is basically a way to coordinate PROCESSES that use shared resources or data. It is very much essential to ensure synchronized execution of cooperating processes so that will MAINTAIN data consistency. Its main purpose is to share resources without any interference using mutual EXCLUSION. There are two TYPES of process synchronization:

  • Independent Process
  • Cooperative Process
6.

What do you mean by RTOS?

Answer»

REAL Time Operating System (RTOS) is an operating system that is used for real-time applications i.e., for those applications where data processing should be done in a fixed and small measure of time. It PERFORMS MUCH better on tasks that are needed to be EXECUTED within a short time. It also takes care of execution, monitoring, and all-controlling processes. It also occupies less memory and consumes FEWER resources. 

Types of RTOS:

  • Hard Real-Time
  • Firm Real-Time
  • Soft Real-Time

RTOS is used in Air traffic control systems, Anti-lock Brake Systems, and Heart pacemakers.

7.

Explain demand paging?

Answer»

Demand paging is a method that loads PAGES into memory on demand. This method is mostly used in VIRTUAL memory. In this, a page is only brought into memory when a location on that particular page is referenced during execution. The following steps are generally followed:

  • Attempt to access the page.
  • If the page is valid (in memory) then CONTINUE processing INSTRUCTIONS as normal.
  • If a page is invalid then a page-fault trap occurs.
  • Check if the memory reference is a valid reference to a location on secondary memory. If not, the process is terminated (illegal memory access). Otherwise, we have to page in the REQUIRED page.
  • Schedule disk operation to read the desired page into main memory.
  • Restart the instruction that was interrupted by the operating system trap.
8.

What is a bootstrap program in OS?

Answer»

It is generally a program that initializes OS during startup i.e., first code that is executed whenever computer system startups. OS is loaded through a BOOTSTRAPPING PROCESS or program commonly known as booting. Overall OS only DEPENDS on the bootstrap program to perform and WORK correctly. It is fully stored in boot blocks at a FIXED location on the disk. It also locates the kernel and loads it into the main memory after which the program starts its execution.

9.

What are the different kinds of operations that are possible on semaphore?

Answer»

There are basically two atomic OPERATIONS that are POSSIBLE:

10.

What is a Pipe and when it is used?

Answer»

The pipe is generally a connection among TWO or more processes that are interrelated to each other. It is a mechanism that is used for inter-process communication using message PASSING.  One can easily send information such as the OUTPUT of one PROGRAM process to another program process using a pipe. It can be used when two processes want to communicate one-way i.e., inter-process communication (IPC).

11.

What is GUI?

Answer»

GUI (Graphical USER INTERFACE) is basically a type of user interface that allows USERS to use graphics to interact with OS. GUI is created because it is more user-friendly, less complex, and easier to understand rather than a command-line interface. Its main goal is to INCREASE efficiency and EASE of use. Instead of having to memorize commands, users can just click on a button to simply execute the procedure. Examples of GUI include Microsoft Windows, macOS, Apple’s iOS, etc.

12.

What is RAID structure in OS? What are the different levels of RAID configuration?

Answer»

RAID (REDUNDANT Arrays of Independent Disks) is a method used to store data on Multiple hard disks therefore it is CONSIDERED as data storage virtualization technology that combines multiple hard disks. It simply balances data protection, system performance, storage space, etc. It is used to improve the overall performance and reliability of data storage. It also increases the storage capacity of the system and its main purpose is to achieve data redundancy to reduce data loss. 

Different levels of RAID

Nowadays, RAID is available in various schemes or RAID level as given below:

  • RAID 0 - Non-redundant striping: This level is used to increase the performance of the server.
  • RAID 1 - Mirroring and duplexing: This level is also known as disk mirroring and is considered the simplest way to implement fault tolerance.
  • RAID 2 - Memory-style error-correcting codes: This level generally uses dedicated hamming code parity I.e., a liner form of error correction code.
  • RAID 3 - Bit-interleaved Parity: This level requires a dedicated parity drive to store parity information.
  • RAID 4 - Block-interleaved Parity: This level is similar to RAID 5 but the only DIFFERENCE is that this level confines all parity data to a SINGLE drive.
  • RAID 5 - Block-interleaved distributed Parity: This level provides far better performance than disk mirroring and fault tolerance.
  • RAID 6 - P+Q Redundancy: This level generally provides fault tolerance for two drive FAILURES.
13.

What are the benefits of a multiprocessor system?

Answer»

A Multiprocessor system is a type of system that includes two or more CPUs. It involves the processing of different computer PROGRAMS at the same time mostly by a computer system with two or more CPUs that are sharing SINGLE memory. 

Benefits:

  • Such systems are used widely nowadays to improve performance in systems that are running multiple programs concurrently. 
  • By increasing the NUMBER of processors, a greater number of tasks can be COMPLETED in unit time. 
  • One also gets a considerable increase in throughput and is cost-effective also as all processors share the same resources.
  • It simply improves the reliability of the computer system.
14.

What's the main purpose of an OS? What are the different types of OS?

Answer»

The main purpose of an OS is to execute user programs and make it EASIER for users to understand and interact with computers as WELL as run applications. It is specially designed to ensure that the COMPUTER system performs better by managing all computational activities. It also manages computer memory, processes, and operation of all hardware and software.

Types of OS:

  • Batched OS (Example: Payroll System, Transactions Process, etc.)
  • Multi-Programmed OS (Example: WINDOWS O/S, UNIX O/S, etc.)
  • TIMESHARING OS (Example: Multics, etc.)
  • Distributed OS (LOCUS, etc.)
  • Real-Time OS (PSOS, VRTX, etc.)
15.

Why is the operating system important?

Answer»

OS is the most essential and vital part of a computer without which it is considered useless. It enables an interface or acts like a link for INTERACTION between computer software that is INSTALLED on OS and users. It also helps to communicate with hardware and also MAINTAINS balance among hardware and CPU. It also provides services to users and a PLATFORM for programs to run on. It performs all common TASKS applications require.