CS CH - 1 Computer System Oview
CS CH - 1 Computer System Oview
chapter
1
In This Chapter
1.1 Introduction
1.2 Computer Components and Basic Computer Organization
1.3 Mobile System Organization
1.4 Types of Software
Introduction
t,°mputers are the machines that have revolutionised the world around us. The way we used to
ve around 25-30 years ago is very different from how we live today. A modem age student
fannot even imagine life, without email, Internet, print outs, playing music on computers or
martphones, photos just a click away in the form of smartphones and so on. In short, in every
aspect of life around us, we see computers play a role directly or indirectly.
Computers deliver so mu91, diligently and efficiently, all thanks to the wonderful combination
of their hardware and software.
¢) Hardware. The physical electronic components of a computer are called hardware, e.g.,
keyboard, CPU, monitor, printer etc.
¢) Software. These are the recorded instructions and programs that govern the working of a
computer. Recall that a program is a set of instructions to carry out a specific task or achieve a
special work goal.
In this chapter, we shall discuss computer's functioning in broad sense by discussing computer
system organization and how various types of software aid in computer's overall performan~e.
!/
1.2 Computer Components and Etasic Computer Organization
A computer system comprises of five basi~ omponents (see Fig. 1.1) :
(i) Input Unit. It is responsible for taking input for the computer. The input devices
attached to the computer system make the input unit.
' , (ii) Output Unit. It is responsible for taking input for the computer. The output devices
attached to the computer system make the output unit.
1
COMPUTER SCIENCE WITH PYTHON - XI
th e data and
(ii,) Central Processing Unit (CPU). It is responsible for processing
instructions. It comprises of two parts : h .h
· 'ble for carrying out t e ant metic
(a) Aritlimctic and Logic Unit (ALW. It 1s responsi . . d . . s (greater th
instructions (add, subtract, multiply, divide) and making logic ecision an,
less than, equal to): •
(b) Control Unit. It is responsible for secondary Storage
controlling and supervising the
processing. • T
l .2 . l Computer Organisation
Computer organization refers to the logical structure of a computer describing how its
components are connected to one another ; how they affect one another's functioning, and
contribute to overall performance of the computer.
Computers, as you must be knowing, follow the 'IPO' principle i.e., Output
(a certain input is processed to generate specific output). So, the computer organization is
also like this - there are component(s) dedicated to obtain input in different forms,
component(s) dedicated to perform processing part and component(s) to produce output
in different forms.
Thus basic computer organization is as shown in Fig. 1.2. To see the interconnections and basic
j working of computer (Computer O.rganization), scan this QR Code with SIPO app.
cpu
r::::=:::------;::===::-i
rrN'-o~T!""!E~-
• -
J
To see
Computer Organization
In action
r;:;--;;iALU
L=.J
I I Registers
A computer runs on
IControl I. Memory
electricity power.
Scan
QR Code BUS
l .2 .3 O utput Unit
The output unit is formed by the output devices attached to the
computer. The output coming from the CPU is in the form of Output Unit converts the
electronic binary signals which needs conversion in some form ou,tput in binary form to
, human readable form.
which can be easily understood by human beings i.e., ·characters,
graphical or audio visual form. This function of conversion is
performed by output units. Some popular output devices are :
(1) Monitors. Monitor (or "screen") is the most common form of output from a computer.
It displays information in a similar way to that shown on a television screen. Th~
picture on a monitor is made up of thousands of tiny coloured dots called pixels.
For visually challenged people, Braille monitors are also available these days.
(ii) Printers. Printers are the devices that deliver information by means of printed
characters on paper. Printers come in variety of forms, e.g., inkjet, laserjet, dotrnatrix
printers etc. Unlike old style printers, which printed on a paper, these days 3D printers
are also available which can print/create 3D models.
(iii) Speakers. Spea}cers receive the sound in form of electric current from the sound card
and then convlrt it to sound format audible to user.
(iii) Registers
Registers or processor registers are small
units of data holding places. The CPU Modem days' smart machines (e.g., washing machines.
uses registers to temporarily hold some microwave oven etc.) also come with embedded CPUs. In
important processing-information during fact, these embedded CPUs are more than the CPU as these
the time the processing is taking place. also contain little ROM, RAM and other required circuitry
containing some embedded instructions. These embedded
CPU may store some part data or some
CPUs with accompanying memory and embedded
memory address or some instruction in its
instructions are called mlcrocontrollers.
processor registers.
penorm .
... •··················-········Fr.r=--Bit
Cello
When the power is switched off,
0 1 0 0 0 1 1 0 Celll everything stored in the memory gets
erased and cannot be recalled. The
memory of computer is often called
main memory or primary memory.
A bit is an elementary unit of tlie memory. Eight bits together form a byte.
One byte is the smallest unit which can represent a data item or
a character. Other units of memory are KB, MB, GB, TB etc. I BYTE OR N IBBLE
A group or 8 bits Is called a byte
Every higher memory unit is equal to 2 JO of its lower unit.
and a group of 4 bits Is called a
Following Table 1.1 lists various memory units used. nibble.
J
limited storage capacity and is Media
(it) One Megabyte is equivalent to : not permanent, secondary
(a) 210 bytes (b) 220 bytes CD ROMs Optical
storage devices are used to
(c) 230 bytes (d) none of the above 1 DVDs Media
store large amount of data
2. What are the functional components of 1
a digital computer ?
permanently. There are various
types of secondary devices
Pen drive
J memory~~·"'_
Flash
mobile system is as shown in Fig. 1.4 on next page. These days major components' of a
Let us talk about these functional components of a mobile mobile system are integrated on a
single chip called System on a Chip
system one by one. (SoC). The Soc chips consume less
A mobile system's CPU handles diverse types of applications power compared to other
but has a little power compared to computers as mobile alternatives.
Dlaplay Subayatam
Camera Unit
Touch sensitive Interface , (Image Signal
Processor)
Keyboard j
~-----------~-----~---7 CPU
External
Radio Signal Management (Digital Signal GPU (Graphic
Storage
Processor) Processing Unit)
Power Management
----------........--,
,---
Battery
pack
Battery ,
management 1 I I
CODEC
I
Charger
I AOC 11 I 0AC Ii Memory
Audio Subsystem
Mic Speaker
·
1. What· are major functional components
1
2. Display Subsystem
of a mobile system ? This subsystem is responsible for providing display facilities,
2. What is the rote of communication : touch sensitive interface and touch sensitive keyboards.
processor of a mobile system ?
3. How does a mobile system manage and · 3 . Camera Subsystem
draw power ? · This subunit is designed to deliver a tightly bound image
4. What is the rote of display management processing package and enable an improved overall picture
unit of a mobile system ? . . . .
s How does memory of mob1 e·t functio n• ·
1 and video expenence.
. It
. has
. an mtegrated Image Signal Pro-
6.• How does th e CPU of amobitesystem • cessor ensures
. .. .like instant imaoe
things o ctmture
··r , high- resolution
work ? · support, image stab,l,zat,on, and other image enhancements.
2. In fact, major subsystems are lilce processors in themselves e.g., Radio Signal Management system can be termed as Radio
signal processor.
Chapter I : COMPUTER SYSTEM OVERVIEW
1. 4 Types of Software
A computer system consists of hardware and software for its proper functioning.
Hardware represents the physical and tangible components of the computer i.e., the components
, that can be seen and touched. Input devices, output devices, CPU, hard disk, printer etc. are
__ examples of computer hardware. ,. ..
Application Software
Software represents the set of programs that won1 proalS1QB
g overn the operation of a computer system s i - - -1s System Software
and make the hardware run. Software can be
classified broadly into two categories.
=
I
Hardware
Graphic Operating
-
1. System Software System . CPU. dllb,rnouse.
' prinlar, ....
2. Application Software
Language Devia,
Following sections discuss system software prncesson
The system software can further be classified into two categories : I SYSTEM SOFTWARE
1. Operating System 2. Language Processor. The software that controls
Internal computer operations Is
Let us discuss each one of these individually. calle~ System Soft_ware.
The translated machine code runs fast (faster execution time) as now computer does not require
any type of conversion . to run it ; unlike source code which requires conversion into
object/machine code before it can be executed.
l .4.2A Packages
As applications may be numerous (from thousands to millions of them), it is not feasible to design
software for each one of them. Rather some general software are designed that may be used by
individual users in the manner it suits their needs and requirements. Such general-application
software are known as packages.
Some major and most common categories of general application software (packages) are :
(r) Word Processing Software (iz) Spreadsheets
(iii) Database Management Systems (iv) Desktop Publishing Software
(v) Graphics, multimedia, and presentation applications.
1.4.28 Utilities
Utilities are those helpful programs that ensure the smooth I UT! LI T I ES
functioning of the computer. Utility programs or simply Utilities are those application
Utilities are meant to assist your computer. programs that assist the computer by
performing housekeeping functions
Utilities bridge the gaps by helping to solve the problems like backing up disk or scanning /
and maximize your computer's potential. Some important ' cleaning viruses or arranging
utilities are being discussed below. information etc.
5. Antivirus Software. This utility program ensures virus-free work en~nment. A computer
virus is a malicious computer program that disrupts normal functtomng of a computer.
An antivirus software scans your disk for viruses and removes them, if any ~ s is
found. Moreover, some antivirus software remains present in memory all th e time so
that they can detect the viruses (as soon as they occur) and counterattack them.
l .4.2C Business Software
This type of software is specifically created according to a business requirements. For inS t ance,
a company wants to computerize its' Accounts' department and gets a softw are_ that can serve
its needs. Such a software is business software. There are many readymade business software.
These can cater to a variety of business needs. Examples of these software are Inventory
Management System (for managing inventory details of a company), Payroll system (for handling
payroll of a company's employees), Financial Accounting etc. Although there are standard
business software available in market, yet some companies prefer getting customized
(tailor-made) software as per their specific requirements. However, such softwares cannot be
directly installed at any other user's workplace as the requirements of the second user may
differ from the first and the software may not fit in the requirements of the new user.
Computt'rs can deliver pt'rformanre because of an efl)cient combination of hardware and software.
While hardware refers to physical electronic components of a computer, software represent the recorded
instructions/software that govern Its operation.
Computer organization refers to logical structure of a computer describing their Interconnections and work
dependency.
The functional components of a computer include : Input unit. CPU, Memory, Storage Unit, Output Unit.
The Input unit is responsible for obtaining Input from user and converting it to digital form.
The CPU (Central Processing Unit) processes the received Input as per a set of Instructions and produces output.
The CPU has these sub-components : ALU, Control Unit and Registers.
The ALU (Arithmetic of Logic Unit) is responsible for carrying out arithmetic operations and logic operations
(e.g., comparing two values).
The Control Unit controls or supervises the processing taking place.
Registers are small data holding areas within CPU that hold data, instructions and memory address during the
processing.
The main memory or memory holds the data and programs for the processing.
Main memory can either be ROM or RAM.
ROM is read only memory that stores some prewrltten Instructions.
RAM is Random access memory that can be read and written and is used for manipulating data during processing.
The primary memory (RAM) is volatile in nature os all contents are erased as soon as power goes off.
The cache memory is a special high speed memory storing the most recently accessed data.
The storage unit stores the contents permanently.
Major storage devices are hard disks, CD, DVD, flash drive and Blue-Ray discs.
A mobile system handles complex types of operations including input, output and processing.
1 Major functional components of a mobile system are Radio Signal Management subsystem, Display subsystem,
power management subsystem, CPU, Memory and storage subsystems.
Software represents the set of programs that govern the operation of a computer system and make the hardware
run.
The software that controls internal computer operations is called system software.
An operating system is a program which acts as an interface between the user and the hardware.
There are different types of OSs available -single program OS, multiprogram OS, time-sharing OS, real-time OS,
multiprocessing OS etc.
A language processor convt'rts a program written in high level language to machine language.
There are three language processors : (i) assembler which converts assembly language code to machine code, (ii) compiler
and (iii) interpreter which convert high level language code to machine code.
Application software is a set of programs necessary to carry out operations (or a specified application.
There are three categories of upplicucicm software : (I) packages (ii) utilities and (iii) customised software.
Utility programs assist the computer in maintaining its perfo:"!nnce. Some of t/1e utilities are: trxt editors, backup
uti/itlc.~, compression utilities, disk defragm Pmors, and ont1vrr11s software.
Customised software Is tailor made softwarr according to user's requlreme11ts.
Software libraries are sets of prewritten codelfunctlons/classes etc. available to programmers for use In the
development of new co_de.
14 COMPUTER SCIENCE WITH PYTHON - XI
1. - - - refers to the logical structure of a computer describing their interconnections and dependency.
2. RAM and ROM are the types of ___ memory.
3. The ___ is responsible for carrying out arithmetic and logic operations.
4. The ___ of the CPU controls or supervises the processing taking places.
5. The small memory providing units inside the CPU are called the ___ .
6. The ___ memory is a special high speed memory storing the most recently accessed data.
7. The power unit of a mobile system is called ___ .
8. The set of programs necessary to carry out operations/tasks pertaining to a specific application, are
called ______ .
9. Software that controls and manages internal computer operations is called ______ .
10. Utility programs are a type of_·_·_ _,_ _ .
11. Antivirus software is a ·type of ______'_ .
12. Windows OS is a type of ______ .
TRUE/FALSE QUESTIONS
DIRECTIONS
Jn the following questions, a statem,ent of Assertion (A) is followed by a statement of Reason (R).
Mark the co"ect choice as :
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false (or partly true).
(d) A is false (or partly t_rue) but R is tf\l~~- (c) Both A and R are false or not fully true.
,•.-16 COMPUTER SCIENCE WITH PYTHON - XI
1. Assertion. A computer can deliver performance only through an efficient combination of hardware
and software.
Reason. While hardware refers to the physical electronics equipment, software are the recorded
programs that govern the hardware to perform tasks in a computer.
2. Assertion. The CPU of a computer uses registers as memory.
Reason. Registers are small data holding areas within CPU that hold data, instructions etc. during
the processing.
3. Assertion. The primary memory is volatile memory as all its contents get erased as soon as the
power goes off.
Reason. The cache memory is also a primary memory.
4. Assertion. A part of main memory is non-volatile too.
Reason. ROM is a read only memory with some pre-written instructions, which are retained even
after power is off.
5. Assertion. Not all types of software are system software.
Reason. Application software are designed to carry out operations for a specific application.
6. Assertion. An operating system is a system software.
Reason. The software that controls internal computer operations, is called system software.
7. Assertion. Customised software is a tailor made software according to user's requirements.
Reason. Software libraries are customised software.
8. Assertion. Utility software programs are application software.
Reason. Application software are the programs necessary to carry out operations for specific
applications.
' NOTE : Answers for OTQs are given at the end of the book.
1. State the basic units of the computer. Name the subunits that make up the CPU, and give the function ofeach
of the units.
Solution. The basic units of a computer are :
1. Input unit 2. Central Processing Unit (CPU) 3. Output Unit 4. Memory.
The CPU has two subunits : the control unit (CU) and the arithmetic logic unit (ALU).
The control unit controls the entire operation being carried out.
The ALU performs the arithmetic and logical operations.
2. What is the function of memory ? What are its measuring units ?
Solution. The memory temporarily holds the_data and information during processing.
The smallest unit of memory is a byte (8 bits). A byte can store one character in binary form. Other
10
measuring units are kilobyte (KB) equal to 1024 (2 ) bytes, Megabyte (MB) equal to 1024 KB,
Gigabyte (GB) equal to 1024 MB and Terabyte (TB) equal to 1024 GB.
3. Give examples for each of system software and application software. Explain the function of each type.
Solution. Examples of system software are :
(1) Operating system (i1) Language Processor (iii) Application Software
Examples of Operation System are : Single user OS, multiuser OS, batch processing OS, multiprocessing
OS etc.
Chapter 1 : COMPUTER SYSTEM OVERVIEW 17
. .
As the names suggest, single user OS supports single user whereas multiuser OS can support multiple
users. The batch processing OS processes the batches (groups) of jobs (processes given to it) and
multiprocessing OS is capable of handling multiple CPUs at the same time.
The examples of language processors are : (1) Interpreter (ii) Compiler (iii) Assembler
. An i~terpreter converts and executes an HLL program into object program line by line whereas a
~ompiler converts an HLL program into object program in one go and once the program is error free,
it can be executed later. An assembler converts an assembly language program into object program.
Examples of application software are : (1) Customised Software (ii) General software.
The customised software pertains to the requirements of a specific user for whom the software has
been developed. General software is developed keeping in mind general specifications of a problem.
4. Why is primary memory termed as 'destructive write' memory but 'non-destructive read' memory ?
Solution. When a memory location is read from in the primary memory, the contents of the memory
word remain the same ; they are not altered. Therefore, a primary memory is termed as 'non-
destructive read' memory since the read operation does not destruct the contents of a memory word.
When a write operation takes place, the previous contents of the memory word are overwritten.
Thus, the primary memory is termed as 'destructive write' memory as the write operation destructs
the contents of a memory word.
5. What is the difference between RAM and ROM ?
Solution. RAM refers to random access memory where both read and write operations can take
place. But the RAM is a volatile memory ; its contents are lost when power is turned off.
ROM refers to read only memory where only read operation can take place. The ROM is a
non-volatile memory.
Both RAM and ROM are parts of the primary mem_ory.
6 What is Cache memory? Why is it considered crucial for a microprocessor's performance?
Solution. Cache memory is a special high-speed memory that stores most recently used data in
order to speed up the process of instruction execution. A cache can speed up data retrieval because
recently used data is likely to be used again by the computer.
7. What is the role of CPU of a mobile system ?
Solution. A mobile system has to cater to a variety of operations and applications and its CPU has to
manage all these. Thus the CPU of a mobile system has many sub-processors that help it control and
manage diverse applications. The CPU of a mobile manages all these types of applications and operations :
• Manages communications while connec- • Manages audio through ADC (analog to digital
ting to radio transceivers and SIM. converter) and DAC (digital to analog converter).
• Manages display and touch sensitive • Works in tandem with memory and storage.
sensors and interface.
8. What are various categories of software ?
Solution. There are broadly two categories of software:
1. Syst~m Software. This type of software controls internal computer operations. The system
software can further be classified in two categories :
(I) Operating System. An operating system is a program which acts as an interface between a user
and the hardware.
(ii) IAnguage Processor. This program is responsible for converting an HLL code (High Level
Language code) into machine understandable code.
2. Application Software. An application software is the set of programs necessary to carry out
operations for a specified application.
COMPUTER SCIENCE WITH PYTHON - XI
1. Name tile software required to make a computer functional. Write down its two primary services.
Ans. Operating System. Two of its primary services are : managing CPU and managing primary
111e111ory.
2. Hou, does the computer 11ndersta11d a progrom written in /1igh level language ?
Ans. The program written in high level language is first converted/translated into machine language
by a language processor, which is then handed over to a computer. Thus, the computer is able to
understand the programs written in high level language.
3. Wiry is the execution time of the 111ncl1i11e code less than that of source code ?
Ans. The translated machine code runs fast (faster execution time) as now the computer does not
require any type of conversion to run it ; unlike source code which requires conversion into
object/machine code before it can be executed.
4. Wliat is the need of RAM ? How does it differ from ROM ?
Ans. The RAM is needed for the smooth running of a computer's operations as it provides memory
for reading as well writing; its contents can be modified as and when required. ROM, on the other
hand, stores some instructions which are permanent. ROM cannot be written onto. One can only
read instructions from ROM.
Thus RAM along with ROM, is required for the smooth functioning of a computer system.
L
Chapter 1 : COMPUTER SYSTEM OVERVIEW 19
5. Wlzat is the need for secondan; memory ?
Ans. The primary memory holds the data and instructions only during processing and after that, it
gets erased. One cannot store data and instructions permanently on RAM.
To permanently store data and instructions, the secondary memory is required.
6. How do different components of the computer communicate with each other ?
Ans. Different components of a computer communicate through the bus which connects the
functional components of a computer system.
13. Na me the input or output device used to do the following :
(a) To output audio (b) To enter textual data
(c) To make hard copy of a text file (d) To display the data or information
(e) To enter audio-based command (f) To build 3D models
(g) To assist a visually-impaired individual in entering data
Ans. (a) speaker (b) keyboard (c) printer (d) monitor (e) MIC
(j) 3D printer (g) Braille Keyboard
, 14. ldentifiJ the categon; (system, application, programming tool) of the following software
(a) Compiler (b) Assembler (c) Ubuntu (d) Text editor
Ans. (a) system software (b) system software
(c) system software (d) programming tool
GLOSSARY
ROM Read-only memory. (ROM Rymes with Mom) This device provides non-volatile storage of programs
and data. You con access any memory location by supplying its address. 1
i21ii5?%C%i5!ScF:i7Wnr