Computer Book
Computer Book
Computer Applications
CBSE
IX
Author
Sarika Kaushal
All rights reserved. No part of this work may be reproduced or utilized in any form or by any means, electronic or
mechanical, including photocopy, recording, or by any information storage and retrieval system without permission
in writing from the publisher. Enquiries concerning reproduction outside the scope of the above should be sent to
the address above. You must not circulate this book in any other binding or cover and you must impose this same
condition on any acquirer.
ISBN: 978-93-88411-58-5
Computer Applications in the school curriculum for class IX deals with concepts related to
computer technology. Computers are an integral part of our lives, and it is essential for learners to
keep face with fast-changing computer technology. It is imperative to enable learners to apply the
computer technology tools and provide them ample scope to explore and experiment with these
tools. Computer Applications, an Indiannica Learning school book for class IX, is based on the
2018 CBSE syllabus for Computer Applications (code 165), earlier Foundations of Information
Technology. The book communicates about information technology through an interactive and
hands-on approach.
All the application programs are based on the open-source software from OpenOffice.org.
The key concept behind this book is its task-based approach which encourages learning through
application. The chapters are supplemented with examples which are given in a graded manner to
make the process of learning simple and effective. To indicate the specific skill to be evaluated icons
have been inserted beside the relevant text. These are coded as given below.
e Environment, v Values
5. Lab Exercises
• Basic I/O devices: use the mouse and keyboard, draw a figure.
• Working with the operating system: Navigation of the file system using a mouse and keyboard, and then doing the same
with shell commands.
• Word processing: create a text document, create a letter, report, and greeting card.
• Create a text document with figures in it. It should describe a concept taught in another course.
• Discuss the following in a text document about the basic organisation of a computer: CPU, memory, input/output
devices, hard disk.
• Create a text document in an Indian language other than English.
• Create a presentation.
• Create a presentation with animation.
• Create and edit existing images, and then include them in a presentation.
• Animate pictures and text with sound effects in a presentation
• Create a simple spreadsheet and perform the following operations: min, max, sum, and average.
• Create different types of charts using a spreadsheet: line, bar, and pie.
• Send an email to your friends. Attach some documents that you have prepared earlier. Put some friend in the CC and
BCC list. Interact with friends to find out who was in the BCC list.
• Do an online chat with multiple friends. Transmit documents using the chat platform.
• Create a video and upload it on YouTube.
• Write basic Scratch/Python programs.
1
Fig. 1.3: Mainframe Fig. 1.4: Supercomputer
CHARACTERISTICS OF A COMPUTER
A computer solves complex problems quickly and accurately. Besides speed and accuracy, a
computer has many other important characteristics, such as a very large storage capacity. Some of its
characteristics are described below.
Speed
A computer has very high processing speed. As per
the instructions given, electronic circuits perform data Try it out
operations inside the computer. It can carry out millions
t s
Find out the speed of various computers
of operations on the data in one second. The speed of a
being used in your computer lab.
computer is measured in megahertz (MHz) or gigahertz
(GHz). Different computers have different speeds.
Storage
Along with internal storage, a computer also has a secondary storage, where we can store large
amounts of data and instructions for future use.
Calculation
A computer can perform arithmetical operations such as addition, subtraction, multiplication, and
division as well as logical operations like comparing numerical and alphabetical data.
Accuracy
A computer is highly accurate in doing calculations. It gives an accurate output on every correct input which
shows the complete dependency of output on the given instructions and data. If the input provided is
incorrect, the output will also be incorrect. This concept is commonly called garbage in, garbage out (GIGO).
Reliability
Modern computers are extremely reliable on producing consistent results due to extremely low failure
rate of electronic components. They can perform complex calculations without any problem.
Versatility
Versatile means flexible. Various tasks can be performed simultaneously on a computer such as playing
a game and sending e-mails.
Communication
Computers are commonly used for exchanging data through a global network of computer systems.
Exchange of information through the Internet with the help of computers has become very popular
worldwide.
Diligence
A computer is very diligent and can continuously work giving error-free results. It does not get tired and
can perform tasks accurately and efficiently.
2
COMPONENTS OF A COMPUTER SYSTEM
The basic components of a computer system are discussed further.
Input devices
The input or instruction to the computer is given through input devices. Following are the most
commonly used input devices.
Keyboard
A keyboard is used to enter data into a computer. There are several types of keyboards. The QWERTY
keyboard is the most commonly used type of keyboard. It has the following sets of keys.
Typing (alphanumeric) keys: The text input is entered using these keys. These are alphabet (A–Z),
number (0–9), punctuation (, . ‘’), and symbol keys (+ – @ % *).
Control keys: These include the Ctrl, Alt, Shift, Windows logo key, Esc, and other keys. These are
generally used with other keys for carrying out certain tasks.
Function keys: The keys labelled as F1, F2, …, F12 are called Function keys. These are 12 in
number. Each function key performs a specific task. For example, pressing the F1 key generally opens
a help guide.
Navigation keys: These keys include the Home, Page Up, Page Down, End, and Arrow keys and are
used to move around in a document.
Numeric keypad: Here, the numbers are grouped together in a block like a calculator. It is handy for
entering numbers quickly.
Output devices
Output devices are used to show the result of the operation
performed by the computer. The most commonly used output
devices are:
Monitor
This device operates like a TV set and lets the users see how the
computer is responding to their commands. Fig. 1.7: Monitor
3
Printer
This device is used to get the hard copy or printout of the output generated by the computer.
• The third step involves the execution of instructions. The first CPUs were used in the
early 1960s. Today, Intel is the
• The final step is to write-back the results of the
best known manufacturer of
execution step. The CPU write-backs the results either
computer CPUs.
to its own internal register or to the main memory of the
computer.
The CPU comprises three major units: the storage or
memory unit (MU), the control unit (CU), and the arithmetic logic unit (ALU).
Storage or memory unit (MU)
This unit stores all the data and instructions. Memory in a computer is generally of two types: primary
memory and secondary memory.
Primary memory
It is the main memory of a computer. It stores those programs and data that is currently in use by the CPU
by communicating directly with the CPU. It consists of random access memory (RAM) and read only memory
(ROM).
4
RAM
RAM has storage cells meant for read and write operations. As these cells can be accessed directly, these are
called random access memory. RAM temporarily stores data while the CPU is working on it. Since it is a volatile
memory, the data is lost on loss of power supply.
ROM
Unlike RAM, ROM is a non-volatile memory. Data is
not lost on losing power supply. However, once data is
written on a ROM, we cannot rewrite on it. ROMs store
programs that are important for a computer operation,
such as the bootstrap program, which starts a computer by
loading an operating system, and the basic input or output
system (BIOS), which addresses external devices in a
personal computer.
Fig. 1.10: ROM
There are three different types of ROMs.
PROM—Programmable ROM. The information recorded on this cannot be erased.
EPROM—Erasable programmable ROM. Exposure to UV light can erase the information recorded
on EPROM.
EEPROM—Electrically erasable programmable ROM. Electrical signals can erase the information
recorded on EEPROM.
Thus, EPROM and EEPROM are types of ROMs that are rewritable, but it is a very time-consuming
process.
5
Secondary memory
Secondary memory devices are auxiliary storage devices, such as hard disk, DVD, floppy disk, and
CD-ROM. These are called the non-volatile memory devices or the permanent storage devices.
Although slower than the primary memory, secondary memory provides much greater storage
capacity. As it is non-volatile, it stores inactive programs and archives data.
Fig. 1.11: Hard disk Fig. 1.12: CD-ROM Fig. 1.13: Floppy disk Fig. 1.14: DVD
Control unit
The control unit (CU) is responsible for managing the operations of the CPU and guiding other mechanisms
for the completion of specific tasks. It collects instructions from memory and converts them into signals for
controlling other parts of the computer. These signals transfer data between memory and ALU or activate
peripherals to perform input or output operation.
Arithmetic logic unit
The ALU comprises electronic circuits that can execute arithmetic and logic operations. ALU, along with
different registers, stores data or keeps information regarding the latest action performed. It usually performs
four types of arithmetic operations—addition, subtraction, multiplication, and division.
ALU also performs three different logical comparisons which are equal to (=), less than (<), and greater than
6
(>). It can compare letters, numbers, or special characters.
IPO CYCLE
A computer basically works on the IPO principle—that is, Input-Processing-Output. The IPO cycle is how a
computer takes in data, processes it, gives output, and saves the output information.
Processing
Arithmetic
Logic Unit
(ALU)
Control
Input Output
Unit
Memory Secondary
Unit Storage
Step 1: Input
The first step provides data to the computer to perform specific tasks. Input devices enter this data
into the computer. Commonly used input devices are keyboard, mouse, joystick, tablet, scanner,
digital camera, microphone, and light pen.
Step 2: Processing
The data from the input devices goes to the central processing unit (CPU). The CPU
interprets the input instructions and produces specific outputs. The control unit (CU), the
arithmetic logic unit (ALU), and the memory unit (MU) of the CPU work in the following
manner to complete a task.
• The CU receives the instruction from memory.
• It then interprets the instruction and directs the necessary data to be moved from the memory to the
ALU.
• The ALU carries out the actual operation on the data.
• The memory stores the result of the operation.
Step 3: Output
The final step involves displaying the result of the processing on the output devices. The output
device communicates the result of data processing to the user. Output devices that are commonly
used are the monitor, printer, and the speaker.
7
Fig. 1.16 demonstrates an example of how the CPU processes data.
Control Unit
Step 1:
ADD INSTRUCTION
The CU ets instr uction
from the memory.
Step 3:
LET X = N1 + N2 The CU directs the
ALU to carry out
Memory addition on the
locations Step 2: numbers N1 and N2.
N1 = 40
N2 = 80
The two
RESULT X
numbers are
moved from
Memory Unit the memory N1
to the ALU. +
N2
Step 4:
RESULT
The result is stored
in the memory.
ALU
APPLICATIONS OF COMPUTERS
Today, computers are being widely used in a variety of fields. Some of the fields or institutions where
the use of computers has become common are given below:
1. Educational institutions:
• Help teachers prepare assignments
• Impart computer-aided learning
• Explore and use online resources
• Help students make projects
• Keep track of grades
• Make circulars Fig. 1.17
• Keep and maintain all accounts
2. Hospitals:
• Hospital administration
• Recording or maintaining the medical history of the patients
• Diagnosis of diseases
• Monitoring the condition of patients
Fig. 1.18
8
3. Banks:
• Opening new accounts and managing the existing ones
• Maintaining and updating customer information
• Tracking and recording transactions
• Managing online transactions
• Storing information about products and services offered by
the bank
4. Science and technology: In this field, computers Fig. 1.19
• provide precision and accuracy
• facilitate research and development (R&D) work
• help in the launching of rockets
• help in putting satellites into the orbit
• help in weather forecast
• aid in designing houses, buildings, vehicles, rockets, satellites,
and defence equipment Fig. 1.20
5. Publishing: Computers have become an integral part of the publishing world in
• editing
• typesetting
• printing
6. Miscellaneous: Computers are being used to a large extent in our day-to-day activities like
• creating and editing documents such as letters, greeting cards, and invitations
• drawing and painting
• playing games
• listening to music and watching movies
• chatting
• sending and receiving e-mails
• browsing the Internet for searching and downloading relevant
information Fig. 1.21
• booking rail, air, and movie tickets
• hotel reservation
Wordbank
Input devices: Devices that are used to give data and instructions to a computer
Output devices: Devices that show the output produced by a computer
CPU: erforms arithmetical and logical operations on data and controls other
P
parts of the computer
9
Memory: Area of a computer where all the data and instructions are stored
Byte: Measuring units of computer memory; 1 byte consists of 8 bits
Bits: Short form of Binary digits, consists of 0 and 1
IPO cycle: The Input-Processing-Output cycle on which a computer works
We have learned
10
Solved Examples
1. Name the characteristic of a computer that 9. Differentiate between RAM and ROM.
refers to its working continuously for long Ans. The differences between RAM and ROM are
hours without getting tired. given below:
Ans. Diligence
(i) RAM is a volatile memory, whereas ROM
is a non-volatile memory.
2. Name the non-volatile main memory of a
computer. (ii) ROM is used to store system instructions,
Ans. ROM whereas RAM is used to store data related
to currently running user program.
3. Which component of a computer is called its
brain? 10. Write the difference between different types of
Ans. CPU ROM.
Ans. There are three types of ROMs. The difference
4. Name the three types of ROM. between them is explained below:
Ans. PROM, EPROM, EEPROM.
• PROM stands for programmable read only
5. You want to purchase a desktop computer for memory. The data written on it cannot be
personal use. Given below are the features erased.
that you look for in a computer while buying • EPROM stands for erasable programmable
it. Arrange them in the decreasing order of read-only memory. The data stored on the
preference. EPROM can be removed by exposing it to
(i) Appearance UV light.
(ii) Size • EEPROM stands for electrically erasable
(iii) Speed (RAM) programmable read-only memory. The data
stored on the EEPROM can be removed by
(iv) Features like Bluetooth and wireless LAN using electrical signals.
Ans. (iii), (iv), (ii), (i) EPROM and EEPROM are types of ROM that
can be programmed again after erasing the data
6. Define a computer.
stored on them.
Ans. A computer is an electronic machine that can be
programmed to do a wide variety of tasks. 11. What are the steps a computer CPU undergoes
to complete a cycle of operation?
7. What do you mean by volatile memory?
Ans. The CPU undergoes the following steps to
Ans. Volatile memory refers to the memory that loses
complete a cycle of operation:
the data stored in it when the power is switched
off. (i) Fetch instruction from the memory.
(ii) Decode the instruction and organise the
8. What are the functions of the CPU?
decoded information.
Ans. CPU is considered to be the brain of a
computer. Its functions include executing (iii) Executing the instruction.
program instructions, performing arithmetic (iv) Displaying the result of the processing.
and logical operations, and controlling the input
and output devices.
11
Exercises
t 1. Match the columns.
(a) RAM (i) Explains how computer takes data, processes it, and generates
output.
(b) Accuracy and (ii) An input device generally used in video games.
reliability
(c) ROM (iii) Not physically connected to the computer. Works using
infrared and radio waves.
(d) IPO cycle (iv) Random Access Memory
(e) Bits and bytes (v) Characteristics of a computer
(f ) Joystick (vi) Non-volatile memory
(c) The two most common input devices are (h) ALU is .........................
........................ and ......................... . (i) 1 byte = ........................ bits and
(d) The two most common output devices are 1 MB = ........................ bytes.
........................ and ......................... . ( j) ........................ is the component of
(e) CPU stands for ......................... . CPU that performs the arithmetic and
........................ operations.
(f ) IPO stands for ......................... .
12
(e) What do you understand by versatility in a (h) What does the central processing
computer? unit do?
(f) Name the two commonly used input (i) What are the types of memory?
devices.
( j) What is the full form of RAM?
(g) Name the two commonly used output
devices. (k) What is the full form of ROM?
(b) Data is stored in computers in the (d) Which part of the CPU performs
form of calculations on data?
(i) Characters (i) Control Unit
(ii) Numbers (ii) Memory Unit
(iii) Binary digits (iii) ALU
(iv) All of the above (iv) None of the above
13
(e) Which of the following is not a characteristic (k) The main components of a computer are
of a computer? (i) CPU, memory, keyboard, monitor
(i) High processing speed (ii) CPU, printer, memory, monitor
(ii) Diligence (iii) CPU, monitor, speaker, keyboard
(iii) Reliability (iv) None of the above
(iv) Lethargic
(l) The computer is
(f ) Select the correct sequence of CPU’s cycle
(i) an electronic machine
of operation.
(ii) an analogue machine
(i) Fetch instruction from memory, decode
it, execute the decoded information, (iii) Both (i) & (ii)
give output (iv) None of the above
(ii) Decode the instruction, send it to (m) What does MIPS stand for?
memory, execute it
(i) Mental Input Processing System
(iii) Execute the instruction, decode it, send
(ii) Millions of Instructions Per Second
it to memory
(iii) Most Intelligent Processing System
(iv) None of the above
(iv) None of the above
(g) What is the function of the control unit?
(n) The speed of a computer is measured in
(i) Perform calculations
(i) kmph
(ii) Data entry
(ii) GHz
(iii) Control I/O devices
(iv) None of the above (iii) m/s
(h) Select the three main components of (iv) None of the above
a CPU. (o) Which of the following are types of memory?
(i) ALU, Control Unit, Printer (i) Secondary memory
(ii) Memory, ALU, Keyboard (ii) Primary memory
(iii) Control Unit, ALU, Memory (iii) Tertiary memory
(iv) None of the above (iv) All of the above
(i) The type of ROM which can be (p) Which of the following are characteristics of
reprogrammed is a computer?
(i) PROM (i) Is very fast
(ii) EEPROM (ii) Gets tired
(iii) Both (i) & (ii) (iii) Does not make errors
(iv) None of the above (iv) None of the above
(j) Arrange the units of memory in ascending (q) Which of the following are essential
order. components of a computer?
(i) Bit, Byte, Megabyte, Kilobyte (i) Mouse
(ii) Bit, Byte, Kilobyte, Megabyte (ii) Keyboard
(iii) Bit, Kilobyte, Byte, Terabyte (iii) Digital camera
(iv) None of the above (iv) Monitor
14
(r) Which of the following is known as the brain (t) Which of the following are units of memory?
of a computer? (i) Metre
(i) Mouse (ii) Kilobyte
(ii) Printer (iii) Terabyte
(iii) CPU (iv) All of the above
(iv) None of these
(s) Which of the following computers is the
fastest?
(i) Mainframe
(ii) Desktop
(iii) Supercomputer
(iv) Laptop
l Lab Exercise
c Create charts on the following topics:
(a) IPO cycle (c) Types of memories
(b) Characteristics of a computer (d) Primary and secondary storage
15
Input, Output, and
2 Storage Devices
INPUT DEVICES
The various devices that are used for entering information and instructions into a computer for
processing or storage purposes are called input devices.
An input device converts input data and instructions into electrical signals that a computer can
understand. These electrical signals are in the form of binary code. The keyboard, mouse, joystick,
scanner, and microphone are some common examples of input devices.
Keyboard
Keyboard is one of the most commonly used input devices. It is used to enter data into the computer.
The design of the modern keyboard is the replica of the original typewriter keyboard, in which letters
and numbers are arranged to prevent the type-bars from getting stuck while typing quickly. This
design is known as the QWERTY design, taken from the first six letters of the upper-left-hand of the
alphabet keys.
16
Mouse
A computer mouse is a hand-operated electronic device that
Right click acts as an input device. At the bottom of a mouse there is a ball
that rolls on the surface of a pad. The movement of the mouse
ball controls the movement of a pointer on the computer
Scroll wheel screen. The pointer helps us to point at or select things on the
computer screen. The mouse has two or three buttons on the
Left click
top that help the pointer to make selections and a scroll button
Fig. 2.2: Mouse to move the pointer up and down.
In some graphic programs like MS Paint and Adobe Photoshop, the mouse is used to draw and paint.
There are different types of mouses: mechanical, optomechanical, optical, and cordless.
Mechanical mouse
It has a rubber or metal ball on its underside that helps the mouse move in every direction.
Mechanical sensors detect the direction of movement of the ball and accordingly move the pointer on
the screen in the same direction. A mouse pad is necessary under the mouse for movement.
Optomechanical mouse
This is similar to the mechanical mouse except for optical sensors that are used for detecting the motion of
the ball.
Optical mouse
It uses a laser to detect the movement of the mouse. With the absence of any mechanical moving
parts, it has a very quick and accurate response in comparison of the mechanical and optomechanical
mouses.
Cordless mouse
Try it out
A cordless mouse has no physical connection with t s
the computer. It uses infrared or radio waves for Find out the type of mouse being
communication with the computer. The best thing used in your school’s computer lab.
about a cordless mouse is that there is no cord to
constrain or obstruct its movement.
Scanner
A scanner is an input device that is used to convert a document
with text or graphic image into a digitised form that can be stored
as an electronic image on a computer. The electronic image is
given to a computer for further processing or editing.
A scanner can capture images from photographic prints, pages of
magazines, posters, and other similar sources.
Scanners with very high-resolution can scan objects for high-
resolution printing, but scanners with lower resolution are
Fig. 2.3: Scanner
sufficient to capture for computer display.
17
There are different types of scanners as detailed below:
Flatbed scanner It is made up of a flat glass surface on which the document to be scanned is placed.
A sensor array and a light source under the glass surface move across and capture the content on the
document. An image of the content on the document is created and transferred to the computer as an
input. Flatbed scanners are particularly effective for bound documents such as books.
Sheet fed scanner A sheet fed scanner has a horizontal or vertical slot, where the document to be
scanned is fed. Here, the paper is moved across the stationary scan head. Such scanners mostly scan
single-page documents.
Handheld scanner It is a small manual scanning device that moves over the document that is to be
scanned.
Photo scanner It scans photographs that require resolution and colour depth.
Film scanner A film scanner scans photographic films directly into a computer. It then gives us direct
control over certain aspects, such as cropping and ratio of original image on the film.
Portable scanner Portable scanners are small in size, which makes it easy to carry them around,
and are used to scan text documents. They cannot scan high resolution photographs or other similar
applications.
Web camera
A web camera (or webcam in short) is a small digital camera that is used for
sharing real-time images and videos on the world wide web. Video chats
or video conferencing is the most common use of a webcam. However,
web cameras are also being used as security cameras. A web camera can be
connected to a computer through wire or wirelessly. Some computers come
with built-in web cameras.
Fig. 2.4: Web camera
OUTPUT DEVICES
Various devices used to deliver the processed data (computer output) to a human operator or, in some
cases, a machine, are called output devices.
An output device translates the digitised
signals into a form comprehensible to the
user. Monitor, printer, and speakers are some
common examples of output devices.
Monitor
A computer monitor is an output device that
looks like a TV screen. It is a video display unit
(a) (b)
(VDU) that displays the input data entered by the user
and the output generated by the CPU. This helps Fig. 2.5: (a) LCD and (b) CRT computer monitors
the user to ensure that correct data is being
entered and also see that the CPU is producing the correct output.
18
A computer can have either a black and white or a colour monitor. Computer monitors are available
in different sizes. The most commonly used monitor sizes in a personal computer are 15" and 17".
There are two basic types of monitors: cathode-ray tube (CRT) and flat-panel display.
In CRT displays, beams of electrons are emitted by an electron gun on a phosphorus-coated surface.
These beams form visible patterns of data.
Flat-panel displays use any of these four media for visual representation of data—liquid crystal diodes,
light-emitting diodes, plasma panels, and electroluminescence.
In an advance video display system, the user has to touch the screen instead of using a keyboard. The
user can scroll a page, zoom, divide the screen into multiple colours and windows, and in some cases
can even activate commands.
Printer
A printer is an output device required to convert the
desired output into printed images and text.
These are generally categorised in two main
groups, impact printers and non-impact printers.
In an impact printer, tiny wire pins physically
contact the sheet of paper and strike the ink
ribbon. In a non-impact printer, text and graphics
are produced without actually striking the sheet of
paper.
Based on the print method or technology, printers
are categorised as inkjet, laser, dot matrix, and
thermal printers. Dot matrix printer is a type of
impact printer, while the others are the types of Fig. 2.6: Printer
non-impact printers.
Given below is a brief description on some of these printers.
Inkjet printer
Inkjet printers consist of nozzles that spray tiny droplets of ink on paper. The droplets form characters
in a matrix of dots. The dots formed are of the size of tiny pixels. Inkjet printers can print
high-quality text and graphics.
Advantages of inkjet printer
• They produce good-quality images.
• They are lightweight and compact.
• Inkjet printers are considerably cheaper than laser printers.
Disadvantages
• Using an inkjet printer over a period of time is more expensive than using a laser printer owing to
the cost of ink.
19
• You need time to dry the printed paper since the ink supply on the paper is in droplets.
• Printing speed is slow hence inkjets are not designed for high-volume printing.
Laser printer
A laser printer etches an image on a photoconductor drum using a laser light beam altering the
electrical charge on the drum wherever it hits. The charged portions of the drum pick up the toner
from its reservoir on which the drum is rolled and then transfer the toner on a sheet of paper with the
help of heat and pressure.
High-quality prints, good print speed, and a low (black and white) cost per copy are the features of
laser printers. They are the most commonly used for many general-purpose office applications.
20
STORAGE DEVICES
Computer memory is divided into main (or primary) memory responsible for holding data and
instructions while executing a program and auxiliary (or secondary) memory responsible for holding
data and programs not currently in use and also provides long-term storage. Secondary memory is,
however, much slower than the primary memory. Primary memory consists of RAM and ROM. We
have already discussed them in the previous chapter. Here, we will learn about various secondary
storage devices.
There are a number of secondary storage devices available to store your data for future use. Some of
these secondary storage devices are discussed in the following pages.
Disk
Read or Write
head
Saved data
Spindle
CD-ROM
CD-ROM refers to Compact Disk Read-Only Memory. It is a data storage device. The data that can
be recorded on a CD may include text, pictures, multimedia, games, audio, video, and encyclopaedias.
It is widely used for distributing computer software.
There are two types of CD-ROMs: CD-R and CD-RW.
21
CD-R is a recordable CD-ROM disk. It can be written only once, but can be
read again and again.
CR-RW is a rewritable disk. This type of CD-ROM allows erasing previously
recorded data and writing new data on the same disk.
A device called CD-ROM drive is required to read a CD-ROM. A CD- ROM
drive can only read data from a CD-ROM, it cannot write on a CD-ROM. A
CD-Writer, on the other hand, can read as well as write a CD-ROM. To write
Fig. 2.9: CD-ROM
data on a CD-ROM, we also need software called CD burner software.
DVD
DVD, known as Digital Versatile Disk (originally named Digital Video Disk), is an optical disk storage
technology. It is much faster than a CD and can store high-quality audio, video, and any other kind of
digital information.
DVDs are available in single- and double-sided versions. A double-sided
DVD can store data on both the sides. DVDs are of the same dimensions
as CD-ROMs, but can store much more data. The data-storage capacity
of a typical single-sided DVD is about 4.7 gigabytes, while that of a CD-
ROM is about 700 megabytes. A double-sided DVD can store much more
data.
Like a CD-ROM, DVDs also come in many versions. DVD-ROM
can only be read and not written. In DVD-R and DVD+R, data can be Fig. 2.10: DVD
recorded only once. On the other hand, DVD-RW, DVD+RW, and DVD-
RAM enable us to record and erase data multiple times.
CD-ROMs and DVDs are the removable storage devices used for taking backups and archiving
of data.
As they can store a large amount of data and are portable, which makes them useful and convenient.
Blu-ray discTM
Blu-ray is an optical data-storage technology developed for the purpose of recording, rewriting, and
playback of high-definition (HD) video as well as storing a large amount of data. It is called Blu-ray as
it uses blue-violet laser to read and write data from and to the disk.
The blue laser has shorter wavelength as compared to red laser, which is used in a DVD. The shorter
wavelength of blue laser makes it possible for more data to be packed in less storage space. A single-layer
Blu-ray disc nowadays has the storage capacity of 25GB, while dual-layer disc has the storage capacity of
50GB.
22
Did You Know?
The CD-ROMs were introduced by
Philips and Sony Corporation.
Blu-ray technology relies on hard-coating for protection, which will make the discs more resistant to
scratches and fingerprints than today’s DVDs.
Blu-ray is a new technology that is projected as a successor of DVD technology. Currently, the high
price of Blu-ray is a big constraint. However, as it goes into mass production and the costs go down, it
is expected to grow in popularity.
Flash drive
A flash drive, also known as a pen drive, is a small, portable, and
lightweight storage device. It is connected to a computer by a USB
(universal serial bus) port and is used for copying and moving data from
one computer to another. A flash drive can store data up to 4 TB. Fig. 2.12: Pen drive
23
Wordbank
We have learned
• The keyboard is one of the primary input devices used with a computer.
• A computer mouse is a hand-operated electronic device that acts as an input device.
• Inkjet printers consist of nozzles that spray tiny droplets of ink on paper.
• A laser printer uses a beam of laser light to etch an image on a photoconductor drum.
• In a dot matrix printer characters and illustrations are produced when pins strike against an ink
ribbon to print closely spaced dots in the appropriate shape.
• A hard disk consists of magnetic disks, called platters, that record and store data.
• DVD is an optical disk storage technology that is much faster than a CD and can store high-
quality audio, video, and any other kind of digital information.
• Pen drive is a portable memory device that is used for transferring audio, video, and data files
from the hard drive of one computer to another.
Solved Examples
1. Name two input devices. a number of metal pins that strike an ink
Ans. Keyboard and Mouse ribbon placed between the printhead and the
paper. The impact makes a mark on the paper,
2. Name the device that is used to point at and producing text and images.
select objects on the computer screen.
Ans. Mouse 4. What is Blu-ray?
Ans. Blu-ray is an optical storage format developed
3. What is an impact printer? to enable recording, rewriting, and playback
Ans. The printhead of an impact printer contains of high-definition (HD) video. The storage
24
capacity of a Blu-ray disk is very large. A Ans. Difference between primary and secondary
single-sided Blu-ray disk can store about 23GB memory
data while a double-sided disk can store about
(i) Volatility Primary memory (RAM) is
46GB data.
volatile while secondary memory is non-
volatile.
5. Explain the need for secondary storage.
Ans. Secondary storage is a non-volatile storage of (ii) Capacity While primary memory (RAM)
data. It holds data and programs not currently has limited storage capacity, secondary
in use and provides long-term storage. Hard memory can store virtually unlimited
disk, CD-ROM, DVD, and pen drive are amount of data.
some of the commonly used secondary storage
(iii) Access time Primary memory (RAM)
devices.
resides on the motherboard, so the
distance between CPU and primary
6. How does a Blu-ray disk store much more data
memory is much shorter as compared to
than a DVD?
the distance between CPU and secondary
Ans. Blu-ray technology employs blue-violet laser to
storage devices. Thus, it takes the CPU
read and write data from and to the disk. The
only a few nanoseconds to access RAM
blue-violet laser has a shorter wavelength
whereas it takes several milliseconds to
(405 nm) than the red laser (650 nm), which is
access secondary storage devices.
used in a DVD.
(iv) Cost Primary memory is very expensive
The shorter wavelength of blue laser makes it
compared to secondary memory in terms
possible for more data to be packed in less space.
of cost per unit of data storage.
7. Describe the difference between primary and
secondary memory.
Exercises
t 1. Match the columns.
(a) CD-ROMs and memory stick (i) Scans photographic films directly into a computer.
(b) RAM (ii) Is not physically connected to the computer and
works using infrared and radio waves.
(c) Film scanner (iii) Non-impact printer.
(d) Cordless mouse (iv) Has large storage capacity and can store 23GB of
data.
(e) Thermal printer (v) Primary memory
(f ) Blu-ray (vi) Storage devices
25
t 2. Fill in the blanks.
(a) ............................ and ............................ are (f ) An ............................ device is used to enter
the two types of mouse. information and instructions into a compter.
(b) ............................ is a device used to print the (g) ...................... is a type of an impact printer.
data on paper. (h) ......................... record and store information
(c) ............................ mouse uses laser for in a hard disk drive.
detecting mouse movement. (i) To write data on a CD-ROM, we require ......
(d) In laser printers, .............................. is used to ..............................
discharge the image areas onto the rotating ( j) A hard disk consists of ............................ that
drum selectively, thereby reversing the strong record and store information.
negative charge to a weak positive charge.
(e) The primary memory is ............................
than the secondary memory.
26
t 7. Select the correct alternative(s).
(a) You created a project document in the need to make a soft copy of it. Which device
school and now you want to take a backup do you think can be used for this?
of the same. The file size of the document (i) Printer
is approximately 2 GB. Which secondary
storage device would be the easiest and best (ii) Scanner
choice for this? (iii) Photocopier
(i) Floppy drive (iv) None of the above
(ii) Pen drive (f) You are listening to some music on your
(iii) CD-ROM computer. At the same time (and in the same
room), your parents are watching television.
(iv) None of the above
What device should you use so that you can
(b) Which secondary storage device is smaller in listen to the music without disturbing your
size, has the highest storage capacity, and is parents?
scratch proof?
(i) Speaker
(i) Floppy disk
(ii) Headphone
(ii) Pen drive
(iii) Scanner
(iii) Memory stick
(iv) None of the above
(iv) None of the above
(g) Your father wants to take a backup of his
(c) You need to take printouts of your project office data, which is approximately 10–20GB.
document. You need two copies of the What would be the best option to go for, if
printouts, but it is not important to have a price is not an issue?
coloured printout. Which printer will be
more economical to use? (i) Using a DVD ROM
(iv) None of the above (h) Which of these secondary devices has the
maximum data storage capacity?
(d) Your teacher immediately needs to get 1000
photocopies of a handout for distribution (i) Memory Stick
to the students of the class. Which printer
(ii) Floppy
should be the most suitable for getting the
work done quickly and efficiently? (iii) CD-ROM
(ii) Laser printer (i) Which of the following is/are input devices?
(iii) Inkjet printer (i) Monitor
(iv) None of the above (ii) Scanner
(e) Your class teacher gave you a hard copy of (iii) Mouse
a collage and asked you to modify it using (iv) All of the above
Photoshop or any other graphics software. To
modify the collage using computer, you first
27
(j) Which of the following is/are output devices? (iii) Rat
(i) Scanner (iv) All of the above
(ii) Plotter (l) Which of the following secondary devices has
(iii) Blue-ray the maximum capacity to store data?
l Lab Exercise
c Create a chart on the following topics:
(i) Input devices
(ii) Secondary storage devices
28
3 Computer Software
A computer needs instructions to do various tasks. A set of instructions that is aimed at performing
a specific task is called a program. A set of programs and procedures required to perform various tasks
on a computer system is called software. Software comes in the form of programming languages.
Programming languages are of two types, low-level languages and high-level languages.
The teacher tells the class that there are two types of low-level languages—machine language and
assembly language. In machine language, a program is written using the sequences of bits—0s and
1s. This is the only language that is understood by a computer. In assembly language, commands are
written in a language much closer to natural language—English, to be specific. High-level language
enables programmers to write programs using English language words and mathematical symbols.
There are three main types of software: System Software, Application Software, and Utility Software.
Given below is a brief description of these software.
SYSTEM SOFTWARE
System software controls the internal functioning of a computer. Some of the main functions of an
operating system are as follows—
• Controlling the working of all the input and output devices
• Running the application software on the computer
• Controlling all the storage operations
An operating system that comes installed within a computer is a type of system software. Windows,
MS-DOS (Microsoft Disc Operating System), Linux, UNIX, and macOS are some common
operating systems.
Operating systems
An operating system provides an interface between the user and the computer. Its main function is to
convert the instructions given in high-level language to low-level language, which is understood by a
computer and vice versa. It also provides a way for communication between computer hardware and
running application.
29
An operating system allows programs to access computer
resources. But an operating system alone cannot do a complete Applications
job. Subparts of an operating system make different parts of the
computer hardware work together and respond to the software,
which are discussed below.
Kernel
Kernel
A kernel provides an interface between application software and
hardware.
CPU Memory Devices
It is the central element of an operating system and controls all
the programs running on a computer. It connects the system
hardware to the application software and manages the way Fig. 3.1: Kernel
the software (user-level applications) communicates with the
hardware (CPU, disk memory, and so on).
The kernel is one of the first programs that are loaded into RAM, the computer’s main memory.
It stays in the main memory till the system remains on. It is loaded in a protected area of the
memory. This prevents it from being overwritten by programs or other parts of the operating
system.
The kernel of an operating system manages the system resources, such as the CPU, memory, and
input or output devices. It provides access of these system resources to application programs. An
application program cannot access the system resources directly. The application program sends a
request for a system resource to the kernel. These requests from the application programs to the
kernel are referred to as system calls. The kernel translates these system calls into instructions for the
CPU and other resources.
The kernel is responsible for translating the command into a language understood by the computer.
It not only helps in booting of the computer but also is responsible for functioning of memory and
peripheral devices, such as monitor, keyboard, and printer. It is specific to the hardware on which it
runs. The main functions of the kernel are as follows:
• Process management • Device management
• Memory management • Interrupt handling
• Disk management • File system
• Task management • Data security
Every operating system has a kernel. Examples are Linux kernel (used on numerous operating
systems, including Linux and Android) and XNU, kernel for macOS along with Apple TV Software,
iOS, watchOS, tvOS, and audioOS.
Device drivers
A computer system consists of many hardware devices, such as a keyboard, mouse, monitor, disk
drive, sound card, printer, and scanner. An operating system controls all the actions of these devices.
But the operating system and these hardware devices cannot directly communicate with each other.
Thus, device drivers are required.
30
A device driver is a program that enables hardware devices to communicate with the computer’s
operating system. Without an appropriate device driver, a hardware device may not be able to receive
proper instructions from the operating system and accordingly cannot function properly.
Some devices, such as CPU, keyboard, and mouse, do not require us to install device drivers as these
are the main parts of a computer. So, codes for these devices are added to the BIOS and thus are
directly executed by the CPU.
Some other devices, such as sound card, video card, and network card, require a specific driver in
order to function properly.
File systems
A computer stores data in the form of files. A file is a named collection of related information
recorded on a storage device. In other words, it is a sequence of bits, bytes, lines, or records created by
a user. Each file is referenced by its address on the storage device.
The system used by an operating system to organise and keep track of files is called a file system. This
system manages the way in which files are stored. Nearly all the operating systems organise files in a
hierarchical structure. The collection of related files is called a directory. In Windows OS, a directory
is known as a folder.
File systems also keep information about unused space on the disk and details of each file, such as size,
owner, creation date, access control, and encryption.
To manage the data storage, the operating system uses different files. An operating system is
responsible for accessing, storing, and retrieving data on a computer’s hard drive, and it is done using
a file system. Thus, a file system is used to control how information is stored and retrieved. Different
files contain different information due to difference in the types of the files. A file system performs
many functions. Some of them are listed below.
• Create: For creating a new file
• Delete: For deleting the existing file
• Open: To open an existing file
• Close: For closing an opened file
• Read: For reading from the file
• Write: For writing into the file
The part of the computer memory that is unused and can be used to store data is marked as sectors,
which in turn is organised into groups, known as blocks. A file system identifies the size and position
of the file and stores them in the desired sector or block. Every file has several letters at the end of a
filename, which is usually separated by dots and is known as the file extension. A file extension is used
to identify the type of file. For example, in the filename xyz.exe, the extension .exe indicates that it is an
executable file. Some of the most commonly used file extensions are listed below.
File Type Extension Function
Executable .exe These are the files that are ready to execute or run as
a program.
31
Batch .bat These files contain a list of commands executed in a
sequence by a command interpreter.
Text .txt These files store standard text data.
Library .lib They are library files.
Archive .zip These are compressed files.
APPLICATION SOFTWARE
Application software programs are designed to handle specialised tasks. For example, there are specialised
software programs for drawing graphics, preparing presentations, calculating salaries of employees,
and preparing school results.
The application software is installed onto the operating system. It instructs the computer to carry
out the commands given by the user and generally includes programs that process data for the
user. Application software thus includes word processors, spreadsheets, database management,
inventory and payroll programs, email clients, web browsers, and many other applications.
These application software are capable of handling different types of data like text, numbers,
and graphics.
Given below are some general-purpose application software.
Electronic spreadsheets
A spreadsheet is a grid that organises data into columns and rows. Spreadsheets make it easy to display
information. It also allows users to insert formulas and make working with numerical data easy. Excel,
Lotus 1-2-3, OpenOffice Calc, and Numbers are some examples of electronic spreadsheets.
A spreadsheet software can be used by children to do calculations like finding the aggregate marks or percentage. It can
be used by the teachers to create a class list with the marks.
The following figure shows an example of a spreadsheet software.
33
Fig. 3.4: A spreadsheet
Multimedia software
Multimedia software allow users to create multimedia files that include text, audio, video, computer
graphics, and animation. PhotoShop, CorelDRAW, Flash, Director, Maya, and Premiere are some
software that are used to create multimedia files.
To play multimedia files, we need multimedia players. Examples of some popular media players are
Real Player and Windows Media Player.
The following figure shows an example of a multimedia player.
34
Fig. 3.6: Example of a presentation software
A presentation software can be used by a teacher to create a presentation on a topic with emphasis on some key points.
Students can use this software to present a topic for class discussion in an impressive and interesting way.
Accounting management
An accounting management software is used to maintain books of accounts on computers. The software
can be used to record transactions, maintain account balances, and prepare financial statements and reports.
Reservation system
A reservation system software is used to manage all kinds of online bookings for flight, train, hotels,
and motels. When the online booking is done, the customer is notified via email.
HR management
An HR management software is used in offices to maintain the records of the employees and to deal
with new appointments. This also includes managing employees’ salaries, perks, and tax.
Attendance system
An attendance system software is used to monitor the attendance of the employees of a company.
Payroll system
A payroll system is used to calculate the salary of the employees. It also handles the grade, and perks of
the employees.
35
Billing system
A billing system handles the billing of a product used or purchased. Supermarkets use this software
to calculate and generate the bills. Electricity boards use this software to calculate the electricity bill of
the consumers based on the units consumed for a specific time period.
UTILITY SOFTWARE
Utility software is a program that supports the application or development environment in the
computer. It typically performs a limited number of tasks. Some of the commonly used utility
programs are File Management (which includes creating, moving and renaming folders, and
copying and deleting files), Antivirus, Disk Defragmenter, Encryption, and Decryption tools.
File manager
The file manager utility software allows a user to search, create, delete, save, copy, rename, sort,
and view the properties of files and folders.
Disk defragmenter
The disk defragmenter utility software rearranges the data on the hard disk. The fragmented
files are then reunited so that the computer can run more efficiently.
Antivirus programs
Antivirus is a protective software that protects a computer against malicious software which include
viruses, Trojans, key loggers, and other codes that steal your computer data. Kaspersky Internet Security,
Norton Internet Security, and McAffee VirusScan are some examples of antivirus software.
MOBILE APPLICATIONS
With the shifting of mobile phone from merely a verbal-communication tool to a multimedia tool,
there is a rapid increase in mobile applications. A smartphone is not only a phone but also a
mini-computer in which you can surf the Internet, check emails, store pictures, play games, and
do so many other things. There has been a rapid progress in mobile technology, and access to high-
36
speed Internet-enhanced mobile computing has generated the need for the development of mobile
applications or mobile apps.
A Mobile app is a type of application software designed to run on mobile devices, such as smartphones
and tablets. These are generally small in size, developed to perform a specific task only. It may or may
not require the Internet to run.
Mobile apps include information-gathering apps, such as calendar, contacts, calculator, and weather,
apps related to games, GPS, online banking, ticket booking, social networking, factory automation,
location-based services, sports, entertainment, video chats, and bill payment. This is all due to rapid
development in technology and growth in popularity with an increase in smartphone users.
Mobile apps are made for specific mobile platforms, such as Apple’s iOS and Google’s Android.
An app developed for iOS will not run on Android. Likewise, an Android app will not run on iOS.
Mobile app developers generally develop different versions of an app for each platform.
Google Play, Apple’s App Store, and Amazon AppStore are some popular app stores from where we
can download a wide variety of apps.
Some of the advantages of a mobile app are listed below.
1. It provides quick access to data as it can store data locally on the device.
2. It allows us to work online as well as offline, thus providing an aid in managing mobile data.
3. It is a cheaper way to expand our business by reaching out to the clients in less time.
4. Customisation is possible with apps based on alarms, reminders, to-do lists, and notifications based
on an individual’s requirement making life more comfortable, easier, and more productive.
5. Educational apps, such as e-books, e-library, education videos, and education games, provide an
access to quality educational materials.
Some of the disadvantages of a mobile app are listed below.
1. Most of the apps run in the background using up the resources, thereby decreasing battery life.
2. Most of the applications ask for permission to access your device’s information to properly run it,
thereby compromising personal information of the individual. In case you don’t allow the access,
the app simply may not install on the device.
3. A mobile app needs to be developed for several platforms, such as Android, MS Windows, and
iOS, seeking potential market share which can be costly.
Some popular mobile apps are WhatsApp, Facebook, Google Maps, Truecaller, Paytm, Twitter, and
OlaCabs.
37
Wordbank
We have learned
• A word processing software is used to create and edit documents using text data and includes data
formatting tools.
• A database management system (DBMS) is an application software that is used to organise and
manage data in a database.
• A spreadsheet is a grid that organises data into columns and rows.
• Multimedia software allow users to create and play audio and video media files.
• A presentation software is used to display information in the form of a slide show.
• Utility software is a program that supports the application or development environment in the
computer.
• Antivirus is a protective software designed to protect your computer against malicious software
which include viruses, Trojans, key loggers, and other codes that steal your computer data.
Solved Examples
1. Name the software that protects a computer 3. Name two commonly used application software.
system against malicious programs. Ans. Word processor and Presentation software
Ans. Antivirus
4. What do you mean by encryption?
2. Name the software that manages the resources Ans. Encryption is the process by which data is
of a computer system. converted into a coded form so that it is not
Ans. Operating system easily understood by an unauthorised person.
38
5. What is decryption? software, presentation software, and accounting
Ans. Decryption is the process by which coded data software are examples of application software.
is converted back into its original form so that
the receiver is able to read it. 9. What is an operating system?
Ans. An operating system is a system software that
6. What is a program? manages a computer’s resources such as CPU,
Ans. A program is a set of instructions that is aimed memory, and I/O devices. It not only contains
at performing a specific task. drivers to communicate to various hardware
devices, but also offers a very specific graphical
7. Define the term software. user interface (GUI) to control the computer
Ans. Software is a set of programs and procedures system. MS Windows, Unix, Linux, and Mac
aimed at performing various tasks on a OS are examples of operating system.
computer system.
10. What are utility software?
8. Differentiate between system software and
Ans. Utility software is a program that supports the
application software.
application or development environment
Ans. System software is a set of one or more programs in a computer. Utility software typically
that control the internal functioning of a perform a limited number of tasks. Some
computer. For example, the program used to of the commonly used utility programs are
boot a computer system is system software. File Manager, Antivirus, Disk Defragmenter,
Application software are programs designed to Encryption, and Decryption tools.
handle specialised tasks. For example, graphics
Exercises
t 1. Match the columns.
(a) Accounting management software (i) Software for creating and editing documents
(b) Presentation software (ii) Manages transactions
(c) Linux (iii) Software for creating presentations
(d) Spreadsheet software (iv) Application software
(e) Word processor (v) Software for creating electronic spreadsheets
(f ) Microsoft Power Point (vi) System software
39
(e) MS Access is an example of a ___________ . (i) ___________ are programs that support the
application or development environment in a
(f ) An ___________ acts as an interface between
computer.
the user and the computer system.
(j) ___________ are used to encode and decode
(g) ___________ are programs designed to
data.
handle specialised tasks.
(h) A ___________ organises and manipulates
data in a database.
40
t 7. Select the correct alternative(s).
(a) Which of the following is/are functions of (g) The basic requirement to run a
system software? computer is:
(i) Creating text documents (i) MS Office
(ii) Controlling internal functioning of the (ii) Antivirus
computer (iii) Operating system
(iii) Interacting with input or output devices (iv) Photoshop
(iv) All of the above
(h) The set of instructions aimed at performing a
(b) Which of the following is/are functions of specific task is called
application software?
(i) Program
(i) Booting a computer
(ii) Instruction house
(ii) Preparing presentations
(iii) CPU
(iii) Creating text documents
(iv) None of the above
(iv) All of the above
(i) This is a utility software.
(c) Which of the following is/are examples of
application software? (i) Database
(i) OpenOffice.org Writer (ii) Operating System
(ii) Oracle (iii) Antivirus
(iii) Linux (iv) Presentation
(iv) Maya (j) A set of programs and procedures intended
to perform various tasks on a computer
(d) Which of the following is/are examples of
system is called
system software?
(i) MS Windows (i) Software
(e) Which of the following is/are examples of (k) The three types of computer software are
utility software? (i) System software, Utility software,
(i) Encryption and decryption tools Movie software
(ii) Antivirus (ii) Application software, Spying software,
System software
(iii) OpenOffice.org Calc
(iii) System software, Application software,
(iv) All of the above
Utility software
(f) Your class teacher wants to explain some
(iv) None of the above
topic in an interesting way through some
visuals. Which of the following software (l) Which type of software do we use to create
should she use? and edit text documents?
(i) Spreadsheet (i) Spreadsheet
(ii) Presentation software (ii) Word Processor
(iii) Word processor (iii) Presentation software
(iv) Database management system (iv) None of the above
41
(m) Which software acts as an interface between a (q) Which of the following is not a DBMS?
user and the computer?
(i) MS Access
(i) Operating system (ii) Oracle
(ii) Application software (iii) SQL Server
(iii) Utility software (iv) None of the above
(iv) Decryption tool (r) Which is the first software to be loaded into a
(n) An operating system is a computer after assembling it?
(i) System software (i) Word processor
(ii) Utility software (ii) Device drivers
(iii) Application software (iii) Operating system
(iv) Word processing software (iv) Antivirus
(o) The software used to organise data in a grid (s) Which of these is not an application
of rows and columns is software?
(i) Multimedia software (i) Accounting management
(ii) Word processor (ii) Reservation system
(iii) Spreadsheet (iii) LINUX
(iv) DBMS (iv) DBMS
(p) Which of the following is not a function of (t) Encryption and Decryption tools are
an operating system? used for
(i) Controlling I/O devices (i) Data security
(ii) Database management (ii) Data processing
(iii) Memory management (iii) Data storage
(iv) Act as an interface (iv) None of the above
l Lab Exercise
c Create a chart on Types of Software.
42
4 Computer Networking
As we know, computers are used to store large amounts of data. Further, there are times when the
information stored on different computers needs to be shared. For example, in a school, students’
information like attendance, marks scored, fee payment, and personal details are stored in computers
in different departments like Admin and Accounts. If, at any point of time, the Principal wants to
monitor the attendance and fee payment details of a specific student, then he or she has to access the
computers in the Admin and Accounts departments. Also, when the Accounts department has to
send the fee details of a child to his parents, then the address information can be obtained from the
Admin department. This exchange of information between different computers is made possible by
connecting them together in a computer network.
COMPUTER NETWORK
A computer network is a system where the computers are interconnected for the purpose of sharing
information. A minimum of two computers are needed to form a network.
Types of networks
As the computers are connected with each other in a computer network, one major aspect in this
interconnection is the distance. The computers connected in a network can be lying in the same
building or many kilometres away from each other. Depending upon the distance, the networks are
classified into the following types: local area network (LAN), metropolitan area network (MAN), and
wide area network (WAN).
Local area network
A local area network (LAN) is a computer network used
for connecting computers within a small geographical
area like an office, home, school, college, or university
campus. Because of its localised nature, LAN is a high-
speed network.
LANs are typically owned, controlled, and managed by
a single person or an organisation.
A LAN interconnects a large number of electronic
devices, including computers, modems, file servers, and
various printers. The first LANs were created in the
late 1970s. They were used to create high-speed links Fig. 4.2: Local area network (LAN)
between various large central computers.
Here, let us see how LAN can be useful in a school:
• Several computers on the network can use common resources like printers or scanners.
• Communication is possible through electronic mail.
• Computers on a network can share several programs.
• Certain programs, like library database, can be made centralised.
44
• Information of students, teachers, and parents can be stored and centralised.
• Online tests can be conducted.
Metropolitan area network
A metropolitan area network (MAN)
spans a city or town. If we have more
than one LAN in a city, then we can
join them using a MAN. For example,
there are many colleges in Delhi under
Delhi University. These colleges have
their own LANs. The LANs of these
colleges can be joined together with
the help of a MAN. The range of a
MAN can extend to a few kilometres.
They use wireless media to connect
different LANs.
Wide area network
A wide area network (WAN) is used to
interconnect computers across larger
Fig. 4.3: Metropolitan area network (MAN)
geographical areas like two cities or
states or even across different countries
or continents. For instance, many universities within a country can be linked together through a
WAN. The Internet is the world’s largest WAN. Using this WAN (i.e. the Internet), people sitting in
Indiannica office at New Delhi can communicate with their counterparts in Chicago quickly.
Let us consider a school which
has many branches in Delhi
and other cities of India as well
as abroad. Each branch of the
school has a LAN that connects
its different departments.
Different branches of the
school within a city are
connected through a MAN.
Finally, different branches of
the schools in different cities of
India and abroad are connected
through a WAN.
Thus, we see that multiple
LANs or MANs are Fig. 4.4: Wide area network (WAN)
interconnected to form a WAN.
This interconnection is built using either satellites, microwave links, radio transmission, or infrared
links.
45
DATA TRANSMISSION
A network is created for the purpose of transmitting data or information from one computer to
another. In order for data transmission to occur, a communication channel needs to be established
between the two machines. This channel can be established by using either wired or wireless
networking technologies.
The choice of technology depends upon the kind of data required to be transmitted, the speed of
transmission, and the transmission distance.
Co-axial cable
A co-axial cable is generally used to transmit TV
signals from an antenna to our TV sets. Copper wire
A co-axial cable consists of a copper wire core Outer conductor
surrounded by an insulating material, which is in
turn surrounded by an outer conductor of braided
wire. There is an outer plastic jacket that covers the
braided wire. This outer jacket minimises electrical Insulation
and radio frequency interference.
Co-axial cable was originally designed to carry
telephone signals from one place to another with little Outer plastic shield
noise or disturbance but is being used in some local
area networks also. Fig. 4.5: Co-axial cable
Ethernet cable
Another type of media used to transfer data from one place to another
is ethernet cable.
Ethernet cables are used to connect together network devices such
as computers, hubs, and switches. Each end of an ethernet cable
has a jack with eight pins to plug into the ethernet port of different
devices.
46
There are two types of ethernet cables: straight through or regular cable and crossover cable.
A straight through cable is used to connect a computer to a hub or switch in a network. On the other
hand, a crossover cable can directly connect two computers.
Fibre optic cable
An optical fibre is a transparent thin fibre, which is usually made of glass or plastic. The fibre consists of
a core surrounded by a cladding layer. Optical fibres are used to transmit data in the form of light beams.
Optical fibre has a high data-carrying capacity and transmits data at a faster rate.
The optical fibre, being flexible, can be used as a medium for telecommunication and networking and
can be bundled as cables. Transparent glass fibres are always used in long-distance telecommunications
applications.
The optical fibre cable is of two types—multimode fibre and single-mode fibre. The multimode fibre
is mostly used for shorter distances, while the single-mode fibre is used for longer distances links.
Advantages of fibre optic cables
• Light weight
• Fast data transmission rates
• High data-carrying capacity
• Ability to transmit data over long distances without much loss
• Higher data security and lower interference
• Longer life
Disadvantages
• Higher cost of installation
• Fragility
47
The link between the two devices is established by pointing them at each other. The direct line-of-
sight (LOS) path between the devices should be free from obstructions.
Most cell phones available in the market today use infrared technology to transfer data from cell to
cell, from cell to computer, or vice versa. The security of infrared system is good because of short
range. So infrared system in one room will not interfere with a similar system in an adjacent room.
Portable computers like laptops also have infrared devices, so they can be used on LAN without
connecting them physically through wires.
Drawbacks of Infrared technology
• There should not be any physical obstruction between the two devices that are transferring data.
• Using this technology, only two devices can communicate at a time.
Bluetooth
Bluetooth is a wireless technology used for connecting electronic devices such as computers,
headphones, digital cameras, speakers, and mobile phones. It uses low-frequency radio waves to
transmit information over short distances.
Bluetooth technology allows communication with several devices at the same time, thus overcoming
the limitation posed by infrared technology.
Wireless fidelity
Wireless fidelity (Wi-Fi) is a wireless technology. It uses high-frequency radio waves to allow data
transfer over a short distance, may be a few hundred feet.
Wi-Fi is used to provide wireless Internet access to many devices, such as laptops, smartphones, and
smart televisions. It also allows local area networks (LANs) to operate without cables, which makes it
a suitable network for homes and business needs.
Wireless-enabled devices can be connected to the Internet when they are near Wi-Fi access areas.
These areas are popularly known as hot-spots. Hot-spots have become quite common at public places
such as hotels, coffee shops, railway stations, and airports.
Advantages of using Wi-Fi
• Flexibility You can access the Internet, send or receive
files, and even print documents within 100 metres of the
Wi-Fi access point.
• Reduces cable clutter It reduces the clutter of wires
and cables behind the computer.
• Reduces cost It saves the cost and hassles of installing
and maintaining cables.
• Eliminates reconfiguring computers People can
use Wi-Fi Internet of the same location time and again
without having to reconfigure their Internet settings on
the devices each time.
Fig. 4.8: Wi-Fi network
48
Disadvantages
• Security Anyone with a Wi-Fi-enabled device can access the data and Internet connection. So, it is
important to secure your Wi-Fi connection.
• Effect of weather Weather conditions such as thunderstorms can adversely affect the Wi-Fi signals.
CLOUD COMPUTING
Cloud computing is the use of hardware and software to deliver services to clients using a group
of remote servers over the Internet. Here, the term cloud refers to the Internet. Various companies
provide cloud services to store files and applications on remote servers. These companies that offer
cloud-computing services are called cloud providers. They provide computing resources, such as
servers and storage space over the Internet. Amazon, Google, Microsoft, IBM, and Salesforce are
some of the major cloud-computing service providers.
Cloud computing allows users to store and process data directly on the server without keeping files on
their local computers, and software can be used without installing them on the local systems. Also, a
user does not need to be in a specific place to access the services.
Microsoft Office 365, OneDrive, Google Drive, and Picasa are a few examples of cloud-computing
services. Microsoft Office 365 provides online services, such as emails, shared calendars, instant
messaging, and conferencing, to large organisations. OneDrive is like a storage space where a user can
store files, photos, and documents and access them anytime, anywhere via the Internet.
It is better to keep files on a remote database rather than on a storage device, letting the user to access
it from anywhere using the Internet. Storing and managing data and software needs is the main
advantage of cloud computing. Different models of cloud computing exist based on the type of the
data you work on. These are discussed below.
Public cloud
In this type of cloud, the service provider makes resources, applications, and storage available to
general public. Cloud service provider stores data in its data centre and manages and maintains it. It
is highly advantageous to different organisations as it eliminates the need for testing and deployment
of new products. This cloud is more vulnerable to security breaches as it is open to a large number
of users. Since hardware, application, and bandwidth costs are maintained by cloud-service provider,
these services appear to be inexpensive. Examples of public clouds are IBM SmartCloud, Sun Cloud,
Google App Engine or Cloud, Microsoft Azure, and Amazon Web Services.
Private cloud
A private cloud, also known as internal or corporate cloud, is dedicated to a single organisation for its
internal use. The number of users using this cloud is limited. It is more secure than the public cloud.
In this type of cloud, data is stored on a company’s intranet or hosted data centre and protected
behind a firewall. The storage location can be an organisation’s on-site data centre or any third-party
data centre. Private network is responsible for maintenance of services and infrastructure, but the
organisation is solely responsible for the maintenance of hardware and software services, which in
turn are responsible for very high level of security but with heavy costs.
HPE, VMware, Dell EMC, and Oracle are some private cloud providers.
49
MULTIMEDIA: IMAGES, AUDIO, VIDEO, AND ANIMATIONS
Multimedia is a combination of different contents, such as texts, graphical arts, audio, animations,
video, and other interactive contents. It can be delivered using a computer or other electronic media.
It is an effective communication tool in areas, such as companies as a presentation and sales tool,
home for entertainment and games, educational sectors for teaching and training, and in public places
for information and advertising.
Image formats
Over the years, various file formats for images have been developed, based on specific application and
hardware. These image formats are based on compression techniques used due to different storage
sizes of images. Some of the commonly used image formats are discussed below.
50
Portable document format (PDF)
• PDF is the default file format for an Acrobat file. Adobe Reader is a free reading utility and hence a
file in this format is easily readable.
• Being very popular in desktop publishing, it has overcome the problems of rendering and printing
in other formats.
Photoshop format (PSD)
• It is the default file format for an Adobe Photoshop file.
• It is the only format supporting all Photoshop features, such as layers, channels, paths, adjustment
layers, layer styles, and editable text.
• Unfortunately, it is unrecognised by almost all applications.
51
• MP3 is the audio format for the MPEG files.
• It is one of the most popular sound formats for music. Its encoding system uses good compression
(small files) with high quality.
• It is widely recognised as one of the most popular formats for storing music files and listening to
music on the World Wide Web.
• It uses .mp3 or .mpga (for MPG Audio) file extensions.
Advanced systems format (ASF)
• It is developed by Microsoft as a specifically designed streaming format to run audio files over the
Internet.
• It can include audios, videos, slide shows, and synchronised events.
• Files are highly compressed, and data can be delivered without any interference on TV or radio.
SOCIAL NETWORKING
One of the best developments that the world has recently seen is that of social networking. It is the
use of certain websites and applications to form online community of people who can share their ideas
and interests. It keeps people connected with their family and friends.
Social networking websites help users find useful information. People can set up their accounts to
create a digital profile. They can select and follow members as their contacts. Creating a digital profile
on social networking sites is very easy. It is a very useful tool for finding relevant information. But it
has its own demerits as well.
Some of the advantages of social networking are as follows.
1. It is free and can be used to establish contacts with old friends, make new friends, and form online
communities.
2. It can be used to interact with people having similar ideas or interests such as books, movies or
hobbies.
3. It can be used to educate students and teachers.
Some of the disadvantages of social networking are as follows.
1. One’s privacy is always on stake as hackers can use your personal information and share them on
the Internet. Files shared on a social networking site can be shared very easily by others.
2. Interfering with people’s personal lives is among the biggest demerits of the social networking.
This is known as cyberbullying.
3. It is time-consuming and highly addictive. People used to get involved extensively and eventually
get detached from rest of the society.
Facebook, Twitter, and Google+ are a few common social networking websites. Some social
networking sites, such as Socialcast, LinkedIn, and Yammer, also provide platforms for business
interactions.
52
CHAT SITES
A chat site is a website that provides a platform for people with common interests to send and receive
messages in real time. Two people can chat when they are online and logged in at the same time.
Chat rooms are mainly based on topics that attract certain groups of people. These topics may be
based on sports, television, and so on.
There are many websites developed for the sole purpose of conducting chats. Talk City is one such
example. DawnChat (https://dawnchat.com/), Gather Online (www.gatheronline.com), and Chatib
(www.chatib.us) are some other examples of chat sites.
Wordbank
Hot spots: An area or a location that provides Internet access via a wireless network
Wi-Fi: A wireless technology that uses radio waves to allow data transfer over a short
distance
Multimedia: The medium of communication that integrates the different types of media,
such as text, audio, video, computer graphics, and animation
We have learned
• A local area network (LAN) is used to connect computers within a small geographical area like a
building, office, home, school, or college.
• A metropolitan area network (MAN) spans within a city or a town.
• A wide area network (WAN) is used to interconnect computers across larger geographical areas
like two cities or states or even across different countries or continents.
• Wired networking technology is a method where the data is transmitted from one place to another
through a physical medium—that is, a wire or cable.
• Wireless networking technology is a method of communication that uses electromagnetic waves
(like infrared, microwave, and radio waves) to transmit data between devices.
Solved Examples
1. For a school, LAN is required to be set up. Ans. LAN
Which type of wired technology will you
suggest keeping in mind the cost constraint? 3. What is a LAN?
Ans. Ethernet cable Ans. A LAN is a computer network that is used to
connect computers within a small geographical
2. Which among these is a high-speed network: area like an office.
LAN, MAN, and WAN?
53
4. What are the distance limits in LAN and WAN? 9. What is a Wi-Fi hot spot?
Ans. A LAN operates between 1 m and 10 km. A Ans. Wi-Fi hot spots refer to locations, such as
WAN, however, has no distance limits. The airports and coffee shops, that use Wi-Fi
nodes in a WAN could be located anywhere technology to connect to the Internet. Wi-Fi-
throughout the world. enabled devices such as laptops can get access to
the Internet when near such locations.
5. What is multimedia?
Ans. Multimedia is an emerging medium of 10. What are the different components of
communication that combines different types multimedia?
of media, such as text, audio, video, computer Ans. Multimedia is a means of communication that
graphics, and animation. combines several different types of media, as
described below.
6. In an office, there are five blocks. These blocks
• Text: The basic information to be
need to be connected to a network. What type
disseminated is generally in the form of text
of network will you suggest?
messages. To create an impact on the target
Ans. As all the blocks are located in the same office,
audience, the text messages should be clear
maybe within a distance of a few hundred
and crisp.
metres, a LAN can be established in this case.
• Images or Graphics: Impressive graphics
7. What is wireless networking technology? or images instantly attract our attention.
Ans. Wireless networking technology is a method They enhance the visual appeal of a
of communication that uses electromagnetic presentation, leaving a lasting impression on
waves to transmit data between devices. This the minds of the audience. Text messages
technology does not use cables or wires, hence complemented with beautiful images makes
the name wireless. a communication more effective.
8. You have stored a large number of songs on • Sound: Audio creates an effect on our mind.
your PC. You need to transfer some songs on We tend to remember what we hear for a
to your father’s mobile phone. Which wireless much longer time than what we read.
technology will you prefer? Give reasons to • Video or Animation: Video or animation
justify your choice. involves moving images. Videos can be added
Ans. Bluetooth. to give live demonstrations that give a real-
Bluetooth enables electronic devices to life feel to a communication. Animations
communicate at high speed (about 1 Mbps) can be used to add entertainment or fun to a
within a short range of about 10 metres. This is communication.
done without connecting the devices through
11. Discuss some applications of multimedia.
a wire. Also, you do not need an Internet
Ans. Multimedia is becoming a popular medium of
connection for this.
communication. Some common applications of
If both your PC and your father’s mobile multimedia are described below.
support Bluetooth, then Bluetooth would be
• Entertainment: In the entertainment industry,
the best choice to transfer data between them.
multimedia is used to develop special effects
in movies and animations. Interactive
54
multimedia allows the user to control, it easier to understand complex concepts
combine, and manipulate the multimedia. through 3D multimedia animations.
Multimedia games, which are quite popular
• Research: Multimedia is used in research
among kids, are good examples of interactive
and development (R&D) for modelling
multimedia.
and simulation. Nuclear scientists can,
• Education: Multimedia is increasingly being for example, simulate nuclear tests using
used in education today for developing multimedia applications instead of actually
computer-based tutorials (called CBTs) and carrying out nuclear explosions.
reference encyclopaedias. Students find
Exercises
t 1. Match the columns.
55
t 3. State the following as true or false.
(a) MAN is a computer network that spans (f) Amazon Web Services is an example of
across a city. private cloud service.
(b) The Internet is an example of a LAN. (g) A website is a collection of web pages.
(c) Wi-Fi is used for high-speed data (h) The World Wide Web is an information
transmission through cables. retrieval service of the Internet.
(d) Infrared waves are used for short-range (i) Multimedia does not include audio and
communication. video.
(e) Bluetooth is used to connect electronic (j) Socialcast also provides platforms for
devices over long distances. business interactions.
(d) What is a communication channel? (i) What are cloud providers? Give two
examples.
(e) What is Bluetooth?
(j) Explain public cloud computing.
(f) What is cloud computing?
56
t 6. Answer the following questions. [Long answer type]
(a) Explain the following terms with examples: (f ) Write a short note on
• WAN (i) Social networking
• LAN (ii) Cloud providers with examples
• MAN (iii) Multimedia
(b) Discuss two methods of communication (g) Explain different models of cloud
each for wired and wireless technologies. computing.
(c) Explain the advantages of using a computer (h) What is the main purpose of cloud
network. computing? Explain any two cloud
computing services.
(d) What is wireless networking technology?
(e) Explain the advantages of using a Wi-Fi
connection.
57
(h) A company having a huge office, comprising (i) Co-axial cable
10 floors, is planning to set up a network to (ii) Crossover Ethernet cable
connect its in-house computers. What type
of network would the company set up? (iii) Straight through Ethernet cable
(j) Which one of the following is a social (iv) None of the above
networking site as well as a business tool? (p) Name the popular wireless technology
(i) Twitter used for high-speed (about 1 Mbps)
voice and data transfer within a range of
(ii) LinkedIn
about 10 metres among devices such as
(iii) Salesforce computers, headsets, mobile phones, and
(iv) Talk City PDAs.
(k) What kind of network Internet is? (i) Infrared
(i) LAN (ii) Bluetooth
(ii) MAN (iii) Wi-Fi
(iii) WAN (iv) None of the above
(iv) None of the above (q) Which technology can be used to
(l) Which of the following is/are multimedia set up high-speed wireless LAN
software(s)? networks?
58
(i) Google Drive transferring information over longer
(ii) OneDrive distances
(s) What is the main advantage of Bluetooth (t) The rate of data transfer is fastest in
technology over infrared technology? (i) LAN
(i) Bluetooth technology allows (ii) MAN
communication with several devices at (iii) WAN
the same time
(iv) None of the above
(ii) Bluetooth technology can be used for
l Lab Exercise
c (a) Make a chart on Networking technologies. (b) What kind of network does your computer
lab have? Make a chart on the features of that
network.
• Rahul’s father frequently travels to different parts of the world on business trips.
Name the technology that will enable him to stay connected to people
s
in his office wherever he goes.
• Can Infrared technology be used to establish communication between two electronic
devices separated by a wall? Why?
59
5 Cybersafety
• Cybersafety
Cyberspace is a man-made world without any physical boundaries. It is a dynamic world that is
constantly evolving.
Every good thing has a flip side, so does the Internet. Some people take advantage of the dynamic,
infinite, and intangible nature of cyberspace to misuse it. They indulge in unlawful activities aimed at
60
stealing sensitive information or harming other computers and networks. Such unlawful activities in
the cyberspace are called cybercrimes.
Cybercrimes include frauds, identity theft, data theft, plagiarism, and violation of privacy. Let us
discuss some of these issues and look at ways to tackle them.
CYBERSAFETY CONCERNS
People who indulge in cybercrimes are called cybercriminals. Cybercriminals can intrude into systems
and steal confidential data, such as passwords, credit card numbers, bank account details, and any other
information that may be of use to them. Let us study some activities that cybercriminals indulge in.
Hacking
Hacking is an act of gaining unauthorised access into a computer or network. A person who gains
unauthorised access to someone else’s computer system is called a hacker.
Hackers are a security threat. However, some organisations employ the services of hackers to identify
loopholes in their systems. This helps the organisations to take corrective measures to make their
data and systems secure. Law enforcing agencies can use the services of hackers to track activities of
cybercriminals and prevent cybercrime.
Malware attacks
Malware is a malicious software program designed to harm a computer system, gain unauthorised
access to a computer system, or gather sensitive information. Malware can be of different types:
viruses, worms, and Trojans.
Virus
A computer virus is a malicious software program that replicates
itself. It attaches itself to a program or a file and activates
whenever the infected file is opened or run. The virus replicates
itself rapidly and infects other files on the computer, causing
greater damage. Fig. 5.2: Laptop attacked by a virus
A virus can modify programs, delete files, or format hard
disks. Computer viruses are often spread through email attachments, file downloads, and
infected portable devices. ILOVEYOU, Melissa, and Anna Kournikova are some examples of
computer viruses.
Worms
A worm is a malicious software program that is designed in such a way that it copies itself from one
computer to another, without any human intervention. Unlike a computer virus, a worm can copy
itself automatically. An email worm, for example, sends copies of itself to all email addresses listed
in the email contact list of the infected computer. A network worm makes copies of itself through a
network.
Worms replicate themselves very quickly and in great number. They clog networks and cause delays
in opening web pages or web services. Sasser, Code Red, Blaster, and Conficker are some examples of
computer worms.
61
Trojans
A Trojan horse is a malicious program that is disguised as a useful program. A Trojan might damage the hard
disk of the infected computer. Some Trojans create a backdoor, allowing a remote access to the victim’s
system. This enables cybercriminals to spy on the user, steal sensitive data, or disrupt the system.
Unlike viruses and worms, Trojans do not replicate themselves. However, they can spread through
email attachments, chat software, and address book of the infected system. CryptoLocker, Flashback,
and Vundo are some examples of Trojans.
Spam
The term spam refers to unsolicited bulk emails, which can be either
commercial (such as advertisements) or non-commercial (such as
jokes or chain letters). We often receive multiple copies of the same
message in an attempt to force the message on us.
Most spams are commercial advertisements, often for untrustworthy
products, schemes related to lotteries and other monetary benefits,
or some kinds of legal services. Generally, it is the recipients or the
carriers who pay for the spams and not the sender. Fig. 5.3 Spam emails
Identity theft
Identity theft is a major problem in the growing world of cyberspace. Identity theft occurs when
someone’s personal information, such as name, date of birth, bank account details, and debit or credit
card details, is stolen for the purpose of committing a fraud.
A cyber thief may use the stolen identity to get a new
credit card in the victim’s name. They can then make
online transactions or purchases using the credit card.
The victims of cybertheft have huge debts in their
names without even knowing about it.
Some of the ways in which identity theft can happen
include
• browsing the web using unsafe connections,
• disclosing personal details in chat rooms,
Fig. 5.4 Identity theft
• opening unsolicited emails,
62
• shopping on insecure or fake websites,
• using insecure passwords, and
• phishing.
Phishing
Phishing is an act of sending deceptive email messages and aimed at gaining sensitive information of
unsuspecting people. Such emails appear to be coming from reliable sources.
They direct the people to fake websites that mimic the websites of their bank or credit card provider.
The victims are then asked to verify or update the confidential information. This information is then
used to cheat them or to commit identity theft.
CYBERSAFETY
Cybersafety refers to the use of cyberspace in a safe and responsible manner. In the ever-expanding
complex world of cyberspace, the users should be aware of the online risks and take appropriate
actions to protect themselves while being online.
Certain cybersafety guidelines have been proposed to promote positive online behaviour among users.
Let us look at some of the basic cybersafety guidelines.
• Be cautious and do not click unknown links or ambiguous URLs.
• Download only trusted applications and that too from reputable sources.
• S
et a strong alphanumeric password that is a combination of numbers, letters, and special
characters. Avoid using personal information or common words in your passwords.
• Do not share your passwords with anyone. Keep changing the passwords regularly.
• Make personal information secure, and put adequate access restrictions on it.
• L
imit the information you share online. Do not post sensitive information such as your address,
family details, or your whereabouts.
• D
o not share your personal information or organisational data with anyone over the phone, while
chatting, or online.
63
• I f someone known to you posts information about you, make sure it is not something you are
uncomfortable sharing with strangers.
• If you suspect any data or security breaches, immediately report to the concerned authorities.
• Verify the information before posting it online. Do not post misleading or false information.
By diligently following these guidelines, we can minimise the risks and stay safe in the cyberspace.
CYBERSECURITY
Cybersecurity refers to securing computers, networks, and data to protect them from unauthorised
access, malware attack, data theft, and disruption of services. Let us discuss some cybersecurity
measures that can help us to tackle the growing menace of cybercrimes.
Identity protection
While working on the Internet, you must not post personal information on sites in the public domain.
This may lead to loss of your personal information and one might misuse it to scam you.
Make online transactions and provide your personal details only on secure and trusted e-commerce
sites. Be wary of ambiguous sites. Do not share any personal information on such sites.
Passwords
It is always a better idea to use passwords to secure data
and information. The password you create must be
strong enough that is not easily cracked. Given below
are some tips to create a password and secure it.
• Always create a password with at least 8 characters.
• A
password should be a combination of upper case
and lower case letters along with numbers and Fig. 5.5 Protecting systems using passwords
symbols.
• Never keep your name, date of birth, personal information, or common words as your password.
• Avoid using the same password for different accounts.
• Keep changing your passwords at regular intervals.
• D
o not let web browsers to remember your passwords,
especially when browsing using a public connection.
• Never share your password with anyone.
Firewall
A firewall is a network security system, which prevents unauthorised access
to a private network. A firewall can be a software program, a hardware, or a
combination of both. The firewall examines all incoming information. It blocks
the information that does not meet the specified security criteria.
Fig. 5.6 Firewall
64
Antivirus
An antivirus is a computer program that is designed to detect and
destroy computer viruses and other malware. To protect computers
or networks from virus attacks, we need to install antivirus software
programs in them. The antivirus needs to be updated regularly to
deal with new viruses being created. A computer without an antivirus
installed is highly vulnerable to cyberattacks.
An antivirus will scan files to look for known viruses by matching
definitions in a virus dictionary. It is also able to identify suspicious
behaviour from any program that might indicate infection. Symantec, Fig. 5.7 Using antivirus
McAfee, Kaspersky, Avira, AVG, and F-secure are some of the well-
known antivirus solutions.
Reporting cybercrimes
Cybercrimes should be reported to suitable law enforcement authorities. These crimes can be
reported to the following agencies:
• Local Law Enforcement Agency: It includes the police department. The police department has
its own cybercrime investigation cell that can investigate depending on the severity of the crime.
• Indian Computer Emergency Report Team (CERT-In): CERT-In has been formed to serve
as a national agency to perform various functions in the field of cybersecurity.
Wordbank
Cyberbullying: The act of harassing a minor using the Internet or mobile phones
Cybercrimes: The unlawful activities in the cyberspace
Cyberspace: A virtual world of interconnected machines and humans
Cyberstalking: The use of the Internet to harass or threaten someone
Hacker: person who indulges in gaining unauthorised access to someone else’s
A
computer system
Hacking: An act of gaining unauthorised access into a computer or network
65
Malware: malicious software program written to gain unauthorised access to a
A
computer system or gather confidential information
Phishing: An act of sending deceptive email messages and gaining sensitive
information from people
Spam: The unsolicited bulk emails, which can be either commercial or non-
commercial
Trojan horse: A malicious program that is disguised as a useful program and aimed at
damaging a hard disk
Virus: A malicious software program that replicates itself and infects other files
on the computer system
Worm: A malicious software program that copies itself from one computer to
another without any human intervention
We have learned
66
Solved Examples
1. Define the Internet. 5. Write any three methods you should use to
Ans. The Internet is a global network of protect data from unauthorised access.
interconnected computers and other devices. Ans. To protect data from unauthorised access, we
should use passwords, firewall, and antivirus.
2 . What is malware?
Ans. Malware is a malicious software program 6. Where can you report cybercrimes?
written to harm a computer system, gain Ans. Cybercrimes can be reported to the following
unauthorised access to a computer system, or agencies:
gather sensitive information.
• Local Law Enforcement Agency:
It includes the police department. The
3. Give any two methods by which a virus can be
police department has its own cybercrime
spread.
investigation cell that can investigate
Ans. A computer virus can spread through email
depending on the severity of the crime.
attachments and file downloads.
• Indian Computer Emergency Report
4 . What do you understand by DoS attack? Team (CERT-In): CERT-In has been
Ans. A denial-of-service (DoS) attack involves formed to serve as a national agency to
causing disruption in the services of a host perform various functions in the field of
connected to the Internet. Its aim is to prevent cybersecurity.
the legitimate users from accessing targeted
computer systems, devices, or other resources.
Exercises
t 1. Match the columns.
67
t 2. Fill in the blanks.
(a) A is a malicious software program prevent unauthorised access to a private
that replicates itself rapidly when activated network connected to the Internet.
and causes harm to infected computer or data. (d) A is a person who
(b) A is a computer program that gains unauthorised access to another person’s
detects and destroys computer viruses and computer system.
other malware. (e) is a software program
(c) A is a software that copies itself from one computer to
program or a piece of hardware that helps another without any human action.
(b) Which of the following is not malware? (e) Which of the following is not an antivirus?
(d) An antivirus is a software program that (iii) You should use more than one password
wherever possible.
(i) corrupts files on a computer system.
(iv) You should share your passwords with
(ii) h
ackers use to gain unauthorised access your friends.
to another computer.
l Lab Exercise
c 1. Create a presentation on Cyberbullying and (a) What would you do if you get to know
cybercrimes. Use animations and transition effects someone who is being cyberbullied?
to enhance the presentation. (b) From where can you get support if you are
2. Create a Word file and and enter information on being cyberbullied?
the following:
• O
ne of your friends used public Wi-Fi on his tablet. Are there any risks
involved? Write yes or no and give reasons for your answer.
s
• What security measures can be taken to secure cloud services?
• W
hat do you understand by biometrics? How do they work? Are they safe
to use?
69
6 Word Processor
Word processing involves using a computer to create and edit documents using text data. A word
processing software that lets you create, modify, display, store, and print a document is called a word
processor.
Creating documents using a word processor has the following advantages:
• It allows one to make changes without retyping the entire document. In the case of a typing mistake,
it allows going back to the place where the error is located and making the correction.
• It makes insertion or deletion of text anywhere in the document very easy.
• It also allows moving the text from one place on a document to another or even to an entirely
different document.
• It saves the document in the computer’s hard disk. This makes it easy to refer to the document
whenever required.
• It allows taking hard copy printouts using a printer as and when required.
WordStar was the first commercially successful word processing software (that is, the word processor)
that was widely used in the early eighties.
Today, a large number of word processors are available. Some common features found in all these
word processors are:
• Text insertion To insert text anywhere in the document.
• Text deletion To erase characters, words, lines, or paragraphs of text easily.
• Cut, copy, and paste To duplicate text or to move the text from one place to another in a document.
• Setting page size and margins To define and change page sizes and margins.
70
• Find and replace To search for a particular word or phrase and replace it with another word or
phrase.
• Word Wrap To automatically move to the next line when one line is filled with text.
• Print To send documents to a printer to print hard copies.
The most simple word processors called text editors, like MS Notepad or WordPad, support these features.
The more advanced word processors like MS Word and Apache OpenOffice Writer contain some
additional features such as:
• Font specifications This feature allows changing font type, size, and colour of the text within a
document.
• Footnotes and cross references It allows placement of footnotes and cross references in a document.
• Inserting graphics It allows embedding images, charts, and graphs into a document.
• Headers, footers, and page numbers It allows specifying customised headers and footers at every
page of a document along with the page number.
• Page layout It allows specifying different margins and indentations in a page.
• Spell check It allows checking and correcting the spellings.
Typical applications of a word processor include writing letters, memos, reports, making cards,
invitations, and computer-based tutorials.
MS Word is the most widely used word processor today. It is a proprietary software available with MS
Windows operating system only. Most of us might have worked with MS Word at some point of time
or the other. But there are a few constraints
of MS Word. First, we have to restrict our
choice of operating system to MS Windows.
Did You Know?
OPENOFFICE WRITER
Writer is the word processing component of Apache OpenOffice for creating text documents. Along
with the basic features of a word processor—that is, Spell check, Autocorrect, Find & Replace, Mail
merge, and so on. Writer has the following important features:
71
• Styles and templates
• Page-layout methods including columns and tables
• Embedding or linking spreadsheets and other objects
• Built-in drawing tools
• Track changes during revisions
• Database integration, including a bibliography database
• Export to PDF, including bookmarks
There are several other features offered by Writer.
Writer can also read the MS Word documents and save documents in MS Word format.
Standard toolbar
72
• Table menu shows all the commands required to insert and edit tables in the document.
• Tools menu contains functions like Spell Check, Customise, Mail Merge Wizard, and Options.
• Window menu contains the commands related to the document window.
• Help menu contains the Help file.
Toolbars
The Writer window has two toolbars: Standard toolbar and Formatting toolbar. The Standard toolbar
contains the standard options like Cut, Copy, Paste, Print, Spell Check, Inserting Tables, and so on.
The Formatting toolbar contains options like Font Size and Style, Alignment, B, I, and so on to format
the text.
Print file
New Save directly Cut Paste Table
74
OPENING AN EXISTING DOCUMENT
Open an existing document in any of the following ways:
1. By clicking File Open, or
2. By clicking the Open button on the main toolbar, or
3. By pressing Ctrl+O on the keyboard.
Note that if there is an already opened document, the second document opens in a new window.
After the Open dialog box appears (Fig. 6.6), select the file you want and click Open.
A Microsoft Office file associated with OpenOffice.org can also be opened by double-clicking
on it.
SAVING A DOCUMENT
A new document in Writer can be saved by following these steps:
1. Press Ctrl+S, or
Select File Save, or
Click the Save button on the main toolbar.
75
2. The Save As dialog box appears (Fig. 6.7). Enter the file name and specify the extension in which
you want to save the file under the Save as type option. The default file extension for saving an
OpenOffice document is .odt.
To provide security to your document, you can make it password-protected. Check the Save with
password option below Save as type option to get the following window. Provide a password and then
click OK to save the document.
77
EDITING AND FORMATTING DOCUMENTS
The Writer lets you create text documents on the computer and contains features to edit and format
the documents. We will discuss some of the important features here.
Selecting text
Before making any changes in the text, you need to select it. The text can be selected by using the
mouse, or the keyboard, or both.
Selecting text using the mouse
• One word Double-click the word.
• One sentence Triple-click at any place in the sentence.
• One paragraph Click four times at any place in the paragraph or put the cursor at the beginning of
the paragraph and use Ctrl + Shift + Down arrow key.
• Entire document Place the cursor at the beginning of the document, press the Shift key and then
click at the end of the document.
Selecting text using the keyboard
• One word or group of words Place the cursor at one end of the word. Press the Shift key and
move the cursor with the help of the Left or Right arrow key to the other end of the word or words.
• One line Place the cursor at the beginning of the text. Press Shift + Down arrow key or End key.
• A group of lines After selecting one line using the previous step, keep pressing the Down arrow
key along with the Shift key.
• Entire document To select the entire document, press Ctrl + A.
79
Copying and moving text
The Writer allows you to copy or move the text within a document.
Using drag and drop
Moving text to a new location
1. After selecting the text, place the cursor anywhere over the selected text.
2. Click keeping the left mouse button pressed.
3. Now drag the text to the place where it needs to be moved.
4. Release the mouse button.
Copying text
1. After selecting the text, place the cursor anywhere over the selected text.
2. Now keep the Ctrl key pressed and follow these steps:
• Click keeping the left mouse button pressed.
• Now drag the text to the place where a copy of the original text needs to be created.
• Release the mouse button.
Note that the text retains the formatting it had before the drag.
Using cut, copy, and paste commands
Moving text to a new location
1. After selecting the text, use Edit Cut, the keyboard shortcut Ctrl+X, or the Cut icon on the
toolbar to cut the text from its current location.
2. Place the cursor at the new location where the text needs to be moved.
3. Now use Edit Paste, the keyboard shortcut Ctrl+V, or the Paste icon.
Copying text
1. After selecting the text, use Edit Copy, the keyboard shortcut Ctrl+C, or the Copy icon on the
toolbar to make a copy of the text.
2. Place the cursor at the new location where a copy of the original text needs to be created.
3. Now use Edit Paste, the keyboard shortcut Ctrl+V, or the Paste icon.
In the paste operation, the pasted text retains its original formatting (such as bold and italics).
To make the pasted text take on the formatting of the surrounding text where it is to be pasted, follow
these steps:
1. After selecting the text, use Edit Copy, the keyboard shortcut Ctrl+C, or the Copy icon on the
toolbar. A copy of the text is created.
2. Place the cursor at the new location where a copy of the original text needs to be created.
80
3. Now do either of the following:
• Use Edit Paste Special, or
click the triangle to the right of the Paste icon, or
• Click the Paste icon without releasing the left mouse button.
4. Select Unformatted text from the resulting menu.
To find text
1. Choose Edit Find & Replace. The Find & Replace dialog box opens.
2. Now enter the text that you need to find in the Search for text box.
3. Click either Find or Find All.
81
On clicking Find, the Writer shows the next text that matches your entry. The text can be read and
edited. Click Find again to advance to the next occurrence of the text.
On clicking Find All, the Writer selects all the text that matches your entry. Now you can carry out
changes to all occurrences of the found text in one step.
To find and replace text
1. Select Edit Find & Replace.
2. Enter the text that you need to find in the Search for text box.
3. Enter the text to replace the found text in the Replace with text box.
4. Click either Replace or Replace All.
On clicking Replace, Writer searches the entire document for the text starting from the current cursor
position. After the text is found, the Writer highlights it. Now, click Replace to replace the highlighted
text with the text in the Replace with text box. Again, click Find to move to the next found text without
replacing the current selection.
On clicking Replace All, the Writer will replace all instances of the text that matches your entry.
The Find & Replace dialog box also contains the following options:
Match case Checking this option enables you to find words that match the case of the text provided
in the Search for text box. For example, if you provide the word to be searched as REPLACE, then
checking the Match case option will ensure that only the word REPLACE is found whereas words such
as replace and Replace are ignored.
Whole words only Checking this option enables you to find the text to be searched only where it
appears as a full word and not part of another text. For example, if the word to be searched is replace,
then checking the Whole word only option will ensure that only the word replace is found whereas words
such as replaces and replacement are ignored.
Additional features
There are more features in the Find & Replace dialog box for additional functionality as discussed
below. These features are visible when you click the More Options button of the Find & Replace dialog box.
Similarity search The similarity search finds text that almost matches the text you are searching for.
You can set the number of characters that are allowed to differ.
Check the Similarity search option and optionally click the ellipsis (...) button to change the settings.
Search for Styles This feature allows you to find all the text in the document to which a certain style
is assigned. For example, searching text containing the Heading 2 style.
1. Choose Edit Find & Replace.
2. Click More Options.
3. Check Search for Styles. The Search for text box displays a list of styles that are applied in the current
document.
4. Select the style you want to search for and then click Find or Find All.
82
Formats This feature allows you to find all the text in your document to which a certain direct
character formatting (bold, italic, superscript, and subscript) is assigned.
1. Choose Edit Find & Replace.
2. Click More Options.
3. Click the Format button.
4. Click Find or Find All.
Regular expressions This option allows you to search for words in your document using wild card
characters.
Inserting symbols
The Writer allows you to enter characters that are not available on the keyboard—for example—, ®,
©, ¾, ö, and ø. These are special characters.
To insert a special character, follow these steps:
1. Place the cursor where you want the symbol to appear.
2. Now click Insert Special Character. The Special Characters dialog box opens.
3. Select the character that you wish to insert and then click OK. The selected characters are
displayed in the lower left side of the dialog box. After selecting each character, it is displayed on
the lower right side of the dialog box along with its numerical code.
[Note: Different fonts include different special characters. If you do not get the specific special
character you want, try changing the Font selection.]
83
Try it out
t s
¤ Do you know ¤
1 £ = Rs. _______
Find the number that is ¼ of 32 and ¾ of 12 ¿
Oh! Is the ¿ character in the above statement actually a question mark (?) ?
Formatting paragraphs
Formatting paragraphs allows you to enhance the appearance of a paragraph. Fig. 6.15 shows different
paragraph formatting icons on the Formatting toolbar.
Open
Styles
and
Formatting Apply Line Numbering Decrease Border
Window Style Centered Justified Spacing: 1.5 On/Off Indent Color
Paragraph alignment
By setting the alignment, we can control the placement of text between the margins of a page. There
are various alignment options:
Left: In this option, the text is aligned with the left page margin.
Right: In this option, the text is aligned with the right page margin.
Center: In this option, the text is centred between the page margins.
Justified: In this option, the text is aligned evenly along both the left and right
page margins.
84
(a) Left align (b) centre align
85
3. In the Paragraph dialog box that opens, go to the Alignment page.
(d) Justified
87
First line indent
Spacing
below
paragraph
Line
spacing 1.5
Indent
before
paragraph
Formatting characters
Formatting characters refers to applying different formatting styles to a character or group of
characters. You can format your text with styles such as bold, italic, underline, superscript, subscript,
etc. You can also change the font attributes like font type, size, and colour.
Formatting characters using Format menu
First, select the text. Then, follow the path given below to apply various formatting options:
Format menu Character Character dialog box
By setting appropriate values for various options in the Character dialog box, you can format
characters as per your requirement.
1. Changing the font type Go to the Font tab and select a font of your choice from the list of fonts.
Fig. 6.22: Changing the Font type Fig. 6.23: Examples of different fonts
88
2. Changing the font typeface From the Typeface list, select a typeface style.
3. Changing the font size From the Size box, select the size for the text.
Fig. 6.24: Examples of different typefaces Fig. 6.25: Examples of different font sizes
4. Changing the font colour Select the text. Go to the Font Effects tab and choose a colour from
the Font color box.
Fig. 6.26: The Font Effects tab Fig. 6.27: Examples of different font
colours
89
5. From the Effects, Relief, Overlining, Strikethrough, and Underlining options, choose the
appropriate styles for the text.
6. Superscript and subscript: You can raise or lower a character from its normal position by
choosing the superscript or subscript option from the Position tab and providing the percentage by
which it is to be raised or lowered.
For example, consider the chemical equation given below.
NAOH + HCL = NACL + H2O
Notice the number 2 in H2O. It is appearing below the baseline of the text. This is called a subscript.
Now, consider the mathematical expression (a+b)2. In this expression, the number 2 appears slightly
above the other text. It is called a superscript.
To set a text as subscript or superscript, select Format Character.
Open
Styles
and
Formatting Apply Font Increase Font
Window Style Size Italic Superscript Font Color
91
Step 3: Select the text again and press the button I. The text will become slanting.
2. Changing font colour and size
Step 1: Select the text and press the Font Color icon from the formatting toolbar. Choose the desired colour.
Step 2: You can change the Size and Colour for the text in each line.
Fig. 6.33: Making text bold, italic, and underlined Fig. 6.34: Changing font colour and size
Try it out
t s
Create the following document in OpenOffice.org
Writer and apply suitable formatting.
The Writer lets you design and produce
Save the document with the name
text documents that can include graphics,
“Firstdoc.Odt”
tables, or charts.
You can then save the documents in a
variety of formats, including the standardised
Format Paintbrush
Open Document Format (ODF), Microsoft
The Format Paintbrush tool on the standard
Word (.doc) format, or HTML.
toolbar is used to copy formatting from
a selected text or an object, so that it can And you can easily export your document
be applied to another text or object. The to the Portable Document Format (PDF).
formatting can include text size, formatting
styles (B, I, U), Font type, alignment, etc.
For example, consider that you have prepared a document containing many paragraphs. In this
document, some formatting style has been applied to the first paragraph. Now, you want to apply the
same formatting style to the other paragraphs of the document. To do so:
1. Select the paragraph whose formatting you want to copy.
92
2. Click the Format Paintbrush icon. The cursor changes to a paint bucket.
3. Select or click the paragraphs on which you want to apply the copied formatting.
[Note: If you need to apply the formatting to more than one selection, double-click the Format
Paintbrush icon. After you apply all the formatting, click the icon again.]
93
Defining the format of footnotes or endnotes
To format the style of footnotes, follow the given steps:
1. Select Tools Footnotes/Endnotes.
2. In the Footnote Settings dialog box, go to the Footnotes or Endnotes tab and choose the settings as
required.
SPELLING CHECK
The Writer provides a Spelling checker to check the spelling of words in your document. To perform
a spelling check on a document select Tools menu Spelling and Grammar. If the document contains
any misspelled words, the Spelling dialog box appears.
The Spell check can also be started by clicking its icon on the Standard toolbar.
The AutoSpellcheck feature checks each word and shows a wavy red line under any misspelled word.
Once the word is corrected, the red wavy line disappears.
96
TRACKING CHANGES
The Writer allows you to keep a track of the changes made in a document (that is, added or deleted
text or changes in formatting) by marking the changes made. These marked changes help another
person to review the document and accept or reject each change.
To track changes in your document,
follow the steps given below.
1. Select Edit Changes Record
to begin tracking changes. A check
mark before Record shows that
the track feature is on.
2. Select Edit Changes Show
to show or hide the display of
changes.
3. To add a comment on a marked
change, place the cursor in the
area of the change and then select
Edit Changes Comment.
The comment is displayed in Fig. 6.42: Inserting a comment for recording change
the list in the Accept or Reject
Changes dialog box.
4. To stop recording changes, select Edit Changes Record again.
97
INSERTING REVIEW COMMENTS
To insert a comment in a Writer document, go to the Insert menu and select Comment or use the shortcut
Ctrl+Alt+C. It inserts an anchor at the current cursor position and a comment box in the margin. You can
enter your comment in the comment box. A line connects the anchor and the comment box. The author’s
name and the date and time when the comment was created also appear at the bottom of the comment box.
DRAWING TOOLBAR
Using the Drawing toolbar, you can add shapes, lines, text boxes, and call outs to the current
document. To open the Drawing toolbar, go to View Toolbars Drawing. Click the shape you want
to draw and drag it where you want to place it on the document.
The Drawing toolbar also contains a Fontwork Gallery tool that helps you insert different styles of
text in your document as shown here.
1. From the Menu Bar, click View Toolbars Drawing. The Drawing toolbar opens.
2. Click the Fontwork Gallery icon from the Drawing toolbar. The Fontwork Gallery opens.
3. From the Fontwork Gallery, choose the appropriate font style for the text in your document.
Fig. 6.44: Fontwork Gallery Fig. 6.45: Inserting Fontwork style in the
document
98
Did You Know?
Desktop publishing (DTP) is a more sophisticated form
of word processing. It involves the use of computer
and software to create documents, such as books, for
professional printing. Adobe InDesign and Quark XPress
are the two most popular DTP software. In addition to
these software, you also need graphic programs, for
example, Adobe Photoshop and CorelDRAW.
Wordbank
Word processor: word processing software that includes the functionality to create,
A
store, display, modify, and print a document
Text editors: Simple word processors with limited functionality
Format Paintbrush: ool used to copy formatting from a selected text or an object so that
T
it can be applied to another text or object
Spelling checker: A tool to check the spelling of words in your document
Find & Replace: he feature in Writer that allows searching for specific word(s) inside
T
documents and replacing them with other word(s)
We have learned
• Writer is the word processing component of OpenOffice.org (OOo) for creating text
documents.
• The Writer window mainly consists of four components: Menu bar, Standard toolbar,
Formatting toolbar, and Status bar.
• The Menu bar is located across the top of the Writer window.
• The default file extension for saving an OpenOffice document is .odt.
• Paragraph alignment allows you to control the placement of text between the margins of a page.
• The Indents feature lets you specify the amount of space between the left and the right page
margins and the paragraph.
• The Spacing feature lets you specify the amount of space between the selected paragraphs.
• The Writer allows you to keep track of changes made in a document (that is, added or deleted
text or changes in formatting) by marking the changes made.
• Line spacing lets you specify the amount of space between the lines of the text in a paragraph.
• Formatting characters refers to applying different formatting styles to a character or group of
characters.
• The Writer provides a Spelling checker to check the spelling of words in the document.
99
Solved Examples
1. Write the method used to open the Fontwork Ans. Symbols are the special characters which do not
Gallery. appear on the keyboard, for example ® and ©.
Ans. To open the Fontwork Gallery, select View To insert a symbol in a Writer document, click
Toolbars Drawing. Insert Special Character. From the Special
Characters dialog box that opens, select the
2. What all operations can you do in a word
symbol you want to insert and press OK.
processor?
Ans. A word processor allows you to create, store, 8. Explain Synonyms.
display, modify, and print a document. Ans. Synonyms are different words or phrases in
the same language that have a similar meaning.
3. What do you understand by text wrapping?
The OOo Writer contains the Thesaurus that
Ans. Text wrapping means shifting the text to the
provides synonyms for the selected word.
next line when the current line is filled with
text. To use the Thesaurus, select Tools
Language Thesaurus.
4. Name the four components of Writer window.
Ans. The four components of Writer window are 9. What is DTP?
Menu Bar, Standard Toolbar, Formatting Ans. DTP stands for Desktop Publishing. It is a
Toolbar, and Status Bar. more sophisticated form of word processing.
Using this software, books are created for
5. What are the shortcut commands for opening professional printing.
and saving a document in Writer?
Ans. The shortcut command for opening a 10. What is the major difference between the
document in Writer is Ctrl + O and the software provided by Microsoft and the
shortcut command for saving a document in open-source software?
Writer is Ctrl + S. Ans. Software provided by Microsoft are proprietary
software. They are licensed software for which
6. How could you provide security to your the user has to pay a price. Microsoft does not
document? encourage modifications to its software and
Ans. You can provide security to your document therefore does not provide source code to the
by making it password-protected. To provide users.
password to an OpenOffice.org Writer
document, check the “Save with password” Open-source software is software available with
option which appears at the bottom of the “Save source code. It gives users the rights to modify
As” dialog box. the software. Also, this is a free software that
can be downloaded from the Internet.
7. What are symbols and how are they inserted in
an OpenOffice.org Writer document?
100
Exercises
t 1. Match the columns.
(a) A tool used for creating and modifying text documents. (i) Justify
(b) The default file extension for saving an OpenOffice document. (ii) Ctrl+N
(c) The formatting option used to increase the thickness of the text. (iii) Spell Checker
(d) The feature in OpenOffice text document used to check the (iv) Format paintbrush
spellings.
(e) In the given equation Z2=X2+ Y2, the option used to raise (v) Word processor
2 above the other text.
(f) The tool used to copy formatting from one paragraph to another. (vi) Bold
(g) The shortcut used to create a new window. (vii) Superscript
(h) The shortcut command for selecting one paragraph. (viii) odt
(i) The alignment that aligns the text evenly along both the left (ix) Ctrl+shift +
and right page margins.
(d) To select a sentence in the Writer, double- (g) The endnotes are placed at the end of a
click anywhere in the sentence. document.
101
(h) Using the header, you can place certain text ( j) Using View option you can perform editing
at the bottom of each page. functions such as cut, copy, paste, find and
replace, etc.
(i) To track changes in a document, select
Edit Changes Record.
(d) What is the file extension of OpenOffice text (iv) Grammar checker
document files? ( j) For which of the following tasks would the
(i) odt Writer most likely be used?
103
(n) Menu Item in dim colour (grey) indicates (ii) Header and Footers
that the menu is (iii) Database management
(i) unavailable for current context (iv) Spell check
(ii) not a required menu (r) Which is not an option of the File menu?
(iii) a toggle menu (i) New
(iv) an overused menu (ii) Open
(o) Which view in a text document cannot (iii) Undo
display graphics?
(iv) Save
(i) Normal view
(s) To select a vertical block of text, the selection
(ii) Page layout view mode is changed
(iii) Print preview (i) from BLK to STD
(iv) None of these (ii) from STD to BLK
(p) Which menu would you access to insert (iii) from STD to EXT
header or footer in a document?
(iv) None of the above
(i) Insert
(t) Which of the following is not a valid
(ii) Edit alignment option?
(iii) View (i) Center
(iv) Tools (ii) Left
(q) Which of the following is not a word (iii) Justified
processor feature?
(iv) Corner
(i) Page setting
l Lab Exercise
c (a) Write the article given below in the Writer and apply the instructions that follow.
Education in India—A Historical Background
Vedas, Puranas, Ayurveda, Yoga, and Kautilya’s Arthashastra are some of the texts that
the traditional Indian knowledge system can be proud of. In ancient India, formal
education was imparted under the Gurukul system.
In ancient India, young boys had to stay at the Guru’s (the teacher’s) home and
complete their education. This ancient system of education produced many geniuses.
But at the same time, we cannot deny the fact that it was hardly egalitarian. Women
and people of lower castes were denied the right to education. The spread of various
movements, such as Jainism, Buddhism, the Bhakti, and Sufi, did have some liberating
impact on the life and condition of the women, the sudras and atisudras.
104
Education System in India
The present education system in India mainly consists of elementary education,
secondary education, senior secondary education, and higher education. [Elementary
education is of eight-year duration (classes I to VIII), secondary and senior secondary
education are of two-year duration each (classes IX and X ) and classes (XI and XII).
Higher education in India starts after a student has passed the senior secondary
examination or class XII.] Depending on the stream, graduation in India can take three
to five years. Postgraduate courses are generally of 2-3 year duration. After completing
postgraduation, scope/option for research in various educational institutions also
remains open.
Instructions
1. Give suitable colour and size to the heading 6. Change the colour of the first paragraph to
Education in India—A Historical Background. blue. Now, use the Format Paintbrush option
to change the colour of the second and the
2. To give emphasis on certain words, use Italics
third paragraphs also.
as done in the above document.
7. Use the Spell check feature to check the
3. The font of the whole document should be
spellings in the document.
Calibri and size should be 12 points.
8. Use proper spacing wherever required.
4. The document alignment should be justified.
5. Use the formatting features (like B, I, U)
wherever required.
(b) Write a letter to your class teacher asking for permission to take leave for two days as you have to attend
an important family function. Use appropriate formatting features along with proper placement/
alignment of text wherever required.
105
Advance Word
7 Processor Features
LISTS
Sometimes we need to organise data in the form of a list. Here, we will discuss two types of lists:
ordered (numbered) and unordered (bulleted).
Consider an example where your class teacher has given you the task of preparing the class list. You
can prepare the list in the following ways.
The first type of list is called the bulleted list while the second list is called the numbered list.
When data is to be presented in a particular order, we use the numbered list. In the above example, the
second option (numbered list) seems a better choice because a class list should always be in alphabetical
order.
Let us now consider another example where you have to write the names of 10 carnivorous and 10
herbivorous animals. In this case, there is no specific order in which you can write the names. So here
the bulleted list can be used.
106
To create lists in the Writer, follow the path given below:
Format menu Bullets and Numbering
The Bullets and Numbering dialog box opens.
1. To create an unordered or bulleted list, 2. To create an ordered or numbered list, select
select the Bullets tab. the Numbering type tab.
Try it out
t s
Select the best Indian team from the current cricket players. What type of list
would you use to display the names of these players according to their batting
order? Create the list and show it to your teacher.
107
Using the Bullets and Numbering toolbar
To create a list, the Bullets and Numbering toolbar can also be used. Fig. 7.5 shows the various tools
on the Bullets and Numbering toolbar.
Demote
One Move
Level Up
Numbering with with
Off Subpoints Subpoints
Demote
Bullets One Move Restart
On/Off Level Up Numbering
108
Fig. 7.7: Numbering style for level 1 list items
109
Music streams: Try it out
1. Vocal t s
Create a list of the following type.
• Classical
• Hindustani Means of transport:
• Carnatic 1. Land transport
• Western i. Fast moving vehicles
• Light, Bhajan, and Ghazal (a) Train
2. Instrumental (b) Car
Fig. 7.9: A nested list (c) Motorbike
ii. Slow moving vehicles
WORKING WITH TABLES (a) Cycle rickshaw
Tables are a useful means to organise and present data in (b) Bullock cart
the form of rows and columns. 2. Air transport
Consider an example where your class teacher asks you i. Aeroplane
to prepare a list, which also includes the Roll Number ii. Helicopter
and Admission Number of all the children. The best 3. Water transport
way to display this type of data is in the form of a table i. Ship
containing multiple rows and columns as shown below. ii. Boat
To insert a new table in the Writer, first position the cursor at the desired location, and then use any
one of the following methods to open the Insert Table dialog box:
Go to Table Insert Table.
or
Press Ctrl+F12.
or
n the Standard toolbar,
O
click the Table icon.
Inserting rows
For inserting rows in a table, follow the steps given below:
1. Select the row where you want to insert more rows. Fig. 7.11: The table grid
2. Go to Table Insert Rows. The Insert Rows
dialog box appears (Fig. 7.12).
3. Select the number of rows to be inserted.
4. Also, select the position of the inserted rows.
Choosing Before will insert the rows before the
selected row. Choosing After will insert the rows
after the selected row.
5. Click OK.
Inserting columns
Fig. 7.12: Insert Rows dialog box
For inserting columns in a table, follow the steps
given below:
1. Select the column where you want to insert more columns.
2. Go to Table Insert Columns. The Insert Columns dialog box appears (Fig. 7.13).
3. Select the number of columns to be inserted.
111
4. Also, select the position of the inserted columns.
Choosing Before will insert the columns before the
selected column. Choosing After will insert the
columns after the selected column.
5. Click OK.
Splitting cells
To split a cell into two or more cells, follow the
steps given below:
1. Place the cursor into the cell which needs
to be split.
2. Go to Table Split Cells.
3. In the Split Cells dialog box, provide the
following information:
• Number of cells to be created
• Direction of split (horizontal or vertical)
Fig. 7.14: Split Cells dialog box
4. Click OK.
Merging cells
Try it out t s
To merge two or more cells into one cell , Create the following table in the Writer.
follow the steps given below: Continuous & Comprehensive Evaluation
1. Select the cells which need to be merged. Term I Term II
2. Go to Table Merge Cells. Subjects FA1 FA2 SA1 FA3 FA4 SA2
Using AutoFormat English
The AutoFormat feature allows you to select Hindi
a predefined table layout for your table.
Maths
1. Select your table.
Science
2. Go to Table
AutoFormat. Social studies
3. The AutoFormat dialog box opens. Computer
Select the layout you want for your table.
4. Click OK.
112
Adjusting rows and columns
The Writer allows you to change the row height and width in a table. The steps are as follows:
1. Move the cursor over the edge of the cell whose height or width you want to adjust.
2. When the cursor changes to a double-headed arrow, click the left mouse button and drag the border
to the desired position.
3. Now release the mouse button.
Adding borders
To add borders in a table, follow the steps given below:
1. Go to Table Table Properties.
2. In the Table Format dialog box, go to the Borders tab.
3. Choose the border style from Line arrangement.
4. Choose the line style and line colour for the border.
5. Click OK.
113
Adding background colour
To give a background colour to the table, follow the
steps given below:
1. Go to Table Table Properties.
2. In the Table Format dialog box, go to the
Background tab.
3. Select a background colour for the table.
4. Click OK.
Try it out t s
Create the following table in the Writer.
S.No. Cartoon Show/Film Your Favourite Character Why do you like it?
Now, fill more rows in the table. Give a nice border to it and also add background
colour.
Practise inserting extra rows and columns to this table and then deleting them. Also,
practise splitting and merging cells.
114
Fig. 7.17: Insert picture dialog box
Inserting images from OpenOffice.org Gallery
OpenOffice.org (OOo) has an inbuilt art gallery that contains ready-to-use objects and images.
The OOo Gallery organises these objects and images under various themes. You can use these objects/
images in your documents.
To insert an image from the OOo Gallery into your documents:
1. Go to Tools Gallery.
2. The OOo Gallery opens at the top of the document.
3. Select the image from the different themes available on the left side.
4. Drag and drop the image into the document.
115
Fig. 7.18: OOo Gallery
Adding clip art in OOo Gallery
You can also add new themes to the Gallery.
For example, you can add clip art to the OOo
gallery. To do so, follow the steps given below:
1. Open a Writer. Thereafter, choose the Tools
menu and click Gallery. It opens the OOo
gallery at the top of the screen.
2. Now click the New Theme button on the top
left corner of the OOo Gallery. It opens the
Properties of New Theme dialog box.
3. Now type a name, such as ClipArt, for the new
theme in the text box under the General tab.
4. Go to the Files tab and click the Find Files
button.
Fig. 7.19: Selecting the folder containing clip art files
5. After the Select Path dialog box opens up,
browse the folder containing the clipart files to be added.
6. Click the OK button and close the Select Path dialog box and add the folder to the File Type list in the
Properties of New Theme dialog box.
7. After selecting the files you want to add to the OOo Gallery, click the Add or Add All button.
8. Now click the OK button to close the Properties of New Theme dialog box. The theme Clip Art is
now added to the list of themes in the OOo Gallery. On clicking the new theme created, you will
see the added pictures in the right pane of the gallery.
117
Let us now create an invitation letter using Mail Merge Wizard:
Suppose you are throwing a party on your birthday for which you have to send invitations to your
friends. For this, you will have to create two documents: the first document consisting of the
invitation letter and the second document containing the names and addresses of your friends to
whom the invitations will be sent.
Follow the steps given below to create the mail merge invitation letters:
1. Type the following invitation in a new Writer document.
2. Select Tools Mail Merge. The following window will appear. Select the option Use the current
document and click Next.
118
3. In the next screen, you have to select the type of document: letter or e-mail. As you are going to
send the invitation to all your friends, choose the option Letter. [The option e-mail can be selected if
you want to send e-mail invitations.] Click Next.
4. In the next step you have to create the data list, which will contain all necessary fields like names
and addresses of the friends whom you want to send the invitation. So press the button Select
Different Address List.
5. The next window shows the Select Address List dialog box.
7. Select the field which is not required and press the option Delete. After customising the address list,
select OK and start entering the records.
120
8. Press New after entering each record for entering the next record. After all the records have been
entered, select the option OK.
9. In the Save As dialog box that appears, enter the name of the file along with its location. Give the name
as datalist. Press the Save button to get the following screen. Match the fields and select Next.
11. Again, press Next and now you can edit the document and adjust the fields at the desired location.
To edit the document, press the Edit Document button.
122
12. The edited document will be observed as shown below. Press Next.
13. Now, if you want to edit an individual document, choose the option Edit Individual Document or
else select Next.
123
14. In the following dialog box, select Save merged document option. Press the Save Document button.
124
Fig. 7.37 shows how the two documents merge.
The invitation
The Data Source
containing names and
addresses of the people
invited
PAGE SETTINGS
In the Writer, page styles define the basic layout of all pages, including page size, margins, the
placement of headers and footers, number of columns, and the like.
There are several page styles in the Writer for you to use. You can also modify these page styles or
define new page styles.
126
Fig. 7.40: Setting page margins
Page orientation
The Writer offers two-page orientation options: portrait and landscape. To change the orientation,
follow these steps:
1. Right-click anywhere on the page.
2. A pop-up menu appears. Select Page from the menu.
3. Now go to the Page tab of the Page Style dialog box, select Portrait or Landscape as Orientation (see Fig.
7.40).
4. Now click OK.
127
Fig. 7.41: Setting multiple columns on a page Fig. 7.42: A two-column document
Footer
128
Defining different headers and footers
You can use different headers and footers on different pages in your document on the basis of
different page styles. For example, you can use page styles to define different headers for even and odd
pages in a document.
To use different headers and footers, follow these steps:
1. After selecting Format Styles and Formatting, go to
the Styles and Formatting window and click the Page Style
icon (Fig. 7.44).
2. Right-click on Right Page in the list of page styles and
select Modify.
3. Click the Header tab in the Page Style dialog box.
4. Check the Header on option and click the Organizer
tab.
5. Select Left Page in the Next Style box and click OK.
6. Now go to the Styles and Formatting window, right-click
Left Page in the list of page styles, and choose
Modify.
7. Click the Header tab in the Page Style dialog box
(Fig. 7.45).
8. Select the Header on option and click the Organizer tab
(Fig. 7.46).
9. Select Right Page in the Next Style box and click OK.
10. Go to the list of page styles and double-click Right Page Fig. 7.44: Style and formatting
to apply the style to the current page.
11. Enter text or graphics in the
header for the Left Page style.
After the next page is added to the
document, enter text or graphics
in the header for the Right Page
style.
129
Fig. 7.46: Setting style for Right page
Numbering pages
You can number the pages of your document. To do so, follow these steps:
1. Go to Insert Footer.
2. Select the page style that you wish to add the footer to.
3. Select Insert Fields Page Number.
If you want you can align the Page Number
field as you would do the text.
130
To give a border to your page(s) in Writer, select Format Page Borders. You can also shade or
colour the background of the page from the Background tab of the Page Style dialog box. It is also possible
to set a picture as the background of the page.
Try it out t s
Create a text document on Saving the Environment and practise various page setting options on it,
like setting margins, page orientation, multiple columns, headers and footers, page numbers, and
borders.
Printing a document
A printout is the
hardcopy of the
document produced
by a printer. To take
a printout of your
document, select
File Print to display
the Print dialog box,
and carry out the
following steps.
1. Select the printer.
2. Press the Properties
button and select the
orientation, paper
Fig. 7.49: Print dialog box
tray, and paper size.
131
3. Specify the page range, number of copies to print, and the order in which the pages are to be printed.
4. If you want to print only a selected text, then select Selection.
5. Explore other tabs of the print dialog box to see other options.
6. If you want to print only even-numbered pages, then select Left pages option under Page sides in the
Page Layout tab. If you want to print only odd-numbered pages, then select Right pages option.
When you print more than one copy of the document, the collate option becomes active. Selecting collate
option will ensure that the printer prints a complete set of the first copy, then the second copy, and so on. In
case the collate option is not selected, the printer will print specified number of copies of the first page, then
the second page, and so on.
Print preview
It is really important to see what your document looks like before the final output is printed. Print
preview feature displays how the document will look when printed. It allows you to make necessary
changes, if any, to the document before taking the final printout. This way you can save paper from
being wasted.
To preview the document before printing, select File Page Preview.
The print preview window is shown in Fig. 7.51.
To close the preview window, click the Close Preview button on the toolbar.
132
Fig. 7.51: Print Preview window
CLIPBOARD
Clipboard is a simple container for holding data temporarily. We unknowingly use the clipboard while
performing the cut, copy, and paste operations. When we perform cut or copy operation on some data,
it is transferred into the clipboard. When we perform the paste operation, we are transferring the data
back from the clipboard. Thus, the clipboard helps us to transfer files and folders from one location to
another. It also helps us to move data within a file or even between the files.
DIGITAL SIGNATURE
When you send a document to a friend via email, how does your friend know that the document is
genuinely sent by you and is not a spam? The answer to this question of authenticating documents on
the Web lies in digital signatures.
A digital signature is an electronic signature required for authentication of the identity of the sender
of a message or the signer of a document. It ensures that the original content of the sent message or
document is unaltered. Digital signatures are not prone to imitation and can be easily transported
and automatically time-stamped. Before enabling the digital signatures feature in the Writer,
obtaining and installation of a digital certificate is necessary.
Digital certificates are electronic files serving as an online passport. A third party known as a
Certification Authority issues this and also confirms the identity of the certificate holder and provides
trustworthiness of the website to the visitors.
133
To get a digital signature, choose File Digital Signature. You will get the following screen (Fig. 7.52).
Press Sign Document ... button and select the digital certificate before following other options.
Fig. 7.52: Digital Signatures dialog box Fig. 7.53: Select Certificate dialog box
A digital certificate contains details such as name of the individual, address, digital signature, public
key, serial number, and expiry date. At the receiving end, the web browser decrypts and verifies
the digital signature. If the digital signature is verified, a secure connection is enabled. In case of
an expired certificate or mismatched information, the browser pops up a dialog box with an alert
message.
135
In the main document, a small box appears. The formula you insert is displayed in this box. After
inserting the formula, click anywhere in the main document, the Equation Editor and Elements window
disappear.
Wordbank
Nested list: A list where one or more list items contain a sublist
OpenOffice.org (OOo) Gallery: An inbuilt art gallery in OpenOffice.org office software
that contains ready-to-use objects and images
Mail merge: The feature that creates a merged document by merging
a data source with the main document
Headers and footers: reas in the top and the bottom page margins
A
respectively, where you can add text or graphics
Printout: A hard copy of a document produced by a printer
Print preview: feature that displays, before actually printing the
A
document, how the document will look when printed
136
We have learned
• Tables are a useful way to organise and present data in the form of rows and columns.
• You can also add new themes, like Clipart, into the OOo Gallery.
• Mail merge helps us to create personalised mail merge documents such as greeting cards or
invitation letters.
• In the Writer, page styles define the basic layout of all pages. This includes page size, margins,
the placement of headers and footers, number of columns, and so on.
• There are two page orientations in the Writer: portrait and landscape.
• It is possible to have multiple columns of text on a page.
• Headers and footers can be used to insert fields like page numbers and chapter headings in a text
document.
• It is possible to number the pages in a document.
• Selecting collate option ensures that the printer prints complete set of the first copy, then the
second copy, and so on.
Solved Examples
1. Give one example where a numbered list can be 5. What are the two files created in Mail Merge?
used. Ans. The first file in Mail Merge is called the source file
Ans. A numbered list shows the contents in a specific that contains the content of the main document,
order. So, a common example is a class list, and the second file is called the data source file that
which is always numbered because the names are contains the address details of the recipients.
arranged in alphabetical order in the class list.
6. Write the steps to change page margins.
2. Write the method to insert a new row and a new Ans. a. Right-click anywhere on the page.
column in a table in an OpenOffice document.
b. Select page from the pop-up menu.
Ans. To insert a new row, select Table Insert
Rows, and to insert a new column, select Table c. In the page tab of the dialog box, specify the
Insert Columns. desired margin values in left, right, top, and
bottom margins.
3. Differentiate between the terms splitting and
merging of cells in a table. 7. What are the advantages of inserting a table in a
Ans. Splitting means dividing the cells into two or document?
more cells, while merging means combining two Ans. A table is used to store data in the form of rows
or more cells to form a single cell. and columns. The data in tabular form looks
more organised.
4. What do you understand by AutoFormat
feature in tables? 8. Write the steps to insert images in a document.
Ans. AutoFormat feature allows to select a Ans. Select Insert Picture From File to insert an
predefined layout for a table. To choose image.
AutoFormat, select Table AutoFormat.
137
9. Write steps to group or ungroup an image. 10. What do you understand by a nested list?
Ans. Select the image and then select Format Ans. A list where one or more list items contain a
Group Ungroup. sublist is called a nested list.
Exercises
t 1. Match the columns.
(a) The place where ready-to-use pictures are stored. (i) Equation editor
(b) The set of lines appearing at the four sides of the page. (ii) Print Preview
(c) It stores data in the form of rows and columns. (iii) Numbered list
(d) The option where two documents are joined together to (iv) OOo Gallery
produce a single document.
(e) The option to add page numbers at the bottom of (v) Table
document pages.
(f ) The option used to preview a page before it is printed. (vi) Mail Merge
138
t 3. State the following as true or false.
(a) A bulleted list is used to display data in a (e) The Collate option allows you to print
particular order. multiple copies of a document.
(b) In a table spanning multiple pages, check (f ) The Writer allows you to create newspaper
the option Repeat Heading to repeat the table style columns on a page of your document.
heading on each page. (g) It is possible to have different headers and
(c) You cannot use clipart images in the Writer. footers on different pages of your document.
(d) The Mail Merge feature allows you to merge (h) Print preview feature can help you avoid
a text document with a database file. wastage of paper.
139
Name, Gender, Age, DOB, Interests, and (i) Speed = Distance
Hobbies.
Time
140
(i) A list in which one or more list items contain (o) In OOo Writer, an image can be inserted from
a sublist is called (i) File
(i) Mega list (ii) OOo Gallery
(ii) Super list (iii) Clip Art
(iii) Nested list (iv) All of the above
(iv) Definition list (p) The correct Mail Merge steps are
(j) To insert a table in Writer (i) Create data source, create main
(i) Select Insert Table document, merge the two documents
(ii) Press Ctrl+F12 (ii) Create main document, create data
source, merge the two documents
(iii) Select Table Insert Table
(iii) Merge the documents, create data
(iv) None of the above
source, create the main document
(k) Which of the following is not an option in
(iv) None of the above
the Insert Table dialog box?
(q) The Mail Merge Wizard is opened from
(i) Repeat heading
(i) Insert Mail Merge
(ii) Don’t split table
(ii) View Mail Merge
(iii) Heading
(iii) Tools Mail Merge
(iv) None of the above
(iv) None of the above
(l) To access table AutoFormat feature, select
(r) In Mail Merge, the options for selecting the
(i) Table AutoFormat
main document include
(ii) Insert Table AutoFormat (i) Use the current document
(iii) Both (i) & (ii) (ii) Create a new document
(iv) None of the above (iii) Start from existing document
(m) The option to combine two or more cells to (iv) All of the above
form a single cell is
(s) In Writer, the Page Style defines
(i) Split Cells
(i) Page size and margins
(ii) Merge Cells
(ii) Number of columns
(iii) Combine Cells
(iii) Placement of headers and footers
(iv) None of the above
(iv) All of the above
(n) In the Table Format dialog box, the table
(t) To insert a page break, from the Paragraph
border is selected from
dialog box select
(i) Table tab
(i) Indent & Spacing tab
(ii) Borders tab
(ii) Alignment tab
(iii) Background tab
(iii) Text Flow tab
(iv) None of the above
(iv) None of the above
141
l Lab Exercise
c Create a document containing the following table in OpenOffice and follow the instructions given below:
Instructions
1. Merge the cells wherever required. 4. Use alignment options according to the
2. Increase the heading size and give it a blue given document.
colour. 5. Get appropriate border for the above
3. Use format paintbrush to set the formatting document.
for the entire text in the same format.
ll the pages of a document you have created contain running heads at the
A
top and page numbers at the bottom. Explain if it is possible that the first page
s
displays neither the running head nor the page number.
142
8 Presentation Software
143
IMPRESS
1. Click the OpenOffice.org icon and choose the Presentation option to open the Presentation Wizard.
Fig. 8.1: Clicking the Presentation option to start the Presentation Wizard
2. The first screen on the Presentation Wizard shows three options: Empty presentation, From template,
and Open existing presentation. Select Empty presentation and click Next.
5. After clicking the Create button on the last screen, you will get the following Impress window.
This section
is called Slides
Pane. It shows
the preview
of the slide
created.
145
BASIC ELEMENTS OF A SLIDE
You need to identify different elements to put in a slide. These elements could include Text, Title and
Headings, Objects (spreadsheet, chart, formulas, and so on.), and Pictures. After identifying the slide
elements, you need to select the appropriate slide layout.
a b c d
e f g h
i j k l
147
wizards and selecting readymade templates. Presentation wizard lets you create interactive
presentations in a quick and easy way. To open the presentation wizard:
1. Choose File Wizards Presentation and select a template for your presentation from the first
screen of the Presentation Wizard.
148
2. The next two screens will be as shown below. These screens are similar to what we saw in the
Getting Started with Impress section.
149
3.
On screen 4, provide details like Your name, Subject of presentation, and Further ideas. On screen 5,
choose the pages and click the Create button.
4. The final Impress screen looks similar to what you see in Fig. 8.13. The screen is divided into three
windows:
i. The left side shows the Slides pane where you see all the slides of your presentation.
150
ii. The right side shows the Tasks pane that
contains menus, such as Layouts, Table
Design, Custom Animation, and Slide
Transition.
iii. The middle window shows the active
slide. On top of the active slide is a bar
showing different slide views. In the
following section, you will learn about
these slide views.
slides.
2. Outline: Here, you just see
the outline of your slide. This
view is used when you have to
4. Handout: In the Handout view, you can set up the layout of your slides for a printed handout. Click
Layouts in the Tasks pane to see the layouts available. Choose an appropriate layout for your handout.
You can even add a header and footer in the handout.
To Print a handout,
go to File Print.
On the General
tab, select the
appropriate printer
and specify the
range of slides to be
printed. From the
Document list box,
select Handouts
and enter the
number of slides
you want to print
on each page.
Finally, click the
Print button.
Method 1
1. Select the layout you want from
the Tasks window that appears on
the right side of the screen. Also,
select the slide view as Normal.
Fig. 8.19: Selecting the layout
153
2. Click inside the box that says Click to add title. A cursor will appear inside the title box. Now, you
can add the title for your presentation, for example, SAVE TIGERS. To add text in the slide, click
the box that says Click to add text. Now, add the text that you want to display on the slide.
154
2. Click inside the slide. A box appears in which you can enter the text. The formatting of the text
can be modified by selecting the box and changing the text in terms of font size, style, and colour.
Formatting text
Once the text is entered on the slide, you can format it. Select the text to be formatted and right-click
on it. From the context menu, select Edit style. Now, follow the steps given below:
1. Select the Font tab in the dialog box that opens.
2. From the Font tab, set options like font, typeface, and
size as per requirement.
Try it out t s
3. Now, go to the Font Effects tab, and select colour and
other appropriate styles for the text. Create a presentation on Wild Animals.
Give an appropriate title on the title page
4. You can also set alignment, indents, spacing, etc. as and add some text.
per requirement.
155
Apart from the color, you can also do the settings for Gradient,
Hatching, and Bitmap options.
Use all these options to give different effects to your slides.
Fig. 8.24 gives an example showing the use of gradient effect.
Try it out t s
In the presentation you have created on wild
Fig. 8.24: The Gradient effect
animals, give a different background colour on
each slide. You can also try other effects.
2. Click the Fontwork Gallery icon (indicated by the circle in Fig. 8.25) to open it.
3. From the Fontwork Gallery, choose the required font style.
156
4. After selecting the font style, click inside the font style to change the text.
Try it out t s
Create a slide and try out different font styles from the Fontwork Gallery.
157
Adding text to the shapes
After the desired shape has been inserted, you can add text inside it. To add text inside the shape, click
inside the object and type the relevant text. Select the text and right-click on it. From the context menu,
select Character.... In the Character Formatting dialog box, go to Font tab and apply appropriate style.
Try it out
t s
Create a slide and modify the image by adding different objects on it from the
Drawing toolbar. Also, insert text inside the object and apply different styles on it.
A B C
Fig. 8.32: The Picture toolbar
Given below are different tools available within the Magic Wand and their respective functions.
Tools Uses
Invert Inverts the colour values of a coloured image or the brightness values
in case of a greyscale image
Smooth Softens the contrast of an image
Relief Adjusts the light source that in turn creates the shadow and hence the
relief effect
Mosaic Joins groups of pixels into a single area of one colour
159
B: This option is used to adjust the Graphics mode. The values under it are Default, Grayscale,
Black or White, and Watermark.
• Default—No change is applied when this option is selected.
160
• Watermark—This option modifies the brightness of the image to make it suitable to be used as a
watermark.
161
Try it out t s
With just a few words and a relevant picture, your presentation can become really effective. Create a
five-slide presentation on Education. A sample slide is shown in Fig. 8.39.
162
3. Select the image from the different themes available on the left side.
4. Drag and drop the image into the document.
163
8. Click the OK button to close the Properties of New Theme dialog box. The theme Clip Art is added
in the list of themes in the OOo Gallery. Click the new theme created and you will see the added
pictures in the right pane of the gallery.
Ungrouping images
Some pictures are made by grouping together a series of images. To separate or ungroup such an
image, right-click the image and select Break. You can also choose Format Group Ungroup.
Fig. 8.45: Right-click and select Chart Data Table Fig. 8.46: The data table
3. After selecting the data table, the chart is inserted into the slide as shown in Fig. 8.47.
Try it out t s
Make a table showing popular brands of cars in India and their sales in 2009.
Now use this table to display a chart on a slide.
165
USING HEADERS AND FOOTERS
Whenever you need to repeat certain text or graphics on every page, you need not write the text again
and again. Instead, you can use the Header and Footer option. The Header is an area at the top margin
and footer is an area at the bottom margin of a page. Headers and footers can include text, graphics,
and nearly any other information that may be contained in a document. For example, the slides of a
presentation generally contain the page number that appears in the footer.
Fig. 8.50: Specifying Date and time, Footer, and Slide number
4. You can also add customised text headers on all the slides through the slide master. Go to
View Master Slide Master. Select the Text tool from the Drawing toolbar and drag to add
the header in the desired location in the slide master. Type the header text in the textbox and
select View Normal. The header gets added to all the slides.
Try it out t s
In your presentation on wild animals, add the following information
on all the slides at the bottom: your name, slide number, and date.
167
ANIMATING OBJECTS
Animation means making objects on a slide move. Slide objects that can be animated include text, pictures,
charts, Smart Art graphics, shapes, and so on. Animation makes your presentation impressive and interesting.
A beautiful animation can never go unnoticed. Through the animation effects, you not only provide emphasis
to an important component in your slide show but also highlight important parts of your presentation. Two
types of animation effects that are present in the Impress are Custom Animation and Slide Transition.
Custom Animation
Custom Animation effects are applied to different parts of the slide to
provide emphasis.
Select the object on your slide and press the Add button under Modify
effect on the Tasks pane. (Fig. 8.53) to see different animation styles.
The Custom Animation window (Fig. 8.54) opens that shows the custom
animation effects available in Impress. Select the desired animation
style for the selected object and click OK. For example, in the smiley
slide shown in Fig. 8.30, select the text I’M A SMILEY. Now add the
Spiral In effect to it. Fig. 8.52: Inserting animation
Fig. 8.53: The Tasks window Fig. 8.54: The Custom Animation window
168
Finalising the animation
Before finalising the animation you have chosen, click the Play button. This will show you a preview
of the animation effect selected by you. For example, test the animation effect given to text inside the
smiley object by pressing the Play button.
Try it out
t s
In your wild animal presentation, add custom animation to one of the objects on your slide.
Slide Transition
Slide transition is a special effect that is used when introducing an object
or a slide during the slide show.
Slides can appear to dissolve into each other, push each other off the
screen, or open up like horizontal or vertical blinds.
Fig. 8.56 shows the various Slide transition effects available in Impress.
These transition effects can either be provided to a single slide or to all
the slides together.
Timing of the text box, pictures, and slides
The duration of an animation for the object or slide can be adjusted by
selecting the Automatically after option under Advance slide and entering
the time.
Adjusting the speed of transition
While adjusting the type of transition in the slide show, the speed of
the transition can also be adjusted. This can be done by choosing an
Fig. 8.56: Slide Transition
169
appropriate speed under Modify transition. This is done so that at the time of running the slide show,
the variation in the slide transition effect can be provided.
The three different speeds provided in the slide transition are:
1. Slow—The changing of one slide to another appears very slow.
2. Medium—The changing of one slide to another appears comparatively faster.
3. Fast—The slide transition is very fast and quick.
Rehearse Timings
The Rehearse Timings feature is useful to control the timing of a presentation. You can record the time you
need to present each slide. You can then use the recorded time to move to the next slides automatically while
giving a presentation.
Using the Rehearse Timings option
1. Once the presentation is complete, select Slide Sorter view.
2. Click the Rehearse Timings icon in the slide view bar to start
the show or go to Slide Show Rehearse Timings. Rehearse Timings
The first slide and a timer will appear in the bottom left
Fig. 8.57: Slide view bar
corner.
Timer
Fig. 8.58: Showing a timer while running the Rehearse Timings option
3. To advance to the next slide, click the timer. Repeat the process to apply on all the slides in your
presentation.
170
4. The time for each slide will be recorded. Save your
presentation. Try it out t s
In your Wild Animals presentation, try
5. Play the slide show and see if rehearse timing is
different slide transition effects. Now, use
working properly or not. You can also select Slide
the rehearse timings option to set the timing
Show Slide Show Settings to change the settings
of your presentation.
for the slides in the presentation.
Action Buttons
Suppose you are creating a quiz presentation
on some topic. You may be aware that in a
quiz, until the answer is provided within a
given time the next question is not asked. So,
in a quiz presentation you would not want
to change the slide until a question has been
answered. Here, the operation of changing
the slide or showing the correct answer is
performed only by clicking certain buttons,
called action buttons.
Action buttons are the buttons created in the slide,
which when clicked perform some action like moving
to the next slide, to the last slide, or to the first slide.
In OpenOffice.org Impress, this feature can be
provided through the Interaction tool.
To add action buttons on your slide, follow the
Fig. 8.59: Sample slides
steps given below:
1. Consider the slide shown in Fig. 8.59.
2. Insert a shape in the slide that will act as a button for moving to the next slide.
Object
4. Choose the action Go to next slide and press OK. Run the slide show and test the action button.
172
INSERTING SOUND
You can give a nice audio effect to your presentation by inserting an audio file. Given below are the
steps to insert a sound file in the presentation:
1. Select Insert Movie and Sound.
2. In the following screen (Fig. 8.64), select the audio file that you want to insert.
173
3. Select OK. The audio file is inserted.
Try it out t s
Add Next slide and Previous slide buttons to your Wild Animals presentation. When you click the Next
slide button, the current slide should be replaced with the next slide. Similarly, when you click the
previous slide button, the previous slide should come on the screen.
Wordbank
175
We have learned
Solved Examples
1. Which software of OpenOffice suite is used to 6. What are the options that appear in the Tasks
create presentations? pane?
Ans. To create presentations, OpenOffice Impress is used. Ans. The options in the Tasks pane are Master Pages,
Layouts, Table Design, Custom Animation, and
2. What are the three different speeds in slide transition? Slide Transition.
Ans. The three different speeds in slide transition are
slow, medium, and fast. 7. Explain slide transition.
Ans. Slide transition is a special effect that is used
3. Can action buttons be created to link to a website? when introducing an object or a slide during
Ans. Yes, action buttons can be used to link to a web the slide show.
page or website.
8. Will the data entered in the Notes view appear
4. Which is the shortcut key to run the slide show? during the slide show?
Ans. The shortcut key used to run the slide show is F5. Ans. No. The data entered in the Notes view are
notes just for reference. They are not displayed
5. Write the steps to insert a sound file in a during the slide show.
presentation.
Ans. To insert a sound file, select Insert Movie and 9. What is a presentation wizard?
sound and select the sound file. The file will be Ans. Wizard is a quick way of creating a presentation.
inserted in the presentation. A presentation wizard has slides with preset
176
backgrounds and animation effects for quick (i) Rearranging the slides
creation of presentations.
(ii) Adjusting the background
10. What are the three things that can be done in (iii) Adjusting the slide transition
the Slide Sorter view?
Ans. The three things that can be done in the Slide
Sorter view are:
Exercises
t 1. Match the columns.
177
t 3. State the following as true or false.
(a) A presentation consists of a collection of slides. (g) In the Handout view, you can add headers
(b) There are six types of slide views in Impress. and footers to the slides.
(c) A slide cannot have formulas and charts. (h) To give a background colour to your slide,
select Format Page.
(d) To rename a slide, go to Slides Pane and
right click. Select Rename Slide, type the new (i) You can insert ready-to-use shapes or
name, and press OK. objects in your slide through the Insert
menu.
(e) You can rearrange slides in the slide sorter view.
(j) It is possible to add a text within the ready-
(f ) With Wizards, you can quickly create to-use shapes.
attractive presentations.
178
(c) What is Rehearse Timing and why is it used? insert slide number at the bottom of the
(d) Briefly explain the options available in the slide.
Magic Wand icon of the picture toolbar. (i) Insert a button on the slide you created
(e) How can you format text on a slide? above and link it to some audio (song) file
available on the computer. Write the text Play
(f) Write the steps to change the background a song on the button. When you run the slide
colour of a slide. show and press this button, the song should
(g) Write the steps to insert an image on a slide. start playing.
(h) Create a slide and insert an object in it. (j) Write a note on the animating objects in a
Write some text inside the object. Also, presentation.
(e) Which of the following options is used to (i) The Esc key
add timing to the slides in a presentation? (ii) The Space bar
(i) Slide Show menu (iii) Enter key
(ii) Rehearse Timing button (iv) Mouse button
179
(j) Which of the following options is not a way (ii) Select Insert Sound
to create a new presentation?
(iii) Select Insert Narration
(i) Using the Scan-In Slides feature
(iv) Right-click the document and choose
(ii) Using a blank presentation Add Sound option
(iii) Using a Wizard (p) Riya is preparing a presentation. She wants
(iv) None of the above some text present on a slide to fly in from the
left when she clicks the mouse. Which of the
(k) Which of the following options is the
following features should she use?
quickest way to create a presentation?
(i) Slide Show
(i) Starting from a blank presentation
(ii) Slide Transition
(ii) Auto creation wizard
(iii) Custom Animation
(iii) Wizards
(iv) Text Animation
(iv) None of the above
(q) Which of the following is not a Custom
(l) Which of the following tools is used to add
Animation effect?
text to a slide without using the standard
placeholders? (i) Fly in
(iv) Adding watermarks (s) Which one is not an option under Tasks
pane?
(n) Which of following statements is incorrect
about action buttons? (i) Master Pages
180
l Lab Exercises
c (a) Create a presentation on Global Warming (ii) Your presentation must include the
taking into consideration the following India fact file (picture of National
points: Flag, National Anthem, etc.).
(i) The first slide should contain the title (iii) Create few slides on the Indian Army
Global Warming. and the freedom fighters.
(ii) The second slide should contain the (iv) Show through your presentation that
introduction on global warming. you are proud to be an Indian.
(iii) Include few slides on do’s and don’ts. (v) Make some slides on the Indian
(iv) The presentation must contain few Heritage. Include pictures of the
pictures on global warming. Taj Mahal, Lal Quila, Konark Sun
(v) Include some slogans on Global Temple, etc.
Warming. (vi) You can draw the picture of the National
(vi) End the presentation with some noble Flag in OpenOffice.org Draw.
thoughts. (vii) Include some pictures of the freedom
(vii) Use the formatting tools, clip art, and fighters.
pictures as much as possible. (viii) Also, give an appropriate background
(b) Create a presentation on Nature taking into to your presentation.
consideration the following points: (d) Create a presentation on Hacking taking into
(i) The first slide should contain the title consideration the following points:
Nature. (i) The first slide should contain the title
(ii) Choose one specific area in Nature Hacking.
(plants, trees, animals, or mammals) (ii) Write the definition of a hacker.
and give introduction on it. (iii) Say how a hacker is different from a
(iii) Draw a life cycle and show it cracker.
graphically. (iv) Tell what all a hacker can do.
(iv) Make some slides on the features of (v) Include some pictures.
the area chosen. (e) Create a presentation on IPO Cycle of the
(v) Include some interesting and amazing Computer taking into consideration the
facts. following points:
(vi) Include slides on what you can do to (i) The first slide should contain the title
save nature. IPO cycle.
(vii) Make some impressive slogans on (ii) Define the IPO cycle.
Save Nature. (iii) Draw the IPO cycle.
(viii) Use the formatting tools, clip art, and (iv) Create different slides for the
pictures as much as possible. input devices, output devices, and
(c) Create a presentation on My Country taking processing unit.
into consideration the following points: (v) Include picture for every unit of the
(i) The first slide should contain the title IPO cycle.
My Country My Pride. (vi) Check the Clipart to find pictures
suitable for the topics.
181
9 Spreadsheet Software
Spreadsheets are programs consisting of a grid of boxes that can be used to organise, analyse, store,
and represent data in rows and columns. It also allows us to make automatic calculations using
formulas.
Take an example of organising marks scored by students of a class in different subjects and calculating
the percentage scored by each student. Calculation of percentage requires using a formula and
therefore a spreadsheet is the answer.
Computer
Roll No Name Eng Maths Science Science SST Percentage
1 Anny 89 90 100 97 88
2 Manu 87 100 89 97 99
3 Joseph 91 96 98 77 78
A spreadsheet is therefore used not only to organise the data in a tabular form but also to perform
calculations to get results.
182
Here, the spreadsheet window is shown in Fig. 9.1.
Fig. 9.2: Opening Calc spreadsheet Fig. 9.3: OpenOffice.org Calc spreadsheet
183
3. Every single box in the spreadsheet is called a cell. The cell with dark rectangular box or border is
called the active cell. You can enter data in an active cell only.
IMPORTANT TERMS
Workbook and worksheet
When the Calc spreadsheet is opened, the default screen that is visible is called the worksheet. A
worksheet is the area that contains data. There are 65,536 rows in a Calc worksheet, while there are
1024 (AMJ) columns.
184
Collection of several worksheets makes a workbook. By default, a workbook has three worksheets with
the default names as Sheet1, Sheet2, and Sheet3.
Changing the name of a worksheet
To change the default name of a worksheet, double-click the sheet name and provide a new name for
the worksheet.
Sheet names
are given here.
Double-click
here and
change the
sheet name.
Cells
The rectangular box formed by the intersection of a row and column is called a cell. To enter data in a
cell, you need to select it. On selecting a cell, a dark rectangular box appears around it.
Cell range
A collection of selected cells in a spreadsheet is called a cell range.
185
To select a cell range in a row, click the first cell, hold down the Shift key, and press the right arrow key
() to select cells in the row. An example of selecting a cell range in a row is shown in Fig. 9.8.
Sheets
A single document can contain many sheets.
A spreadsheet file is comparable to a book, while sheets are comparable to chapters in the book.
By default, three sheets appear in the spreadsheet file. More sheets can be inserted, if required, by
selecting Insert Sheet.
SAVING A WORKBOOK
When a workbook containing a worksheet is saved, the worksheet gets automatically saved. To save a
workbook in OpenOffice.org Calc, we follow the following steps:
187
Now, add more columns in the Friends worksheet to include information like class and address (see
Fig. 9.13).
188
4. The Format Cells dialog box opens. Click the Alignment tab. Now change the Horizontal alignment
from Default to the alignment you want, say Right, and see the change (Fig 9.16).
Number data
In addition to a text data, a worksheet can also contain the numeric or number data. Let us see how
you can insert the number data in a cell.
189
Add another column in the Friends worksheet and name it PERCENTAGE. Now, add some numeric
values in this column. You will notice that the number values in the cell are right aligned by default.
The default alignment of the number data can, however, be changed in the same way as done for text.
The date and time data is also left aligned by default. Using the format option, you can adjust not only
the alignment but also the format of date and time. To select the format option, right-click on a cell
and select the Format Cells option.
190
The Format is
adjusted from
here.
Method 2
Another method of generating the series is by using the AutoFill tool. To use this tool, follow the steps
given below.
1. Enter the first two values of the series.
2. Select both the cells.
192
3. Place the cursor at the bottom right corner of the second cell and drag it down. A red box indicates
that the series is getting created.
4. Release the mouse wherever you want to end the series.
5. Check the output (see Fig. 9.24).
193
Try it out t s
Create the following table in OpenOffice spreadsheet and follow the instructions
given below.
TOOLBARS
The following toolbars are available on a spreadsheet window:
1. Standard Toolbar This toolbar contains some standard options of Cut, Copy, and Paste. Options
like New, Save, Print, etc. are also available in this toolbar.
Export Auto
Directly Page Spell Format Sort
Save as PDF Preview Check Copy Paintbrush Ascending
Symbol Flow
Line Ellipse Text Callouts Shapes Charts From File
4. Formula Toolbar This toolbar contains the Name Box drop-down menu that indicates the name
or address of the active cell and a long white box called the Input Line or Formula bar. It displays the
content of an active cell. The formulas are entered in the Input Line.
FORMATTING CELL
CONTENT
We can format the data in a worksheet
cell. Consider formatting the data of the
document Friends.ods. To format the data in
a worksheet cell of the given table, follow
the steps given below:
1. Select the cell.
2. Click the right mouse button and choose
the option Format Cells.
196
(b) Changing font colour
Colours make our document impressive. Moreover, when you want to represent or identify data in
a sheet, the best way to do so is through colours. To change the font colour, go to Font Effects tab and
select the colour you want.
The other options available in Font Effect are Overline, Underline, and Strikethrough, and so on.
197
(c) Text alignment
As already discussed, the alignment of text in a cell can also be changed. To modify the horizontal and
vertical placement of the text, click the Alignment tab and select the appropriate alignment options.
198
The following figure shows the effects of formatting applied to the previous table.
Background colour can also be changed using the Bucket option seen on the Formatting toolbar .
199
(f) Cell protection
This option allows you to hide the formula in the cell and to protect your spreadsheet from being
modified.
INSERTING COLUMNS
You can insert additional columns anywhere in an already existing worksheet table—for example,
insert a column in the Friends table before the column CLASS (Column C).
1. Select the CLASS column in the Friends table, as shown.
200
3. CLASS column now becomes D and a new column is inserted at C, as shown.
INSERTING ROWS
Similar to inserting columns, you can also insert additional rows in an already existing table. For
example, insert a row in the Friends table before the row containing the information of Bhavya.
1. Select the third row, as shown.
2. Click Insert Rows. A row is inserted before Bhavya and the result is shown in Fig. 9.40.
201
To insert cells in a worksheet, follow
the following steps:
1. Select the cells where new cells
need to be inserted.
2. Click Insert Cells ... .
3. To insert one or more cells,
choose either Shift cells down or
Shift cells right from the Insert Cells
dialog box.
4. To insert an entire row or
column, choose either Entire row
or Entire column.
Fig. 9.40: A new row inserted You can also insert cells by choosing
Insert... from the right-click menu.
DELETING CELL CONTENT
It is possible for you to delete the content stored in a cell or a group of cells.
To delete the content of a cell, follow the steps given below:
1. Select the cell and press delete button. The Delete Contents dialog box appears.
2. Select the Delete all option and click OK. Every type of cell content will be deleted. To delete only
the text, you should select only the Text option.
202
Try it out t s
Create the following spreadsheet
(Fig. 9.42).
PERFORMING CALCULATIONS
Calculations often involve the use of
formulas. A formula begins with an equal to
Fig. 9.42: A sample table
(=) sign. To perform arithmetic calculations,
formulas use following Arithmetic Operators:
Editing a formula
Once you have entered a formula in a cell, you can edit it any time later. To edit the formula follow
the given steps:
1. Select the cell containing the formula.
2. Go to the formula bar or press F2 key.
3. Make necessary changes in the formula.
4. Press Enter or anywhere outside the cell.
5. The formula is changed.
6. Save the worksheet.
204
To copy the formula from one cell (say cell F2) to other cells (say cells in the range F3:F8), you can
use any of the following methods:
1. Copy the formula of the cell F2.
2. Select the cell range F3:F8.
3. Right-click and select Paste to paste the formula.
or
1. Keep the cursor at cell F2.
2. On the bottom right corner of the cell, a plus sign appears.
3. Place the mouse cursor over the plus sign and drag it down. The formula is copied to all other cells.
Repeat the same steps to copy the formula from cell G2 to cells in the range G3:G8.
CELL REFERENCING
Cell referencing refers to identifying a cell location through its address—for example, C1 and C3.
The way a cell is accessed at the time of performing calculations specifies the type of referencing.
There are three types of cell referencing:
1. Relative referencing
2. Absolute referencing
3. Mixed referencing
205
Relative referencing
In the previous example, note that the formulas copied in the cell range F3:F8 appear as:
Notice that when the formula is applied to a particular cell, the reference to related data cells in it is
automatically changed. For example, the data cells for formula in cell F3 will be C3 and D3 while the
data cells for formula in cell F4 will be C4 and D4.
This type of referencing where data cells in a formula are referred with reference to or relative to the
address of the cell where the formula is entered is called relative referencing.
Absolute referencing
Sometimes we do not want to change the reference to data cells in the formula. Wherever the formula
is copied, the reference to the data cells remains the same or fixed. This type of referencing where the
reference to a cell remains fixed is called absolute referencing. In case of absolute referencing, we add the
$ symbol as a prefix to the cell address.
206
There are three absolute reference styles:
For example, in the table shown in Fig. 9.47, type the following formula in cell D7:
=$C$3+$C$4
Now, copy the formula to cells in the range D8:D16. You will notice that all the cells now display
the same value. This is because reference to cells C3 and C4 has been fixed in the formula by using
absolute referencing. This method is useful when you insert a formula at one place but want to
display the result of the formula in different cells of the worksheet.
The cell range D7:D16 in the above table was filled by using absolute referencing. Here, there was no
change in the reference to data cells with respect to change in the row.
Mixed referencing
Sometimes we want some cell references to remain fixed while reference to other cells may change.
In this case, we use a combination of relative and absolute cell referencing. Such type of referencing
207
where we use a combination of relative and absolute cell references is called mixed cell referencing.
To understand mixed cell referencing, create the following table.
208
Try it out t s
1. Draw the following table in spreadsheet.
209
4. Copy the same formula into cells D8 to D12.
5. Now, write the formula = $C$4 + D7 in cell E7 and copy it into cells E8 to E12.
6. Write the formulas for total sales in cell C13 and total salary distributed in cell E13.
Fig. 9.53: Filling cell C13 using the mixed reference formula
210
You will notice that in the above worksheet while references to columns C and E cells change, the
references to cell addresses D4 and D5 remain fixed. This combination of relative referencing with
absolute referencing is called mixed referencing.
PRINTING A WORKSHEET
To print a sheet, select File Print. The following window will appear.
The Print dialog box provides options to print All sheets, Selected sheets, or even Selected cells. You can
even set the page range. If required, you can print multiple copies.
FUNCTIONS
A function is a predefined
formula. It also begins
with an equal to (=) sign
followed by the function
name and its arguments—
for example, SUM(15,
20). The name describes
what (type of calculations)
the function can do.
The arguments provide
the values on which the
function works.
A function always
returns some value. For
example, the function
212
Try it out
t s
Look at the following expense statement. Write formulas to calculate the Total Expenses,
Max Expense, Min Expense, and Average Expense and display them in cells C9 to C12.
Try it out
t s
Create a table of marks obtained in different subjects by all the students in your class. Calculate the
aggregate and average marks obtained by each student. Also, find out the lowest and highest marks
obtained in each subject.
IF function
IF function is one of the most powerful and useful spreadsheet functions. It can fill the cells in a
worksheet based on evaluating a condition.
The syntax of this function is IF (test; value1; value2).
The IF functions tests the given
condition. If the condition is true,
value1 is displayed. If the condition is
false, value2 is displayed in the cell.
Let us consider the following table
which includes a Grade column. A
student is given grade A+ if his or
her test percentage is more than 80
else he or she is given grade A.
Write the following formula in cell G3:
=IF(F3>80; “A+”; “A”)
Copy the formula to the cells in
the range G4:G9. You will get the
following result.
213
Fig. 9.58: Table demonstrating use of IF function
CHARTS
A chart is a graphical representation of data. Charts are the easiest way to understand and analyse data
as one can easily understand patterns and trends illustrated in the chart that are difficult to understand
in other cases.
OpenOffice.org Calc allows you to create charts from your worksheet data.
To insert a chart in Calc, follow the steps given below:
1. Select Insert Chart.
2. The following window will appear.
215
Click here to
menon the
cell range.
216
7. The document will appear as shown in the following figure.
Line charts
Line charts show trends over a given period of time. Each line
in graph depicts the changes in the data value of one item. For Fig. 9.67: Bar chart
example, one can show the sprouting, germination and growth of
a garden pea plant under favourable conditions over a period of
several weeks
The variation in aggregate marks obtained by different students
can be represented by a line chart as shown in Fig. 9.67.
Area charts
An area chart shows values as points on the y-axis and categories on the x-axis. A line connects the Y
axis values of each data series. The area between two lines is filled with a colour. The main aim of this
chart is to highlight the changes from one category to the next.
The aggregate marks data can now be represented in an area chart as shown below (Fig. 9.68).
A line chart differs from an XY scatter chart in the treatment of the category (X) data as the former
treats the input as non-numeric while the latter treats it as continuously varying numeric data. A line
chart also treats the input as categorical information or data, equally spaced along the x-axis such as
text labels to avoid any unexpected results in case the X values consist of numbers.
Fig. 9.69 shows the aggregate marks data in a scatter (XY) chart.
Wordbank
Absolute referencing: The type of referencing where the reference to a cell remains fixed
AutoFill: The option in Calc that helps to automatically generate or
complete a data series
Cell: The intersection of a row and column in a worksheet.
Cell range: A collection of cells forms a cell range
Cell referencing: Referring to a cell through its cell address
Chart: A graphical representation of data
Function: A predefined formula
Relative referencing: The type of referencing where the data cells in a formula are
referred with reference to or relative to the address of the cell
where the formula is entered
Workbook: Collection of several worksheets
Worksheet: The area in a spreadsheet where the data is written
219
We have learned
• A workbook has three sheets by default, named as Sheet1, Sheet2, and Sheet3.
• A Calc worksheet has 65,536 rows and 1024 columns.
• The default file extension for a Calc spreadsheet file is ‘.ods’.
• A spreadsheet contains data in the form of rows and columns.
• Formulas are used for performing calculations in spreadsheets.
• Formulas begin with an equal to (=) sign.
• A function consists of the function name and its arguments.
• A function always returns a value. For example, the function MIN(15, 20) returns a value 15,
which is the minimum of the two values provided.
• Mixed cell referencing uses a combination of relative and absolute cell references.
• The IF function can be used to fill data in a cell after evaluating a condition.
• Charts often make it easier to understand and analyse data.
• Pie charts are used to pictorially represent a single data series.
• Column charts are used to show comparisons between different items of data.
• Line charts are used to show trends over a given period of time.
Solved Examples
1. How do you insert text in a cell? 6. What are the options under the Font Effects tab?
Ans. To insert text in a cell, just click the cell and Ans. The options under the Font Effects tab are
start entering the data. Font color, Outline, Shadow, Overlining,
Underlining, and Strikethrough.
2. Write the steps to insert a new column in a
spreadsheet. 7. Which arithmetic operators can be used for
Ans. To insert a new column, just select Insert calculations in a spreadsheet?
Column. Ans. The arithmetic operators which can be used for
calculations in a spreadsheet are +, –, *, /, and ^.
3. What is the quick way of formatting a cell’s
content? 8. Name the three types of referencing in
Ans. Right-click the mouse button on the selected spreadsheet.
cell and choose Format Cells. Ans. The three types of referencing in spreadsheet
are relative referencing, absolute referencing,
4. In a spreadsheet, what does A2:B6 indicate? and mixed referencing.
Ans. A2:B6 specifies the cell range, i.e. the collection
of cells, A2, A3, A4, A5, A6, B2, B3, B4, B5, B6. 9. What are the different alignments possible in a
cell?
5. Name any two features or tools under the Ans. The text in a cell can be aligned horizontally
Formatting toolbar and two features or tools and vertically. The options under horizontal
under the Drawing toolbar. alignment are left, center, right, and justified,
Ans. Two options under the Formatting toolbar while the options under vertical alignment are
are Bold and Italic while two tools under the top, center, and bottom.
Drawing toolbar are Text and Shapes (like line,
circle, and rectangle).
220
10. Define worksheet. How many rows and rows and columns. There are 65,536 rows and
columns are there in a Calc worksheet? 1024 columns in a Calc worksheet.
Ans. A worksheet is the area in a spreadsheet where
the data is entered and stored in the form of
Exercises
t 1. Match the columns.
221
t 3. State the following as true or false.
(a) You can enter data only in an active cell. (f ) The function AVERAGE(10, 20, 30) will
(b) The default alignment of number data in a return the value 30.
cell is center. (g) In relative data referencing, the reference to
(c) The AutoFill tool helps in automatic data cells remains fixed.
generation of a data series. (h) The formula =D5+$E$6 is an example of
(d) The Default formatting command is used to absolute referencing.
format the contents of a cell. (i) D4:D10 refers to the cell range from D4 to
(e) The function MAX(5, 14, 8) will return the D10.
value 8. (j) The IF function fills a cell after evaluating a
condition.
222
(g) What will be the cell address of the cell (iv) Seventh row and sixth column
formed by the intersection of the following: ........................
(i) first column and second row (v) Eleventh row and eleventh column
........................ ........................
(ii) Fourth column and third row (h) In the following spreadsheet, cell A3 and B3
........................ contain numbers while cell C3 contains a
(iii) Ninth row and second column formula.
........................
223
(d) Create the following table and answer the (iii) Draw a chart to show a comparison of
questions that follow. total marks scored by each student.
(i) Identify the formula in cell G5 and fill (e) Look at the spreadsheet given here and
the cells in the range G6:G9. answer the questions that follow.
(ii) Find the highest marks scored in each
subject and fill them in the respective
cells in the range C11:F11.
(i) What will happen when the formula (v) What will be the value in cell D2 when
=B2+C2 is entered in D2? the content of C2 is deleted?
(ii) What will happen when the formula of (f ) The company High Life Fashions maintains
the cell D2 is copied to the cell D4? the salary details of their employees in a
(iii) What will happen when the formula spreadsheet as shown below. The spreadsheet
of the cell D2 is modified to shows a sample data of only 7 employees.
=$B2+$C2? Based on the information provided in the
below spreadsheet, answer the following
(iv) What will happen when the formula of questions.
the cell D2 is copied to the cell E4?
(i) Calculate the DA for each employee as NET SALARY = BASIC + HRA +
follows: DA - PF
DA = 10% of BASIC + HRA Show the output in column F.
Show the DA in column D. (iii) Find the maximum NET SALARY and
(ii) Calculate the net salary for each display the output in cell F9.
employee as follows:
224
(g) Answer the questions based on the table roll number 1. Copy this formula to
given above. other cells in column J to display the
(i) Write the formula to find the lowest percentage for all other students.
marks in English in cell F9. (iv) Write the formula in cell K2 to display
(ii) Copy the formula to cells G9:I9 to the grade as A+ if the percentage
calculate the lowest marks in hindi, is greater than 80 otherwise display
maths, and computer. A – . Display the grades for all other
students.
(iii) Write the formula in cell J2 to calculate
the percentage for the student having
226
(u) Each spreadsheet is called a workbook (v) Which of the following types of charts can be
because added to a spreadsheet?
(i) It can be modified. (i) Line graphs and pie charts only
(ii) It can contain text and data. (ii) Only line graphs
(iii) It can contain many sheets including (iii) Bar charts, and line graphs only
worksheets and chart sheets. (iv) Bar charts, line graphs, and pie charts
(iv) You have to work hard to create it.
l Lab Exercise
c Create the following sheet.
(i) Find the DA of all the employees, (iv) Find the highest and lowest salary and
which is 15% of their salary. store the result in the cells F9 and F10,
(ii) Find the HRA of all the employees, respectively.
which is 30% of their salary. (v) Find the average salary of all employees
(iii) Find the total salary which is the sum of and store the result in cell D10.
Salary + DA+HRA.
If you enter formula =A1+$A$2 in cell A4 and then copy it to cell C3, what will
the formula copied to C3 look like?
s
227
10 Introduction to Python
PROGRAMMING LANGUAGES
Programming languages allow us to talk to computers. A programming language is a set of words,
commands, symbols, and rules that are used to write instructions for the computer or create software
programs. A program is a set of instructions written for the computer to perform a specific task.
Programming languages can be classified into three categories: machine language, assembly language,
and high-level languages.
Machine language
Machine language is the native language of a computer. It is hardware dependent. Each type of
computer machine will have its specific machine language.
A computer understands only binary digits (0 and 1). So instructions in machine language are written
using binary digits. The instructions written using machine language can be executed directly by the
CPU. Programming in machine language is a difficult task.
Assembly language
Assembly language uses mnemonic abbreviations (such as ADD and MOV) for writing instructions. It
is also machine specific.
A program written in assembly language needs to be translated into machine code before execution.
This is done by a software program called assembler.
High-level languages
High-level languages are easy to read and understand as they resemble human languages. C, C++,
Java, and Python are examples of high-level languages. They use English language words for writing
statements.
Programs written in high-level languages must be translated into a machine code before execution.
This can be done by either a compiler or an interpreter.
228
A compiler translates the entire program into a machine code in one go. An interpreter translates
one line of the code at a time. C, C++, and Java are examples of compiled languages. Perl, PHP, and
Python are examples of interpreted languages.
INTRODUCTION TO PYTHON
Python is a high-level programming language. It was developed by Guido van Rossum in the early
1990s at Stichting Mathematisch Centrum, Netherlands. When Guido began implementing Python,
he was also reading a BBC comedy series—Monty Python’s Flying Circus from the 1970s. Van
Rossum thought of having a short, unique, and slightly mysterious name for the language. So he
decided to call the language Python.
Python is an interpreted language. It uses an interpreter to interpret and run one instruction at a time.
Features of Python
There are several features of Python that make it a popular and powerful programming language. Let
us learn about some of these features.
Simple: Python uses simple English language words. It makes Python programs easy to understand.
Python programs are also shorter than some other popular languages.
Let us look at the following Java program to print Hello world on the screen.
public class HelloWorld
{
public static void main (String[] args)
{
System.out.println(“Hello world!”);
}
}
The same program can be written in Python with just a single line of code.
print(“Hello world!”)
Interpreted: Python is an interpreted language. It means the code written in Python is executed line
by line. This makes it easier to debug the code.
Easy to learn: Python has a simple syntax, which makes it easy to code in Python. People with no
programming background can also easily learn to program using Python.
In Java, every statement must terminate with a semicolon (;). In Python, end of a line means the end
of the statement.
System.out.println (“Hello world!”); (Java)
print(“Hello world!”) (Python)
Open-source programming language: Python has been developed under an open-source license,
which makes it freely usable and distributable.
Portable: Python is a portable programming language. The same Python program can be run on
different platforms without requiring changes.
229
Object-oriented programming: Python is an object-oriented programming language. It makes use
of objects. An object provides the ability to reuse the same piece of code over and over again.
Embeddable: The Python programs can be combined with programs written in other languages such
as C, C++, and Java.
Interactive mode
To open IDLE in interactive mode, follow the steps given
here.
1. F
rom the Windows Start menu, select IDLE (Python
3.6 32-bit).
2. T
he interactive mode window (Python Shell) appears as
shown below.
I n the interactive mode, the command (instruction) is given at the command prompt (>>>). The
command executes when the programmer presses the Enter key.
Script mode
To start the script mode, follow the steps given here:
230
1. Click the File menu in Python Shell.
2. Select the New File option to open the following script window.
3. W
rite the complete code and save the file. The file is saved with .py extension. To see the output,
run the script by pressing the F5 key or click on the Run menu and select the Run Module option.
231
WRITING AND RUNNING A PYTHON PROGRAM
Interactive mode
Let us begin by writing a program to print the message Hello world!.
1. Open IDLE and type the following line of code on the Python command prompt.
>>> print(“Hello world!”)
2. To run the program, press the Enter key. IDLE will display the following output below the code.
Script mode
Let us write a program using the script mode of IDLE.
1. Open IDLE, click the File menu, and select the New File option in Python Shell.
2. Write the program: Type the following lines of code in the script window.
>>> print(“Hello everyone!”)
>>> print(“I’m writing this code using the script mode.”)
>>> print(“I’m sure you will enjoy coding with Python.”)
232
3. Save the program: From the File menu, select the Save option. Save the file with the name
MyPython1.py.
4. Run the program: To run the program, press the F5 key. The output is displayed in the Python
Shell as shown below.
Remember
• T
o run a Python program in interactive mode,
just press the Enter key.
• T
o run a Python program in script mode, press
the F5 key or select Run Module from the Run
menu of the script window.
Syntax
There are certain rules or syntax that one must follow while writing programs in Python.
1. P
ython is a case-sensitive language. Here, print() and Print() are not the same. The function print()
is a predefined function in Python that starts with lowercase p.
>>> Print(“Hello world”)
>>> print(“Hello world”)
2. If the argument to the print() function is a string, it is enclosed within a pair of quotation marks.
>>> print(Hello world)
>>> print(“Hello world”)
233
Fig. 10.9: Syntax error
3. T
he argument to the print() function can also be a variable. If we want to print the value of the
variable, then the variable should not be enclosed within a pair of quotation marks.
>>> a=45
>>> print(“a”)
>>> print(a)
234
In Python, a comment begins with the hash symbol (#). The text following the hash symbol is treated
as a comment. Let us consider the following code:
# This is a comment.
print(“Can you see the comment?”)
You can see that the statement followed by the hash symbol (#) is ignored by the interpreter and is
not displayed in the output.
The escape sequence \t is used to add a horizontal tab space between two words and \v is used to
add a vertical tab space. The program given below depicts the use of these escape sequences.
236
Fig. 10.15: Using arithmetic operators
The precedence of multiplication and division is higher than addition and subtraction. Parenthesis can
be used to denote the order of calculations.
Wordbank
237
We have learned
• Assembler is a software program that translates an assembly language program to the machine
language.
• A high-level language uses the English language words for writing instructions.
• Python is a simple, high-level interpreted programming language.
• Python is an open-source language that is freely available.
• Python is an object-oriented programming language.
• Python’s package provides an integrated development and learning environment (IDLE) to
write and run Python programs.
• There are two modes in IDLE—interactive mode and script mode.
• The Python files are saved with .py file extension.
• The hash symbol (#) is used to add comments in Python.
• An escape sequence is a non-printable character that is written using a
backslash (\).
• The arithmetic operators can be used to do simple calculations in Python.
Solved Examples
1. Which language uses mnemonic codes? Ans. The steps to open script the mode are:
Ans. Assembly language (i) Open the interactive mode.
2. W
hich is the native language of the (ii) Click the File menu.
computer? (iii) Select the New File option.
Ans. Machine language The script mode will be opened.
3. P
ython is a portable language. Explain 6. W
hat will be the output of the following
this statement. line of code?
Ans. T
he same Python program can be run >>> print(“Hello \t world”)
on different platforms without requiring
changes. This makes Python a portable Ans. It will display the output as
language. However, we need to avoid Hello world
platform-dependent features.
7. Are print and PRINT the same in Python?
4. W
hich key will you use after the print
Ans. N
o, print and PRINT are not the same in
statement to get the output?
Python as it is a case-sensitive language.
Ans. A
fter writing the print statement, press
hat is the function of \n escape
8. W
the Enter key to get the output on the
character?
screen.
Ans. I t displays the following text in a new
5. W
hat are the steps to open the script
line.
mode?
238
Exercises
t 1. Match the columns.
(a) A set of instructions written to (e) The programs written in Python can be
carry out a specific task is called a saved in the mode.
. (f) The two modes of IDLE are
(b) IDLE stands for . and .
(c) Python is a level (g) The Python files are saved with
programming language. extension.
(d) The key is used to (h) A is a non-printable
run a program in Python. character that is written using a
backslash (\).
239
t 4. Answer the following questions. [Very short answer type]
(a) Is Python a case-sensitive language? (d) What is the function of the escape
sequence \t?
(b) What is the file extension of Python
program? (e) What is the function of the escape
sequence \n?
(c) What does the sign >>> indicate?
240
(b) Which of the following statements is (iii) PRINT (“Hello world”)
correct? (iv) print (“Hello world”)
(i) Python is a high-level language. (e) Which of the following statements is
(ii) P
ython uses a compiler to run used to add a comment?
programs. (i) ‘ This is a comment.
(iii) E
very statement in Python must (ii) & This is a comment.
terminate with a semicolon.
(iii) # This is a comment.
(iv) Python is a non-portable language.
(iv) * This is a comment.
(c) Which keyboard shortcut is used to run a
program in script mode? hat is the function of \t escape
(f) W
sequence character?
(i) F2 (ii) F3
(i) It adds a vertical tab space.
(iii) F4 (iv) F5
(ii) It adds a horizontal tab space.
(d) Which of the following is the correct
syntax? (iii) It moves the text to the new line.
(i) Print (“Hello world”) (iv) I t deletes the character written after
it.
(ii) prn (“Hello world”)
l Lab Exercise
c 1. Write a program in Python and do the Save this program as MyPythonProgram on
following: your desktop.
(a) Add the numbers 10, 11, and 26. 2. Write a program in Python and do the
following:
(b) Find the difference between the numbers
90 and 57. (a) Show the use of comments.
(c) Find the square of the number 19. (b) Use all the escape sequence characters
and run the program to see the output.
• H
ow is an interpreter different from a compiler? What is a source code s
and object code?
• What is the difference between open-source and closed-source software?
241
Python—Variables and
11 Data Types
DATA TYPES
In real life, we come across different types of data. Let us consider a few examples.
1. T
he name of a person is made up of a combination of letters of the English alphabet. For example,
the name Sachin consists of six letters.
2. An address consists of a sequence of characters (letters, numbers, and symbols).
3. The age of a person is expressed in numbers. For example, Sachin is 14 years old.
4. The gender of a person can be denoted by just one letter—M (for male) and F (for female).
In computer programming, data types are used to classify different types of data. A particular data type
defines the type of operations that can be performed on the data.
Each programming language has its native (built-in) data types. Python also has its own set of built-in
data types. Let us learn about some commonly used data types.
Integer
In mathematics, the integer number set includes whole numbers and negative numbers (I = […, –3,
–2, –1, 0, 1, 2, 3, …]). An integer is a numeric data type.
In Python, any number without a decimal will be considered an integer. For example, the numbers 40,
235, 0, –61, and –217 are all integers.
Floating-point number
In Python, any number expressed in decimal form is considered a floating-point number or a float. For
example, the numbers 2.4, 7.0, 13.5, 37.25, 2.175, –61.00, and –217.45 are all floats.
String
A string is a sequence of one or more characters (letters, numbers, and symbols). A string data value is
always enclosed within a pair of quotation marks.
242
Python accepts both single quotes and double quotes, provided there is consistency in the usage of
quotes. Consider the following examples of string data type.
‘Chetan’
“[email protected]”
“A-41, Mohan Cooperative Industrial Estate, New Delhi”
VARIABLES
Variables are named memory locations that are used to store data values. When a variable is declared,
some area in memory is reserved for it.
In programming languages such as C and C++, variables need to be explicitly declared before they
are used. A declaration statement specifies the data type and name of the variable. A declaration
statement may look something like this:
int a;
The above statement assigns integer data type to the variable a.
243
Printing the value of a variable
We can use the print statement to display the value stored in a variable on the screen.
The syntax for this is as follows:
>>> print (variableName)
Remember that if the argument to the print() function is a variable, then the variable is not enclosed
within quotes.
Let us understand this with the help of the following examples.
1. Let us assign some value to a variable counter and print its value.
>>> counter = 10 (Assigning a value to the variable counter)
>>> print (counter)
The output of the above code is shown below.
2. The following code assigns a floating-point value to the variable var1 and then prints its value.
>>> var1 = 10.1
>>> print (var1)
The output of the code is shown below.
4. We can embed the value of a variable at the end of a string. Consider the following program.
>>> name = “Rahul”
>>> print (“My name is”, name)
The output of this program is shown below.
245
String concatenation
String concatenation means adding or combining two strings. The plus (+) sign can be used to
concatenate strings. Let us understand this through the following example.
>>> first_name = “Rahul”
>>> last_name = “Verma”
>>> full_name = first_name + last_name
>>> print (full_name)
The output of the previous program is shown below.
>>> name = “Rahul Verma” Run the following statements and note down the
output.
>>> print (name[2])
1. print (name[:5])
>>> print (name[2:5])
2. print (name[3:]
247
ARITHMETIC OPERATIONS IN PYTHON
Python uses the following operators for the basic arithmetic operations.
Operator Name of operation Description
+ Addition Adds the two operands
– Subtraction Subtracts the right operand from the left operand
* Multiplication Multiplies the two operands
/ Division Divides the left operand by the right operand
Modulus Returns the remainder of the division of the left
%
operand by the right operand
Let us take some examples to make use of these operators in Python.
Program 1. Write a program to add the numbers 30 and 50 and print
their sum.
>>> num1 = 30
>>> num2 = 50
>>> sum = num1 + num2
>>> print (“The sum of the two numbers = ”, sum)
Program 2. Write a program to print the area of a rectangle with length = 8 cm and width
= 10 cm.
>>> length = 8
>>> width = 10
>>> area = length * width
>>> print (“The area of rectangle = ”, area, “sq cm”)
248
Fig. 11.9: Program to print area of a rectangle
Wordbank
We have learned
• In computer programming, data types are used to classify different types of data.
• The data types available in Python are: integer, floating-point number, and string.
• The decimal number is considered as floating-point number.
• In Python, there is no need to explicitly declare a variable.
• Combining two or more strings together is called string concatenation.
• The plus operator (+) is used to concatenate two strings.
• T
he basic arithmetic operators such as + , -, *, /, and % are used to perform arithmetic
operations.
249
Solved Examples
1. Define a variable. 6. E
xplain with an example, how you
can add space while concatenating two
Ans. A
variable is a location in memory that
strings.
has a name and is used to store data or
information. Ans. T
o add a space between two strings, the
double quotation marks “ ” are used. For
2. What are data types?
example, the statements
Ans. D
ata types are used to classify different
>> str1 = “Ajay” + “ “ +
>
types of data.
“Sharma”
3. W
hat is the syntax of assigning a value to
>>> print (str1)
a variable?
will print the output as ‘Ajay Sharma’.
Ans. T
he syntax of assigning value to a variable
is 7. W
hat is an index operator? Write its
syntax.
variable_name = value
4. W
rite a program to define two variables Ans. T
he index operator is used to access an
element in a string. The syntax of the
‘varl’ and ‘var2’ with values as 10 and 20
index operator is
respectively. Also, add the numbers and
print their sum. string[index]
Ans. >>> var1 = 10 ere, index is the integer value that
H
denotes the index of the element you
>>> var2 = 20
wish to access.
>>> sum = var1 + var2
8. What is a slice operator? Write its syntax.
>>> print (“The sum is”,
Ans. T
he slice operator returns the substring
sum)
from the nth character to the mth
5. W
rite a program to display the area of a character. This range includes the nth
square. Take the side of the square as 10 character but excludes the mth character.
cm. The syntax of the slice operator is
Ans. >>> side = 10 slice[n:m]
>>> area = side * side where n and m both are integer values.
>>> print (“The area of the
square =”, area,“sq cm”)
250
Exercises
t 1. Match the columns.
(a) A ___________ is a named memory (d) The ___________ data type is used to
location used to store data. store floating-point numbers.
(b) The ___________ operator returns the (e) A variable name can begin with a letter or
substring from mth to nth character. an _________.
(c) The __________ symbol is used to (f) The joining of two or more strings is
concatenate strings. called _____________.
251
t 5. Answer the following questions. [Short answer type]
(a) What is the use of index operator? (d) What is the use of slice operator? Explain
Explain with an example. with an example.
(b) How can you define a floating-point (e) Consider the string given below:
number in Python? >>> str1 = “I love Python!”
(c) Write V for valid and I for invalid variable rite the output of the following lines of
W
names. code.
(i) _abc (ii) ABC (i) str1[5] (ii) str1 [3:7]
(iii) 1&f (iv) 2var (iii) str1 [:5]
(v) Variable (vi) #var1
252
(iv) on is a programming language (iv) str3 = str1 / str2
l Lab Exercise
c 1. Make a Word file and write all the side of the triangle as 5). [Hint: use x **
important points required to create a 0.5 to find the square root of x]
variable and assign a value to the variable. 3. W
rite a program in Python to calculate
Format the document using as many the total marks obtained by you in all the
features as you can. subjects. Also, find the average marks and
2. W
rite a program in Python to calculate percentage.
the area of an equilateral triangle (take
· Sunita was working with Python. She wrote the following statements:
s
>>> counter = 10
>>> print (counter + 3)
Will the statements run? If yes, give the output.
· Consider the given statements and write the output.
>>> x = 3
>>> y = x + 1
>>> x = 2
>>> print (x, y)
253
12 Introduction to Scratch
A computer can do many amazing things. However, we need to instruct the computer what to do
and how to do it. The language in which the instructions for the computer are written is called a
programming language. There are many programming languages available. In this chapter, we will learn
about Scratch programming language.
Scratch is a visual programming language. It helps children to learn programming concepts in a fun
and interactive way. It is an open-source application, which is freely available and can be downloaded
from the URL https://scratch.mit.edu/download/. The current version of Scratch is 2.0.
Using Scratch, children can create interactive stories, games, and animations. It has a no-code
interface, which indicates that children or users don’t have to write program codes. As an alternative,
they have to drag and drop the blocks and connect them together. Each block has a specific command
and unique function.
STARTING SCRATCH
After downloading and installation, click the Start button and then select the Scratch 2 option.
Did You Know?
254
Alternatively, double-click on the Scratch icon on the desktop. The Scratch editor interface will
appear.
Stage Scripts
area
Menu bar
The Menu bar is located at the top of the window. It shows commands to use the project.
Sprites pane
The Sprites pane shows thumbnails i icon
of all sprites in the project. To select a
sprite, click the sprite in the Sprites list. Sprites list
The letter i on the top left of a sprite
can be clicked to view its info. It also
shows the coordinates of the sprite in
the Cartesian plane. Fig. 12.5: Sprites pane
Adding a sprite
Choose sprite Upload sprite
The cat is the default sprite in Scratch. from library from file
The bar above the Sprites pane can be
used to add new sprites. It has four icons New sprite from
camera
that provide different options for adding a
sprite. Paint new sprite
Choose sprite from library: This option is used to insert a sprite from the Scratch Library. When
you click this icon, the Sprite Library opens up. Choose the desired Category on the left and select the
sprite. Click OK to insert the sprite.
256
Paint new sprite: This
option lets you draw a
new sprite. When you
click this button, the Paint
Editor opens on the right.
Draw the new sprite in the
Paint Editor. The new sprite Paint editor
gets automatically added to
the Sprites list.
Scripts tab
The Scripts tab opens up the Blocks Palette. The
Blocks Palette contains different fragments (blocks) Commands
of code. These code fragments are divided into ten Fig. 12.11: Scripts tab
groups of differently coloured blocks.
Script (Block palette) Description (Actions)
Motion Defines the motion of the sprite like move, turn, and set position
Makes sprite say, think, show, hide, switch pose, backdrop, and change
Looks
colour
Sound Plays different sounds, change volume, and add tempo
Pen Helps to draw (You can keep the pen down and draw images.)
Data Creates a variable name for the sprites
Events Helps control when to run certain scripts
Control Controls statements like if-then, if-then-else, wait, and repeat loops
Sensing Enables the programs to be responsive and enables us to do animations
Helps compute using arithmetic expressions, check for complicated
Operators conditions using logical operators, and draw a random figure or make
random moves or turns—with the same code.
More Blocks Helps create our own blocks
Upload costume
Scripts area from file
New costume from
The Scripts Area is where all scripts are created.
camera
The blocks from the Blocks Palette are dragged
into the Scripts Area to create scripts. To run a
block, click it.
259
Record new sound: This option lets you record sound and add it to the script.
Upload sound from file: This option lets you upload an audio file stored on your computer. When
you click this option, the Select file(s) to upload dialog box opens up. Choose the file you wish to upload
and click Open.
Fig. 12.15: Recording new sound Fig. 12.16: Select file(s) to upload dialog box
Moving a sprite
The Move block is used to move a sprite, as shown in the following steps:
1. Select the Motion group of blocks from the Scripts tab.
2. D
rag and drop the block into the Scripts Area. In this block, we need to specify the
number of steps by which the sprite should move. The default is 10 steps.
3. Click the block to run the script. The cat will move forward by 10 steps.
4. Change the number of steps to 50.
5. Again click the block. The cat will now move forward by 50 steps.
6. Now change the number of steps to –50.
The negative number will make the cat move in the opposite direction.
To remove a block from the script, you could simply drag a block from the script and drop it back in
the toolbox area or right-click the block and select the delete option.
260
2. Click the block. The sprite will turn clockwise by 15o.
3. To turn the sprite by 90o, change the angle of rotation to 90o.
4. Drag and drop the block into the Scripts Area.
5. Click the block. The sprite will turn anticlockwise by 15o.
261
Fig. 12.18: Drawing a vertical line
262
Fig. 12.19: Drawing a square
The repeat block
To perform a command over and over again, the repeat block is used. It is found under the Control
group. The code to be repeated is enclosed inside the repeat block. We have to specify the number of
times the code needs to be repeated. Let us create a simple script that uses the repeat block.
Example 4: To rotate the sprite using the repeat block
1. From the Motion group, drag the block.
2. F
rom the Control group, drag the block and drop it over the block. Fix the
number of repetitions to 50.
3. Click the blocks. You will see that the sprite rotates around itself.
2. F
rom the Motion group, drag the block and plug it into the block.
Change the number of steps to 100.
3. D
rag the block and plug it into the block. Change the angle of rotation
to 90o.
4. F
rom the Control group, drag the block and drop it over the set of above blocks. Fix the
number of repetitions to 4.
5. Click the Motion group and select the block. Change the number of steps to 100.
264
Fig. 12.22: Setting the pen colour
266
Let us take an example to set the position of sprite using the blocks.
1. Drag the block, and fit the block after it.
2. Drag the block, and place it inside the block. Change the value to 50.
3. Move the block into the Scripts Area and place it under the block.
4. Now drag the block and change the value to 70.
5. Move the block and place it beneath the block.
OPENING AN EXISTING
PROJECT
To open an existing project, follow the
given steps:
1. C
lick the File menu and select the
Open option.
2. T
he Open Project dialog box appears.
Select the folder where your file is
stored and click Open.
268
Wordbank
Blocks: Coloured blocks of codes that we move around to make Scratch programs
Script: A group of connected blocks that does its function when you double-click it
Sprite: A Scratch character that is used to create an animation
Stage: The area where you run the program codes
We have learned
Solved Examples
1. Which button is used to stop a script? 4. W
hat is the file extension of a Scratch
project?
Ans. T
he red button on the top right corner of
the Stage is used to stop a script. Ans. T
he file extension of a Scratch project is
.sb2.
2. W
hich group helps the sprite to change
colour? 5. H
ow can you paint a new sprite?
Mention the steps.
Ans. T
he Looks group helps the sprite to
change colour. Ans. T
he steps to draw a new sprite are as
follows:
3. How can you save a project?
(a) M
ove the mouse pointer in the
Ans. The steps to save a project are as follows:
Sprites area.
(a) Click the File menu.
(b) Click the Paint new sprite button.
(b) C
lick the Save as option. If you are
(c) T
he Paint editor window will open
saving the file for the first time, the
on the right.
Save Project dialog box opens up.
(d) Draw the scratch you wish to add.
(c) T
ype in the name of the project in
the File name box.
(d) Click the Save button.
269
6. W
rite the steps to upload a backdrop from 7. W
hat are the three ways to add sound
file. under the Sounds tab?
Ans. The steps are as follows: Ans. The three ways are as follows:
(a) C
lick the Upload backdrop from file (a) Choose sound from library
option under New backdrop. (b) Record new sound
(b) T
he Select file(s) to upload dialog (c) Upload sound from file
box opens up.
8. W
hich option in the File menu will you
(c) S
elect the location and choose the click to move out of the Scratch window?
desired file.
Ans. T
he Exit option is used to close the
(d) C
lick Open. The selected file will be Scratch window.
opened.
Exercises
t 1. Match the columns.
(a) The flag is used to run a (e) The tab lets you
script. change the look of the sprite.
(b) A is a character that is (f) T
he area shows the
used to create an animation. preview the project.
(c) The part of the (g) The repeat command is found under the
Scratch screen contains blocks. block.
(d) The block lets you
play different sounds, stop, or change
volume.
270
t 3. State the following as true or false.
(a) Scratch is a visual programming language. (e) Sprites are a set of commands that are
dragged into the Scripts Area to create
(b) A sprite is a graphic element that is an
scripts.
orange cat by default.
(f) A
script is a Scratch character that is used
(c) The red flag is used to run a script.
to create an animation.
(d) You can create your own blocks in
(g) The value of the x coordinate ranges
Scratch.
from –240 to 240.
271
(d) Which block helps the sprite to add and (iii) Scripts (iv) Stage
subtract numbers? (f) W
hat are the x- and y-coordinate values
(i) Operators (ii) Sensing at the middle of the stage?
(iii) Control (iv) Events (i) (0, 180) (ii) (180, 0)
(e) Which tab opens up the Block palette? (iii) (0, 0) (iv) (240, 0)
(i) Sounds (ii) Costumes
l Lab Exercise
c 1. Create an animation where the cat turns 60 50 steps forward and turns around by 90
degrees and then starts moving 30 steps. degrees.
It should return to its original position after
2. C
reate a Scratch project where the cat moves
turning around the stage in a square.
around by making a different sound every
time it moves 100 steps. 4. W
rite a Scratch script to change the position
of the x-coordinate.
3. Create an animation of a cat where it moves
272
Answers to Exercises
Chapter 1
1. Match the columns.
(a) (iv) (b) (v) (c) (vi) (d) (i) (e) (vii)
(f ) (ii) (g) (iii)
(a) True (b) True (c) False (d) False (e) False
(a) (iii) (b) (iii) (c) (ii) (d) (iii) (e) (iv)
(f ) (i) (g) (iii) (h) (iii) (i) (ii) ( j) (ii)
(k) (i) (l) (i) (m) (ii) (n) (ii) (o) (i); (ii)
(p) (i); (iii) (q) (i); (ii); (iv) (r) (iii) (s) (iii) (t) (ii); (iii)
Chapter 2
(a) (vi) (b) (v) (c) (i) (d) (ii) (e) (iii)
(f ) (iv)
(a) False (b) False (c) False (d) True (e) False
273
7. Select the correct alternative(s).
(a) (ii) (b) (ii) (c) (ii) (d) (ii) (e ) (ii)
(f) (ii) (g) (ii) (h) (iv) (i) (ii); (iii) (j) (ii)
(k) (i) (l) (iv)
Chapter 3
(a) (ii) (b) (iii) (c) (vi) (d) (v) (e) (i)
(f ) (iv)
(a) True (b) False (c) True (d) False (e) False
(a) (ii); (iii) (b) (ii); (iii) (c) (i); (ii); (iv) (d) (i); (iii) (e) (i); (ii)
(f ) (ii) (g) (iii) (h) (i) (i) (iii) ( j) (i)
(k) (iii) (l) (ii) (m) (i) (n) (i) (o) (iii)
(p) (ii) (q) (iv) (r) (iii) (s) (iii) (t) (i)
Chapter 4
(a) (vi) (b) (viii) (c) (iv) (d) (vii) (e) (ii)
(f ) (i) (g) (iii) (h) (v)
274
3. State the following as true or false.
(a) True (b) False (c) False (d) True (e) False
(f ) False (g) True (h) True (i) False ( j) True
(a) (iii) (b) (ii) (c) (iii) (d) (ii) (e) (ii)
(f ) (iv) (g) (iii) (h) (iii) (i) (iii) ( j) (ii)
(k) (iii) (l) (iv) (m) (ii) (n) (iii) (o) (iii)
(p) (ii) (q) (iii) (r) (iii) (s) (iii) (t) (i)
Chapter 5
(a) (v) (b) (iv) (c) (i) (d) (ii) (e) (iii)
(a) Virus (b) Antivirus (c) Firewall (d) Hacker (e) Worms
(a) True (b) False (c) False (d) True (e) False
Chapter 6
(a) (v) (b) (viii) (c) (vi) (d) (iii) (e) (vii)
(f ) (iv) (g) (ii) (h) (ix) (i) (i)
275
3. State the following as true or false.
(a) True (b) True (c) True (d) False (e) False
(f ) False (g) True (h) False (i) True ( j) False
(a) (iv) (b) (ii) (c) (ii) (d) (i) (e) (iii)
(f ) (iv) (g) (iii) (h) (iii) (i) (ii) ( j) (iv)
(k) (ii) (l) (iii) (m) (iv) (n) (i) (o) (ii)
(p) (i) (q) (iii) (r) (iii) (s) (ii) (t) (iv)
Chapter 7
(a) (iv) (b) (vii) (c) (v) (d) (vi) (e) (viii)
(f ) (ii) (g) (iii) (h) (i)
(a) False (b) True (c) False (d) True (e) False
(f ) True (g) True (h) True
(a) (ii) (b) (iv) (c) (iv) (d) (iv) (e) (iii)
(f ) (iii) (g) (i) (h) (ii) (i) (iii) ( j) (iii)
(k) (iv) (l) (i) (m) (ii) (n) (ii) (o) (iv)
(p) (ii) (q) (iii) (r) (iv) (s) (iv) (t) (iii)
Chapter 8
(a) (vi) (b) (iv) (c) (v) (d) (i) (e) (ii)
(f ) (iii)
276
2. Fill in the blanks.
(a) True (b) False (c) False (d) True (e) True
(f ) True (g) True (h) True (i) False ( j) True
(a) (iv) (b) (iv) (c) (iii) (d) (iii) (e) (ii)
(f ) (iii) (g) (ii) (h) (iii) (i) (i) ( j) (i)
(k) (iii) (l) (i) (m) (ii) (n) (iii) (o) (i)
(p) (iii) (q) (iii) (r) (ii) (s) (iv) (t) (iv)
Chapter 9
(a) (iii) (b) (iv) (c) (vii) (d) (ii) (e) (vi)
(f ) (x) (g) (v) (h) (ix) (i) (i) (j) (viii)
(a) True (b) False (c) True (d) False (e) False
(f ) False (g) False (h) False (i) True (j) True
(a) (iii) (b) (i) (c) (ii) (d) (i) (e) (iv)
(f ) (i) (g) (iv) (h) (iv) (i) (iv) ( j) (iii)
(k) (iv) (l) (iii) (m) (i) (n) (ii) (o) (ii)
277
(p) (iv) (q) (iii) (r) (i) (s) (ii) (t) (ii)
(u) (iii) (v) (iii) (w) (iii) (x) (iii)
Chapter 10
(a) (ii) (b) (v) (c) (i) (d) (iii) (e) (iv)
(a) False (b) False (c) False (d) True (e) False
(f) False (g) True (h) True (i) False
Chapter 11
(a) (iii) (b) (iv) (c) (v) (d) (i) (e) (ii)
(a) True (b) False (c) True (d) False (e) True (f) True
(a) (iv) (b) (iii) (c) (i) (d) (ii) (e) (iii)
278
Chapter 12
(a) (iv) (b) (iii) (c) (ii) (d) (v) (e) (i)
279
SAMPLE QUESTION PAPER-I
Computer Applications
Class IX
Max. Marks : 30
280
SAMPLE QUESTION PAPER-II
Computer Applications
Class IX
Max. Marks : 30
1. Write the expanded form of ROM and RAM. [1]
2. Write any two examples of operating systems. [1]
3. Explain MIN() and MAX() functions. [1]
4. Name any two types of charts. [1]
5. Define the term ‘multimedia’. [1]
6. Write the keyboard shortcut to create a new document in a word processor. [1]
7. Name any two secondary storage devices. [1]
8. Define the term ‘cybercrime’. [1]
9. Write the steps to insert/delete a row in a table. [2]
10. How can you protect your identity for safe browsing? [2]
11. How can you protect yourself from cyberstalking? Write any three points. [3]
12. Write any five ways to protect your system from a virus. [5]
13. Answer the following questions based on Scratch:
a. What does the command do? [1]
b. What is the ‘costumes’ option? [1]
c. What is the role of stage and sprite? [2]
d. Differentiate between repeat and forever control block. [2]
e.
281
SAMPLE QUESTION PAPER-III
Computer Applications
Class IX
Max. Marks : 30
1. Describe the agencies for reporting cybercrimes. [2]
2. Name the most important part of the CPU which is capable of executing arithmetic operations. [1]
3. What are the tips to create a secure password? [3]
4. Sarita wants to send birthday invites to 10 of her friends. She wants to create the invites using mail
merge. Name the two kinds of files she would require to do the task and define them briefly. [2]
5. Name any one non-impact printer. [1]
6. Write the ways in which identity theft can happen. [3]
7. “RAM is a Volatile Memory”. Explain. [1]
8. Name the cells included in the range AZ25:BB27. [1]
9. What is DoS attack? Give a few examples. [2]
10. Differentiate between application software and utility software. [2]
11. What are alignments in the context of an OpenOffice text document? [1]
12. Pratima wants to record her observations of increased level of pollutants in the city, recorded every
month, and make a comparative study after one year. Which software of OpenOffice should she use
for the same? [1]
13. Answer the following questions based on Python. (For children with special needs)
a. What is a comment? Explain with an example. [2]
b. Briefly describe Python Development Environment. [4]
c. Write a program to find the remainder on dividing 234 by 4. [4]
OR
Answer the following questions based on Scratch:
a. What is the function of Operators in Block palette? [1]
b. How can you draw a parallelogram in Scratch? Write the steps. [5]
282
SAMPLE QUESTION PAPER-IV
Computer Applications
Class IX
Max. Marks : 30
1. What is a malware attack? Explain. [3]
2. What is data transmission? [1]
3. What do you understand by identity theft? [2]
4. Give one point of difference between the normal view and handout view in a presentation. [1]
5. What is the main function of an antivirus? Give few examples of antivirus software. [3]
6. Discuss the geographical scopes of LAN, WAN, and MAN. [2]
7. Define firewall. [2]
8. What are the different arithmetic operators available in a spreadsheet program?
Give an example by forming an expression using these operators. [2]
9. Name the toolbar which has the options to make the selected text bold or italics. [1]
10. Radhika has just purchased a PC. What should be the first software that needs to
be installed on her PC? [1]
11. What is wireless fidelity (Wi-Fi)? [1]
12. What is the function of the Tasks Pane in OpenOffice Impress? [1]
13. Answer the following questions based on Scratch:
a. Explain different Block palettes. [5]
b. What output will you get on executing the following: [1]
283
OR
Answer the following questions based on Python. (For children with special needs)
a. Explain some of the features of Python. [4]
b. Briefly explain about string subset. [3]
c. What are basic rules of naming a variable in Python? [2]
d. What is an escape sequence? [1]
284
Notes
285
Notes
286