Reference Textbook Grade 11 CS
Reference Textbook Grade 11 CS
~ha pt e ~r--
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
• 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
annot 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 much, 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 performance.
(.. c
"''\ . cntral Processing Unit (CPU). It is responst'ble fOr processing the data and
mstructions. It comprises of two parts : . h •
, (a) Arit11rnctic and Logic Unit (ALU). It is responsible for carrydmg_ ~ut t '~ antthrnetic
/ • ·
instructions . ·a·) d aking logic eas1ons \iSrea er than
(add, subtract, multiply, d,v, e an m ,
1
less than, equal to).
•/' (b) Control_ Unit. It is respo~ible for secondary Storage
1 controlling and supervising the
processing.
• (iv) Primary Memory. It is the internal volatile Central processing Unit
memory where data and instructions are
st0red during processing. [ Conlld UnR ]
Thus basic computer organization is as shown in Fig. 1.2. To see the interconnections and basic
working of computer (Computer Organization), scan this QR Code with SIPO app.
. '
A[or E
Computer Organization
in action I Registers I A computer runs on
electricity power.
Memory
Scan
QR Code BUS
The
inf CU .control8 and guide • s the interp
retation, flow and maru•puIation
AL~rmation.1:he CU sends control signals until the requi
• f a11 data d
red operations are done properly by
an°
and ~emory• Another important function of CU is the progr
out all the mstru ti am execution i.~., carrying
and executes th c ons stored in the program. The CU gets ·
program instructions fro~ mcuemothry
instruction. em one after the other. After getting the instru
ctions from memory m , e
is decoded and interpreted i.e., which operation is to be perfo
operation is carried out. After the work of this instruction rmed. Then the asked
signal tome is completed, control unit sends
mory to send the next instruction in sequence to CU.
The control unit even controls the flow of data from ;·CU acts as a ·sup;~or by
devices to mem input
I d fr
ory an om memory to output devices. controlling and guiding
(iii} Registers the operation taking place. ,
Registers.or processor regist
ers are small
units of data holding place
s. The CPU
uses registers to temporarily hold Modern days' smart machines (e.g., washing machin
some es,
important processing-information durin microwave oven etc.) also come with embedded CPUs.
g In
the time the processing is taking place. fact, these embedded CPUs are more than the CPU as these
also contain little ROM, RAM and other required circuitr
CPU may store some part data or some y
containing some embedded instructions. These embed
memory address or some instruction in its
I
ded
CPUs with accompanying memory and embed
ded
. processor registers. Instructions are called mlcrocontrollers.
1
(ii) Static ~ - These are made up of flip-flops and offer 1MEMOR~°Acc:ESS TIM(
faster access times (about 10 nanoseconds) than DRAMs. 1The amount of time taken to
Static RAMs are thus used in specialized applications produce data required from
while dynamic RAMs are used in the primary storage memory, from the start of access
sections of most computers. l- until the availability of data, is I
•i_call~d Memory Access Time.
Read Only Memory (ROM)
A read-only memory (ROM) is a memory unit that performs the read operation only; it does not
have a write capability. This implies that the binary information stored in. a ROM is made
permanent during the hardware production of the unit and cannot be altered by writing
different words into it (hence non-volatile). ROM, however, is slower than RAM.
There are various types of ROM which are· given below :
(i) PROM (programmable ROM). Also called OTP (One Time Programmable). PROM is a
user-programmable memory in which information is burnt using special equipment
called a ROM burner.
1. Aflip-flop is a binary cell capable of storing one bit of infonnation.
COMPUTER SCIENCE WITH P'fT
~C)~
'~
(i bl ROM) In ErRO~f, one dcan program th
·uv radiation) an erase It rnanye titll~'llo
•
I:
J, c~Ro~, (traHblt rrogr.amm• ' t I
d,,p (thn.mgh ,·arim1~ mrcham~ms r.g., 20 minutes for erasing EPROM contenrnes;
Ol\.'\Jl"'J. 11,c UV•tl'ROM can take up to l ROM). In EEPROM, the E ts.
(ii,) ElrRo~., (electrically erasable program~ahbEeEPROM, selective bytes can bP~a~:
era~ electrically which 1s . faster. Also wit e e is
' ra~
unlike UV-EPRO~~ which erases fully. f t comparatively (the era
(' ) F
rv la~h EEPROf\f. It is like EEPROM but I·sAlso,very as sure
it erases fully and not selective} of th~
entire contents takes less than a second). . hich the contents are y,
(v) Mask ROM. Mask ROM refers to a kind of ROM ::le ROM. prograll\tii~
by the IC manufacturer. It is not a user-program
1.2.6
Cache Memory r .. _,.. .,. , .--·· .
p
ronounced as caslt the cache memory is a speo•a1 high-speed .· ........ ~.
st0rage mechanism: It can • f 1 •>·,)
be either a reserved section of main ·The Cache Memory :---- ..
memory
or an indepen•dent high-speed storage device or even fi t
1
speed memory available
1
s a h· •
. 'gij
on CPU chip. Whenev
1,
· •
er some data 1S require ,d the CPU rs. 1t CPU I de_r to sp~ed 1nsid \
looks in the cache if •t • th
.• . or. up ace e
, 1 1s ere or not• If the data is found . tn l to data
RAM an~ instructions st ess
cache, CPU does not access memory and hence the process t __ ,__...~:~~~·••---.... oredin
-~ ]
becomes very fast.
When data is found in the cache it is called a cache hit, and the eff~~~:eness of_ a cache
is judged
by its hit rate. 95% of the time th~ processor is w~rking, it i~_ac~essmg informa~on from
cache.
,. '
of control unit of CPU ? We can represent the storage capacity of storage devices in
4. What role does the input unit play in a terms of kilo bytes (KBs), mega bytes (MBs), giga bytes (GBs)
1
the surface of
r 9. •What is the role of cache memory ?
rl
rotating disks by magnetic heads as tiny magnetic spots.
\ 10. Which storage device is considered a The
hard disks of today have storage capacity measured in
portable ~e_vice ? giga bytes upto tera bytes.
Chapter 1 : COMPUTER SYSTEM OVERVIEW
CDs are
2. Compact Disks (CDs). 11,e compact disks or CDs are optical media. The
relatively cheap and have a storage capacity of upto 700 Mb.
but is able
3. DVDs. DVD is an optical storage device that looks the same as a compact disc
compu ter about 20
to hold about 15 times as much information and transfer it to the
times as
17 gigaby tes
fast as a CD-ROM. A DVD, also called a Super Density disk (SD), can hold upto
of data or four hours of movies on a side.
a 'solid state'
. 4. Flash Memory. A flash drive is a small, ultra-portable storage device with
s it m_ake use ~f
memory i.e., it has no moving parts unlike magnetic storage devices, ~~doe
way to RAM. The key d1fference is
lasers - unlike optical drives. Instead, it works in a similar
are now fairly
that data is retained in Flash memory everi when the power is switched off. They
inexpensive. Typical sizes. range from 256 Mbytes ~p to 128 GB and beyond.
5. Blu Ray Disk. Blu-ray Disc (also known as Blu-ray or BD) is an optical disc
storage media
disc has the same
· format. Its main uses are high-definition video and data storage. The
techno logies such as DVD,
dimensions as a stanciard DVD or CD. While current optical disc
the new format
DVD ± R, DVD ± RW, and DVD-RAM rely on a red laser to read and write data,
uses a blue-violet laser instead, hence the name Bl~-ray. The benefit of using a blue-violet laser
(405 nm) is that it has a shorter wavelength than a red laser (650 nm), which
makes it possible to .
more tightly and
focus the laser spot with even greater precision. ~s allows data to be packed
the same size as a
stored in less space, so it's possible to fit more data on the disc ·even though it's
CD/DVD. Blu Ray disks of today are capable of storing upto 128 GB of data.
.
' .
1.2.8 The System Bus
cables and that
The system bus (or the bus) is an electronic pathway composed of connecting
and instructions
connects the major components of acomputer sy$tem. Through system bus, data
.• • •
are passed among the computer system components.
. carrying part of system
¢) The data . bus .
bus is called data
¢) The control instruction carrying p~irt of system bus is called
control bus.
'
Camera Unit
i---, (Image Slgna1
Protesaor)
,.,,,_ ----
,. - - - -
- - - -- P n
A~ss1ng Unit)
Storage
I~ p Extema1
rir--t_ _r.;;) PR(>CESS()R GPU (Graphic Storage
' I sslng Unit)
-
Power M1nlglfflllll
s
[a:: J-+-==-1
I I [!cc] s Memory
speaker
Mic
• tion
Figure 1.4 Mobile system orgamza •
, Databases. •
System Software
are run. Softwa re can be _.,
\
software
\ printer, etc.
2. Application Software Device
' Language
Following sections discuss system software
, , processors drivers
The ~~trm ~ftware ran furthrr be dassiflcJ into tu\J categories : ISYSTEM SOFTWARE
1. ~alin g 2. Language Processor. Thi software that tontr •
kt us discu~ each one of these individually. •Internal computer operations011
called Syst,m Softwoff, 11
1.4.1 A Operating System
The primary goal of an operating system is to make the computer system conve~ient to
use and
Sl'COndary goal is to use computer hardware in an efficient manner. An operating system is an
important component of a computer system which controls all
other components of the computer system. Major components of
a computer system are:
I
OPERATING SYSTEM
An Operating System is aprogram·
1. The Hardware 2. The Operating System (OS) which acts as an Interface
between auser and the hardware
3. The Application program routines (compiler, linkers,
(I.e., all computer resources) .
. database !)lanagement systems, utility programs) '
4. The Humanware (users)
where hardware provides the basic computing reso~rces, the application program routines
define the
ways in which these resources are used to solve the computing problems of the users
and the
Operating System controls and coordinates the tlse of the· hard~are among the
various
application programs for the various-users.
An operating system's major role is to execute a program and manage the resource
computers. s of
There are different types of operating systems available today to : ---- 7..J
cater to varied type of requirements. These are : Single user OS,
Multiuser OS, Time sharing-OS, Real time OS, Multiprocessing OS, As soon as a computer is booted
Distributed OS etc. up, OS is loaded on RAM so that it
can execute programs and
We are not discussing these operating systems types here as it is applications, and manage other
beyond the scope of the syllabus. resources of computer.
1.4.1 B Language Processors/Language Translotors
A language processor is a special type of a computer software that can translate the source
code
into an object code or machine,code. Here you should know the meaning of the terms source
code
or object code.
A so~ce .code refers to the program-code written by a programmer in a high level
¢)
programming lan~age (HLL) such as in C, Java, C++ etc.
¢) An object code refers to a code usually in machine language or binary
code, a language
that computer can understand easily and run on hardware.
So, you can safely say that language processors are software that convert source codes into
object
codes.· .,.
There are three types of language processors:·· assembler, compiler and interpret
er.
(z) Assembler. This language processor converts the program written in assembly languag
e
into machine language.
.
(ii) Interpreter. An interpreter is a type of system software that translates and executes
/
billing etc. • •
prepa ration, railw ay reserv ation,
categories :
Application software can further be subdivided into four
2. Utilities 3. Customised Software 4. Developer Tools
1. Packages
1.4.2A Packages
As applications may be numerous (from thousands to millio
ns of them), it is not feasible to design
are are designed that may be used by
software for each one of them. Rather some general softw
requirements. Such general-application
individual users in the manner it suits their needs and ••
. - software are known as packages. •
c~tion software (packages) are :
Some major and most common categories of general. appli
(i) Word Processing Software • (ii) Spreadsheets
(iii) Database Mana ge~e nt Systems (iv) Desktop Publishing Software
ns.
(v) Graphics, multimedia, and presentation applicatio
. ,
'
I
I
I '
]
1.4.2B Utilities
Utilitie~ ~e those helpful programs that ensure the smoo
th I
UTIL \T~.E ~_-_ __ - - ~
simply Utilities are those application;
, functioning of the computer. U_tility programs or
\ programs that assist the computer by 4
Utilities are meant to ass~st your computer. performing housekeeping functions
the probl ems· • '
Utilities bridge the gaps by helpi ng to solve like backing up disk or scanning /,
rtant
and maximize your computer's potential. Some impo cleaning viruses or arranging\
l information etc.·- _ __j
utilities are being discussed below.
ing,
,,,
a compiler and
linear algebra, optimization, inte
gration, and statistics.
interpreter. 3. Panda Library. Pandas is
6. • What is utility software ?
a Python package designed
• •• ' to do work with "labeled" and
7~ What are ·software librarie "relational" data. It is
s? How are·. designed for quick and eas
y
they useful to programmers ? .aggregation, and visualization data manipulation,
.
z;
Chapter 1 : COMPUTER SYSTEM OVE~~IEW
VISE J
so(twan.
Computers can deliver performance because of an efficient combination of hardwan and
r,pr~n l I~ rtcordftl
,. ~ile ~rdwo n refers to physical electronic components of a computer. so(twatt
,nstructlons/so(tware that govern its operation.
nections and worlc
Computer organization refers to logical structure of a computer describing their Intercon
dependency.
Unit, Output Unit
The functional components of a computer include : input unit, CPU, Mtmo,y , Storagt
form.
The Input unit is responsible for obtaining input from user and converting ii to digital
and produces output.
The CPU (Central Processing Unit) processes the received input as per a set of instructions
The CPU has these sub-components: ALU, Control Unit and Registers.
ns and logic operations
The ALU (Arithmetic of Logic Unit) is responsible for carrying out arithmetic operatio
(e.g., comparing two values).
The Control Unit controls or supervises the processing taking place.
address during the
Registers are small data holding areas within CPU that hold data, instructions and memory
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 prewritten instructions.
data during processing.
RAM is Random access memory that can be read and written and is used for manipulating
goes off.
The primary memory (RAM) is volatile in nature as all contents are erased as soon as power
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.
ng.
A mobile system handles complex types of operations including input, output and processi
m, Display subsystem,
Major functional components of a mobile system are Radio Signal Management subsyste
power management subsystem, CPU, Memory and storage subsystems.
and make the hardware
Software represents the set of programs that govern the operation of a computer system
run.
The software that controls internal computer operations is called system software.
e.
An operating system is a program which acts as an interface between the user and the hardwar
ring OS, real-time OS,
There are different types of OSs available-single pr.ogram OS, multiprogram OS, time-sha
multiprocessing OS etc.
.
A language processor converts a program written in high level language to machine language
code, (ii) compiler
There are three language processors: (i) assembler which converts assembly language code to machine
and (iii) interpreter which convert high level language code to machine code.
application.
Application software is a set of programs necessary to carry out operations for a specified
ed software.
There are three categories of application sofnvare : (i) packages (ii) utilities and (iii) customis
: text editors, backup
Utility programs assist the computer in maintaining its performance. Some of the utilities are
utilities, compression utilities, disk defragmentors, and antivirus software .
Customised software is tailor made software according to user's requirements.
mers for use in the
Software libraries are sets of prewritten code/functions/classes etc. available to program
development of new code.
0
'\ \
\\
Chapter 1 : COMPUTER SYSTEM OVERVIEW
1. _ _ refers to the logical structure of a computer describing their interconnections and dependency.
2. RAM and ROM are the types of _ _ memo~.
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
D1.RECTIONS
In tlie following questions, a statement of Assertion (A) is followed by a statement of Reason (R).
Mark the correct choice as :
(a) Both A and Rare true and R is the correct explanation of A.
(b) Both A and Rare true but R is not the correct explanation of A.
(c) A is true but R is false (or partly true). l
(d) A is false (or partly true) but R is true. (e) Both A and Rare false or not fully true. 1
COMPUTER SCIENCE WITH PYTHON -
S'oh,,~ Pro~I,"'~
r . a •n tffr el
1. State the basic units of the computer. Name the subunits_ that make up the CPU, and give the function of each
of the units.
Solution. The basic units of a computer are :
. . .
L Input unit 2. Central Processing Unit (CPU) 3. Output Unit 4. Memory.
Jhe 9)'U 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 an4 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
measuring units are kilobyte (KB) equal to 1024 (2 10 ) 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· (it) Language Processor (iii) Application Software
Examples of Operation System are : Single user OS, multiuser OS, batch processing OS, multiprocessing
O S etc.
Chapter 1 : COMPUTER SYSTEM OVERVIEW
As the names suggest, single r,ser OS supports single user whereas rrmlliuser OS can support multiple
users. The batdr processing OS processes the batches (groups) of jobs (processes given to it) and
multiprocessing OS is capable of hanaling multiple CPUs at the same time.
The exam11les of language processors are : (1) Interpreter (iz) Compiler (iii) Assembler
An interpreter converts and executes an HLL program into object program line by line whereas a
compiler 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
\ ., ' f
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 .memory.
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 tha:t help it control anq
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). . 1
• 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. System Software. This type of software controls internal computer operations. The system
software can further be classified in two categories : '
(1) Operating System. An ope!ating system is a program ~hich acts as an interface between a user
and the hardware.
(ii) Language 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 .. ~I
Q
·,
\ . •
\11111 •~ tlrr dif)i·rr,icr l'lftuvcn arr mterprrt ,d a a,11111iler ?
t.'T a, chin language line by line
.
Scilutim. An intcrprm-r C'l-,m•rrts an HLL Program .mto ma e
te reter must always be present in an(!th
~imuJtan~1u~ly cxl"C\Jtrs the ronverted line. AISO, an in rp occurs in a line, the line
memory along with the program for its . --•tion If an error
ex.."".. •.
is display
'-\(
0
!
.. d
and intcrprt'tcr docs not proceed unless the error is rectif1e • . If there are errors in h
A · chine languag e m one go.
compiler converts an HLL program in ma_ On the errors are removed, error-frete
program, it givrs the error list along with the hne numbers. ce d d in the memory
. e
obj~ct code is made available and after this compiler is no more nee e
•
• (v) translates the entire program in one go.
Solution. Interpreter : (1), (ii,), (iv) ; Compiler: (ii), (v)
1. Name the 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 managin
g primary
memory.
2. How does the computer understand a program written in high 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 comput
er is able to
understand the programs written in high level language.
3. Why is the execution time of the machine code less than that of source code
?
Ans. The translated machine coqe runs fast (faster execution time) as now the comput
er 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. What 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 provide
s 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 c9mputer
system.
Chapter 1 : COMPUTER SYSTEM OVERVIEW
GLOSSARY
PROM Programmable read-only memory. With a PROM programmer, you can bum in your own programs and data.
RAM Random-access memory. It is also called a read-write memory because you can read the contents of
a memory location or write new contents into it.
ROM Read-only memory. (ROM Rymes with Mom) This device provides non-volatile storage of programs
• and data. You can access any memory location by supplying its address.
Software Set of programs that govern the operation of a computer system.
Language ProcessorSoftware that converts a high level language code into machine understandable form.
System Software Software that controls internal computer operations.
Utility Software A software that assists the computer by performing housekeeping fundions.
COMPUTER SCIENCE WITH PYTHON ... XI
ZSf1ti*
1
28. To run your computer system, what types of software are necessary? What role does each type play in
computer's functioning ?