Skip to main content

ads1

Chapter - 5 Introduction to Operating System

 Chapter - 5 Introduction to Operating System

A modern computer system has a variety of resources like the CPU, memory, secondary storage, network, peripheral devices, etc.

A computer without any kind of software for above operations is a practically unusable device, because it may not even have the basic user interface to interact with the user.

Thus an operating system exists to satisfy all these needs. Because it controls the whole system, it is always the first program to be started when the computer system is turned on. 


What is an Operating System ?


An operating system is the controller, resource allocator and common services provider for a computer system. Like the government, it performs these functions to ensure smooth and mostly trouble-free operation of the computer. 


The Startup Process of a Computer When the computer is supplied power and turned on, the CPU takes control of the whole system.


The computer has a type of permanent memory called ROM (on personal computers, this is often called ROM BIOS (Basic Input Output System or simply BIOS) that contains an initial program. This initial program, called POST (Power On Self Test), performs a basic check on all other components and peripheral devices in the computer and initializes them so they are ready for use.


Once the operating system starts its execution, it takes control of the entire computer system. This entire process is called “booting” the computer to a particular operating system. 


Handling Multiprocessor Systems :- A computer system may have more than one CPU (processor) as well. A computer system having more than one processor is known as a multiprocessor system


Starting and Stopping Program Execution When the computer starts, initially it runs only the operating system. The operating system takes complete control of the computer system. It also runs a special program called the shell. The shell provides the user a user interface (UI) to work with. The user interface allows the user to indicate what they want to do. 


Providing Security When multiple users are accessing the same computer system, the operating system must provide some level of isolation between the users so that one user cannot disturb the work of another user


The shell is the most visible component of an operating system bundle; so much so that most people identify the operating system by the looks of the shell.

There are two main categories of user interfaces - a Command Line Interface (CLI) and a Graphical User Interface (GUI). The CLI expects only a low-cost low-power text-based terminal.


Supercomputers :- 

The largest and the most powerful computers ever built are known as supercomputers. These are computers that can perform millions of billions of floating point (real number) operations per second.


Personal Computers The category of computers most familiar to us is that of personal computers. These computers provide a general platform that caters to the widest possible range of uses and also to users with vastly different skill sets. 


Smartphones and Tablets Though you may not have realized it yet, a smartphone is also a computer in its own right. Tablet PCs are a hybrid between the smartphones and personal computers. These devices pose unique challenges for operating system designers because they have severe constraints on processing power, memory, energy usage (because higher energy usage would mean the battery would drain out faster) and screen real estate (the screen size is quite small compared to the PC, and yet, most facilities of a PC are expected). 


An Operating System for Smartphones: Android We are going to discuss the Ubuntu Linux operating.


A smartphone or a tablet (or phablet) is actually a small computer and functions as a combination of a phone, a Personal Digital Assistant (PDA) providing secretary-like functions (calendar with scheduling, memos and notes, to-do lists, meeting reminders, access to office documents, messaging service or instant email notifications, etc.) and a portable entertainment hub.


What is Android ? 

Android is a free and open source operating system for smartphones that is being developed by the Open Handset Alliance, whose most prominent member is Google, Inc. Android uses a slightly modified version of the Linux kernel. It is designed to support a diverse set of devices. Even though the list of devices running Android include watches, phones with small screens and only numeric or qwerty keyboards, touch screen phones, mid-sized phablets (phone + tablet), larger sized tablet computers, TVs and even microwave ovens, the operating system is primarily designed to provide a rich and attractive


(1) What is the full form of BIOS ? 


(a) Best Input Output Software 

(b) Basic Input Output Software 

(e) Best Input Output System 

(d) Basic Input Output System 


(2) Which of the following component acts as an intermediary between the operating 

system and the hardware ? 


(a) kernel 

(b) shell 

(c) device drivers 

(d) utility programs 


(3) Which of the following is a function of the operating system ? 


(a) resource management 

(b) Time management 

(c) memory management 

(d) All of these 


(4) Which of the following component of the operating system interacts with the user ? 


(a) shell 

(b) kernel 

(c) device drivers 

(d) I/O devices 


(5) The hardware devices are directly accessed by which of the following entity ? 


(a) the operating system 

(b) the kernel 

(c) the device drivers     

(d) the shell 

 

(6) Which of the following is the core component of an operating system ? 


(a) the shell 

(b) the kernel 

(c) the device drivers 

(d) the GUI 


(7) What is the full form of CLI ? 


(a) Command Line Interface 

(b) Command Line Interaction 

(c) Common Line Interaction 

(d) Common Line Interface 


(8)What is the full form of GUI? 


(a) Graphical User Interaction 

(b) Graphical Understandable Interaction 

(c) Graphical User Interface 

(d) Graphical Useful Interaction 


(9) Which of the following cannot be an object in a file system? 


(a) directory 

(b) file 

(c) user data 

(d) folder 


(10) Which of these sometimes come with only the kernel and not much more? 


(a) proprietary OS 

(b) free OS 

(c) embedded systems OS 

(d) super computer OS 


(11) Which of the following is NOT a limitation on a smart phone ? 


(a) processing power 

(b) power consumption 

(c) memory 

(d) network 


(12) Which are the smallest computers on the planet ? 


(a) smartphones 

(b) tablet computers 

(c) embedded systems 

(d) PDAs 


(13) Which operating system family is present in all categories of devices ? 


(a) Microsoft Windows 

(b) Unix/Linux 

(c) iOS 

(d) OS X 


(14) Android is developed by - 


(a) Microsoft 

(b) Google, Inc. 

(c) Open Handset Alliance 

(d) Samsung 






ads2

Popular posts from this blog

11. Write a Java program to input basic salary of an employee and calculate its Gross salary according to following:

    11. Write a Java program to input basic salary of an employee and calculate its Gross salary according to following: Basic Salary <= 10000 : HRA = 20%, DA = 80% Basic Salary <= 20000 : HRA = 25%, DA = 90% Basic Salary > 20000 : HRA = 30%, DA = 95% Static Solution :-  class salary {     public static void main(String args[])     {     double basic=20000.50,gross,da,hra;     if(basic <=10000)     {         da = basic * 0.8;         hra = basic *0.2;     }              else if(basic <=20000)     {         da = basic * 0.9;         hra = basic *0.25;     }     else     {         da = basic * 0.95;         hra = basic * 0.3;     }     gross = basic + da + hra;     System.out.println("The Gross Salary is :-"+gross);     } } Output :-  Dynamic Solution :-  class salary {     public static void main(String args[])     {     double basic=20000.50,gross,da,hra;     Scanner in = new Scanner(System.in);     System.out.println("Enter the Basic Salary

1. Given the school result data, analyses the performance of the students on #different parameters, e.g subject wise or class wise.

1. Given the school result data, analyses the performance of the students on #different parameters, e.g subject wise  or class wise. Solution :-   # x-axis is shows the subject and y -axis # shows the markers in each subject # import pandas and matplotlib  import pandas as pd  import matplotlib.pyplot as plt # Simple Line Chart with setting of Label of X and Y axis, # title for chart line and color of line  subject = ['Physic','Chemistry','Mathematics', 'Biology','Computer'] marks =[80,75,70,78,82] # To draw line in red colour plt.plot(subject,marks,'r',marker ='*')     # To Write Title of the Line Chart plt.title('Marks Scored') # To Put Label At Y Axis plt.xlabel('SUBJECT')           # To Put Label At X Axis plt.ylabel('MARKS')             plt.show() Output :- 

24.Create a Data Frame quarterly sales where each row contains the item category, item name, and expenditure. Group the rows by the category and print the total expenditure per category.

24.Create a Data Frame quarterly sales where each row contains the item category, item name, and expenditure. Group the rows by the category and print the total expenditure per category. import pandas as pd  # initialize list of lists data = [['CAR','Maruti',1000000],['AC','Hitachi',55000],['AIRCOLLER','Bajaj',12000], ['WASHING MACHINE','LG',15000],['CAR','Ford',7000000],['AC','SAMSUNG',45000],['AIRCOLLER','Symphony',20000],['WASHING MACHINE','Wirlpool',25000]] Col=['itemcat','itemname','expenditure'] # Create the pandas DataFrame qrtsales = pd.DataFrame(data,columns=Col) # print dataframe.  print (qrtsales) qs=qrtsales.groupby('itemcat')  print('Result after Filtering Dataframe')  print(qs['itemcat','expenditure'].sum()) Output :-