11th Computer Application EM Text
11th Computer Application EM Text
COMPUTER APPLICATIONS
Content Creation
The wise
possess all
II
III
COLLEGES/
COURSES PROFESSION
UNIVERSITIES
Software Engineer, Hardware
All University and their affiliated
Engineer, Software
B.E / B.Tech Colleges and Self financing Colleges in
Development, Healthcare
India and Abroad.
Section, IT & ITEs
Science and Humanities
B.Sc (Computer Science)
BCA
B.Sc ( Maths, Physics, Chemistry, All University and their affiliated Government Job and Private
Bio-Chemistry, Geography, Colleges and Self financing Colleges in Company BPO, Geologist,
journalism, Library Sciences, India and Abroad. Journalist
Political Science, Travel and
Tourism)
LAW
LLB
B.A+LLB All University and their affiliated
Lawyer, Legal Officer, Govt
B.Com Colleges and Self financing Colleges in
Job
BBM+LLB India and Abroad.
BBA+LLB
The Institute of Chartered Accountant
CA CA Private and Govt.
of India (ICAI)
Government Polytechnic and Self- Junior Engineer (Government
Diploma
financing colleges and Private)
Commerce Courses
B.com-Regular,
B.com-Taxation & Tax Procedure,
B.com-Travel &Tourism,
B.com-Bank Management,
B.com-Professional,
BBA/BBM-Regular,
BFM- Bachelors in Financial
Private Organization ,
Markets, All University and their affiliated
Government ,Banking sectors
BMS-Bachelors in Management Colleges and Self financing Colleges in
and prospects for self –
Studies, India and Abroad.
employment.
BAF- Bachelors in Accounting &
Finance,
Certified Stock Broker &
Investment Analysis,
Certified Financial Analyst,
Certified Financial Planner,
Certified Investment Banker
IV
LAW
LLB
Lawyer, Legal Officer, Private
B.A+LLB All University and their affiliated
Organization , Government,
B.Com Colleges and Self financing Colleges in
Banking sectors and prospects
BBM+LLB India and Abroad.
for self – employment
BBA+LLB
CA-Chartered Accountant
CA, Private Organization,
CMA-Cost Management
The Institute of Chartered Accountant Government ,Banking sectors
Accountant.
of India (ICAI) and prospects for self –
CS-Company Secretary
employment.
(Foundation)
Science and Humanities
B.Sc.Botany
B.Sc.Zoology
B.Sc.Dietician & Nutritionist
B.Sc.Home Science
B.Sc.Food Technology All University and their affiliated Government Job and Private
B.Sc.Dairy Technology Colleges and Self financing Colleges in Company BPO, Geologist,
B.Sc. Hotel Management India and Abroad Journalist
B.Sc. Fashion Design
B.Sc. Mass Communication
B.Sc. Multimedia
B.Sc. -3D Animation
LAW
LLB
B.A+LLB All University and their affiliated
Lawyer, Legal Officer, Govt
B.Com Colleges and Self financing Colleges in
Job
BBM+LLB India and Abroad.
BBA+LLB
The Institute of Chartered Accountant
CA CA Private and Govt.
of India (ICAI)
Government Polytechnic and Self- Junior Engineer (Government
Diploma
financing colleges and Private)
E - book Assessment
VI
• Big in size
First 1940- • Consumed more power
1
Generation 1956 • Malfunction due to overheat
• Machine Language was used
Vacuum tubes
Multimedia Projectors:
Multimedia projectors are used to
produce computer output on a big screen.
These are used to display presentations in
Figure 1.19 Laser Printer meeting halls or in classrooms.
Inkjet Printers:
Inkjet Printers use colour cartridges
which combined Magenta, Yellow and Cyan
inks to create color tones. A black cartridge
is also used for monochrome output. Inkjet
printers work by spraying ionised ink at a
sheet of paper. The speed of Inkjet printers
generaly range from 1-20 PPM (Page Per
Figure 1.22 Multimedia Projector
Minute).
9
10
Internet Resources
(1) www.wikipedia.org
(2) https://www.computerhope.com/jargon/c/computer.html
Prepare a comparative study of various computers of past and present with respect
to speed, memory, size, power consumption and other features
12
13
• To know how the computer interprets Computer handles data in the form
and stores data in the memory. of ‘0’(Zero) and ‘1’ (One). Any kind of data
• To learn various data representations like number, alphabet, special character
and binary arithmetic. should be converted to ‘0’ or ‘1’ which can
• To learn conversion between various be understood by the Computer. ‘0’ and
Number Systems. ‘1’ that the Computer can understand is
2.1 Introduction called Machine language. ‘0’ or ‘1’ are
called ‘Binary Digits’(BIT). Therefore,
The term data comes from the the study of data representation in the
word datum, which means a raw fact. The computer is important.
data is a fact about people, places or some • A bit is the short form of Binary digit
objects. which can be ‘0’ or ‘1’. It is the basic
Example: unit of data in computers.
Let ‘Name’, ‘Age’, ‘Class’, ‘Marks’ • A nibble is a collection of 4 bits (Binary
and ‘Subject’ be some defined variables. digits).
Now, let us assign a value to each of these • A collection of 8 bits is called Byte.
variables. A byte is considered as the basic unit
of measuring the memory size in the
Name = Rajesh computer.
Age = 16 • Word length refers to the number of
Class = XI bits processed by a Computer’s CPU.
Mark = 65 For example, a word length can have 8
Subject = Computer Science bits, 16 bits, 32 bits and 64 bits (Present
day Computers use 32 bits or 64 bits)
Figure 2.1 Example for Data Bit
(0 or 1)
14
Number Systems
Base value
16
(0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)
15
16
2. State whether the following numbers are valid or not. If invalid, give reason.
S.No. Statement Yes / No Reason (If invalid)
1. 786 is an Octal number
2. 101 is a Binary number
3. Radix of Octal number is 7
17
Note: Fraction repeats, the product is the Convert (111011)2 into its
same as in the first step. equivalent decimal number.
Write the integer parts from
top to bottom to obtain the equivalent Weight 32 16 8 4 2 1
fractional binary number. Hence Positional
25 24 23 22 21 20
(0.2)10=(0.00110011…)2 = (0.00110011)2 Notation
Given
1 1 1 0 1 1
number
19
{
{
3 011
3 D 6
4 100
(1111010110)2 = (3D6)16
5 101
6 110
2.4.8 C onversion of fractional Binary to
7 111
Decimal equivalent
Example Follow the steps to convert
Convert (11010110)2 into octal fractional Binary number to its Decimal
equivalent number equivalent.
Step 1: Group the given number into 3 Step 1: Convert integral part of Binary
bits from right to left. to Decimal equivalent using
011 010 110 positional notation method
(Procedure is same as discussed in
Note: The left most groups have less
2.4.5)
than 3 bits, so 0 is added to its left
Step 2: To convert the fractional part of
to make a group of 3 bits.
binary to its decimal equivalent.
Step-2: Find Octal equivalent of each
Step 2.1: Write down the Binary
group
digits in the fractional part
011 010 110 Step 2.2: For all the digits write
{
{
{
Workshop
4. Convert the given Binary number 110 010 001 011
into its equivalent Decimal, Octal and (6213)8=(110010001011)2
Hexadecimal number.
1) 101110101 2) 1011010 3) 101011111
Workshop
2.4.9. Octal to Decimal Conversion
5. Convert the following Octal numbers
To convert Octal to Decimal, we
into Binary numbers.
can use positional notation method.
(A) 472 (B) 145 (C) 347
1. Write down the Octal digits and list the
(D) 6247 (E) 645
powers of 8 from right to left(Positional
Notation)
21
22
}
1 0 1 1 Example Substract 10010102 – 101002
10
+ 1 0 0 1 0 1 10 0 10
1 0 1 0 0 1 0 0 1 0 1 0
10112 + 10012 = 101002 (-) 1 0 1 0 0
Example Perform Binary addition for the
1 1 0 1 1 0
following: 2310 + 1210
Step 1: Convert 23 and 12 into binary form Example Perform binary addition for the
following: (–21)10 + (5)10
2310
Step 1: Change -21 and 5 into binary form
2’s power 16 8 4 2 1 2110
Binary Number 1 0 1 1 1
2310 = 000101112 2’s power 16 8 4 2 1
Binary Number 1 0 1 0 1
1210 2110 = 000101012
2’s power 8 4 2 1 510
Binary Number 1 1 0 0
1210 = 000011002 2’s power 4 2 1
Binary Number 1 0 1
Step 2: Binary addition of 23 and 12:
510 = 000001012
Carry Bit → 1 1 1
Step 2:
2310 = 0 0 0 1 0 1 1 1
2110 0 0 0 1 0 1 0 1
1210 = 0 0 0 0 1 1 0 0
1’s Compliment 1 1 1 0 1 0 1 0
3510 = 0 0 1 0 0 0 1 1 2’s Compliment 1 1 1 0 1 0 1 1
2.6.2 Binary Substraction Step 3:
The table for Binary Substraction is Binary Addition of –21 and 5 :
as follows: Carry bit 1 1 1 1
A B Difference Borrow -2110 1 1 1 0 1 0 1 1
(A-B)
510 0 0 0 0 0 1 0 1
0 0 0 0
-1610 (Result) 1 1 1 1 0 0 0 0
1 0 1 0
1 1 0 0 Workshop
0 1 1 1
8. Perform the following binary
When substracting 1 from 0, borrow
computations:
1 from the next Most Significant Bit, when
borrowing from the next Most Significant (A) 1010 + 1510 (B) –1210 + 510
Bit, if it is 1, replace it with 0. If the next Most (C) 1410 – 1210 (D) (–210) – (–610)
24
25
0B8 0B9 0BA 0BB 0BC 0BD 0BE 0BF 0D0 0D1 0D2 0D3 0D4 0D5 0D6 0D7
0 ஐ ர $ீ ௐ ௰ 0 $ഀ ഐ ഠ ര $ീ ൠ ൰
0B90 0BB0 0BC0 0BD0 0BF0 0D00 0D10 0D20 0D30 0D40 0D60 0D70
1 ற $
ு ௱ 1 $ഁ ഡ റ $ു ൡ ൱
0BB1 0BC1 0BF1 0D01 0D21 0D31 0D41 0D61 0D71
2 $ஂ ஒ $
ல ூ ௲ 2 $ം ഒ ഢ ല $ൂ $ൢ ൲
0B82 0B92 0BB2 0BC2 0BF2 0D02 0D12 0D22 0D32 0D42 0D62 0D72
3 ஃ ஓ ண ள ௳ 3 $ഃ ഓ ണ ള $ ൃ $ൣ ൳
0B83 0B93 0BA3 0BB3 0BF3 0D03 0D13 0D23 0D33 0D43 0D63 0D73
4 ஔ த ழ ௴ 4 ഔ ത ഴ $ൄ ൔ ൴
0B94 0BA4 0BB4 0BF4 0D14 0D24 0D34 0D44 0D54 0D74
5 அ க வ ௵ 5 അ ക ഥ വ ൕ ൵
0B85 0B95 0BB5 0BF5 0D05 0D15 0D25 0D35 0D55 0D75
6 ஆ ஶ $ெ ௦ ௶ 6 ആ ഖ ദ ശ $െ ൖ ൦ ൶
0B86 0BB6 0BC6 0BE6 0BF6 0D06 0D16 0D26 0D36 0D46 0D56 0D66 0D76
7 இ ஷ $ே $ௗ ௧ ௷ 7 ഇ ഗ ധ ഷ $ േ $ൗ ൧ ൷
0B87 0BB7 0BC7 0BD7 0BE7 0BF7 0D07 0D17 0D27 0D37 0D47 0D57 0D67 0D77
8 ஈ ந ஸ $ை ௨ ௸ 8 ഈഘ ന സ $ൈ ൘ ൨ ൸
0B88 0BA8 0BB8 0BC8 0BE8 0BF8 0D08 0D18 0D28 0D38 0D48 0D58 0D68 0D78
9 உ ங ன ஹ ௩ ௹ 9 ഉ ങ ഩ ഹ ൙ ൩ ൹
0B89 0B99 0BA9 0BB9 0BE9 0BF9 0D09 0D19 0D29 0D39 0D59 0D69 0D79
A ஊ ச ப $ொ ௪ ௺ A ഊ ച പ ഺ $ൊ ൚ ൪ ൺ
0B8A 0B9A 0BAA 0BCA 0BEA 0BFA 0D0A 0D1A 0D2A 0D3A 0D4A 0D5A 0D6A 0D7A
B $ோ ௫ B ഋ ഛ ഫ $഻ $ോ ൛ ൫ ൻ
0BCB 0BEB 0D0B 0D1B 0D2B 0D3B 0D4B 0D5B 0D6B 0D7B
C ஜ $ௌ ௬ C ഌ ജ ബ $഼ $ൌ ൜ ൬ ർ
0B9C 0BCC 0BEC 0D0C 0D1C 0D2C 0D3C 0D4C 0D5C 0D6C 0D7C
D $் ௭ D ഝ ഭ ഽ $് ൝ ൭ ൽ
0BCD 0BED 0D1D 0D2D 0D3D 0D4D 0D5D 0D6D 0D7D
E எ ஞ ம $ா ௮ E എ ഞ മ $ാ ൎ ൞ ൮ ൾ
0B8E 0B9E 0BAE 0BBE 0BEE 0D0E 0D1E 0D2E 0D3E 0D4E 0D5E 0D6E 0D7E
F ஏ ட ய $ி ௯ F ഏ ട യ $ി ൟ ൯ ൿ
0B8F 0B9F 0BAF 0BBF 0BEF 0D0F 0D1F 0D2F 0D3F 0D4F 0D5F 0D6F 0D7F
26
0C0 0C1 0C2 0C3 0C4 0C5 0C6 0C7 0C8 0C9 0CA 0CB 0CC 0CD 0CE 0CF
0 $ఀ ఐ ఠ ర $ీ ౠ 0 ಀ ಐ ಠ ರ $ೀ ೠ
0C00 0C10 0C20 0C30 0C40 0C60 0C80 0C90 0CA0 0CB0 0CC0 0CE0
1 $ఁ డ ఱ $ు ౡ 1 $ಁ ಡ ಱ $ು ೡ ೱ
0C01 0C21 0C31 0C41 0C61 0C81 0CA1 0CB1 0CC1 0CE1 0CF1
2 $ం ఒ ఢ ల $ూ $ౢ 2 $ಂ ಒ ಢ ಲ $ೂ $ೢ ೲ
0C02 0C12 0C22 0C32 0C42 0C62 0C82 0C92 0CA2 0CB2 0CC2 0CE2 0CF2
3 $ః ఓ ణ ళ $ృ $ౣ 3 $ಃ ಓ ಣ ಳ $ೃ $ೣ
0C03 0C13 0C23 0C33 0C43 0C63 0C83 0C93 0CA3 0CB3 0CC3 0CE3
4 ఔ త $ౄ 4 ಔ ತ $ೄ
0C14 0C24 0C34 0C44 0C94 0CA4 0CC4
5 అ క థ వ $ౕ 5 ಅ ಕ ಥ ವ $ೕ
0C05 0C15 0C25 0C35 0C55 0C85 0C95 0CA5 0CB5 0CD5
6 ఆ ఖ ద శ $ె $ౖ ౦ 6 ಆ ಖ ದ ಶ $ೆ $ೖ ೦
0C06 0C16 0C26 0C36 0C46 0C56 0C66 0C86 0C96 0CA6 0CB6 0CC6 0CD6 0CE6
7 ఇ గ ధ ష $ే ౧ 7 ಇ ಗ ಧ ಷ $ೇ ೧
0C07 0C17 0C27 0C37 0C47 0C67 0C87 0C97 0CA7 0CB7 0CC7 0CE7
8 ఈ ఘ న స $ై ౘ ౨ ౸ 8 ಈ ಘ ನ ಸ $ೈ ೨
0C08 0C18 0C28 0C38 0C48 0C58 0C68 0C78 0C88 0C98 0CA8 0CB8 0CC8 0CE8
9 ఉ ఙ హ ౙ ౩ ౹ 9 ಉ ಙ ಹ ೩
0C09 0C19 0C39 0C59 0C69 0C79 0C89 0C99 0CB9 0CE9
A ఊ చ ప $ొ ౚ ౪ ౺ A ಊ ಚ ಪ $ೊ ೪
0C0A 0C1A 0C2A 0C4A 0C5A 0C6A 0C7A 0C8A 0C9A 0CAA 0CCA 0CEA
B ఋ ఛ ఫ $ో ౫ ౻ B ಋ ಛ ಫ $ೋ ೫
0C0B 0C1B 0C2B 0C4B 0C6B 0C7B 0C8B 0C9B 0CAB 0CCB 0CEB
C ఌ జ బ $ౌ ౬ ౼ C ಌ ಜ ಬ $಼ $ೌ ೬
0C0C 0C1C 0C2C 0C4C 0C6C 0C7C 0C8C 0C9C 0CAC 0CBC 0CCC 0CEC
D ఝ భ ఽ $్ ౭ ౽ D ಝ ಭ ಽ $್ ೭
0C1D 0C2D 0C3D 0C4D 0C6D 0C7D 0C9D 0CAD 0CBD 0CCD 0CED
E ఎ ఞ మ $ా ౮ ౾ E ಎ ಞ ಮ $ಾ ೞ ೮
0C0E 0C1E 0C2E 0C3E 0C6E 0C7E 0C8E 0C9E 0CAE 0CBE 0CDE 0CEE
F ఏ ట య $ి ౯ ౿ F ಏ ಟ ಯ $ಿ ೯
0C0F 0C1F 0C2F 0C3F 0C6F 0C7F 0C8F 0C9F 0CAF 0CBF 0CEF
27
28
Numerals
29
30
31
the Central Processing Unit, storage devices Figure 3.1 A Microprocessor - Based System
and primary memory. It is concerned with The microprocessor is made up of 3
how the various components of computer main units. They are:
hardware operate. It also deals with how
• Arithmetic and Logic unit (ALU):
they are interconnected to implement
To perform arithmetic and logical
an architectural specification. The term
instructions based on computer
computer organisation looks similar to
instructions.
the term computer architecture. But,
computer architecture deals with the
32
Speed Measurement
Hertz – abbreviated as Hz is the standard unit of measurement used for measuring
frequency. Since frequency is measured in cycles per second, one hertz equals one
cycle per second.
Hertz is commonly used to measure wave frequencies, such as sound waves, light waves,
and radio waves. For example, the average human ear can detect sound waves between 20 and
20,000 Hz. Sound waves close to 20 Hz have a low pitch and are called "bass" frequencies.
Sound waves above 5,000 Hz have a high pitch and are called "treble" frequencies.
While hertz can be used to measure wave frequencies, it is also used to measure the
speed of computer processors. For example, each CPU is rated at a specific clock speed. This
number indicates how many instruction cycles the processor can perform in every second.
Since modern processors can perform millions or even billions of instructions per second,
clock speeds are typically measured in megahertz or gigahertz.
instruction set carries out the following is called its word size. Word size
types of operations: determines the amount of RAM that
• Data transfer can be accessed by a microprocessor.
3.3 Data communication between
• Arithmetic operations CPU and memory
• Logical operations
The Central Processing Unit(CPU)
• Control flow has a Memory Data Register (MDR) and
• Input/output a Memory Address Register (MAR). The
Memory Data Register (MDR) keeps the data
c) Word Size which is transferred between the Memory
• The number of bits that can be processed and the CPU. The Program Counter (PC)
by a processor in a single instruction is a special register in the CPU which always
keeps the address of the next instruction to be
33
The read operation transfers the The size of the instruction set
data(bits) from word to Memory Data is important consideration while
Register. The write operation transfers the categorizing microprocessors.There are
data(bits) from Memory Data Register to two types of microprocessors based on
word. their instruction sets.
•
Reduced Instruction Set Computers
If 5V is applied at one end of (RISC)
a wire, the other end also can
receive 5V. In the same way, •
Complex Instruction Set Computers
the buses are wires, and the (CISC)
binary data are voltages (5V as 1 and
0V as 0), and these buses can simply Examples of RISC processors are
pass the data as voltages from one end Pentium IV, Intel P6, AMD K6 and K7.
to other.
Examples of CISC processors are Intel
386 & 486, Pentium, Pentium II and III,
3.4 Types of Microprocessors
and Motorola 68000.
Microprocessors can be classified
3.5 Memory Devices
based on the following criteria:
• The width of data that can be processed A memory is just like a human
brain. It is used to store data and
• The instruction set instructions. Computer memory is the
storage space in the computer, where data
3.4.1 Classification of Microprocessors and instructions are stored. There are two
based on the Data Width types of accessing methods to access (read
or write) the memory. They are sequential
Depending on the data width, access and random access. In sequential
microprocessors can process instructions. access, the memory is accessed in an
The microprocessors can be classified as
34
Cache aci d L
e a ity,
low er
the computer and perform diagnostics are
ess ca
er cost
Main Memory
acc aller
Hard Disk
the computer. Once the data has been
Figure 3.6 Memory Hierarchy written onto a ROM chip, it cannot be
modified or removed and can only be
3.5.1 Random-Access Memory (RAM)
read. ROM retains its contents even when
The main memory is otherwise
the computer is turned off. So, ROM is
called as Random Access Memory. This
called as a non-volatile memory.
is available in computers in the form of
Integrated Circuits (ICs). It is the place in 3.5.3.1 Programmable Read Only Memory
a computer where the Operating System, (PROM)
Application Programs and the data in Programmable read only memory is
current use are kept temporarily so that also a non-volatile memory on which data
they can be accessed by the computer’s can be written only once. Once a program
processor. The smallest unit of information has been written onto a PROM, it remains
that can be stored in the memory is called there forever. Unlike the main memory,
as a bit. The memory can be accessed by PROMs retain their contents even when
a collection of 8 bits which is called as a the computer is turned off.
byte. The PROM differs from ROM.
RAM is a volatile memory, which PROM is manufactured as a blank
means that the information stored in it is memory, whereas a ROM is programmed
not permanent. As soon as the power is during the manufacturing process itself.
turned off, whatever data that resides in PROM programmer or a PROM burner is
RAM is lost. It allows both read and write used to write data to a PROM chip. The
operations. process of programming a PROM is called
3.5.2 Types of RAM burning the PROM.
There are two basic types of RAM 3.5.3.2 Erasable Programmable Read
• Dynamic RAM (DRAM) Only Memory (EPROM)
• Static RAM (SRAM) Erasable Programmable Read Only
These two types differ in the Memory is a special type of memory which
35
Main
CPU Cache
Memory
Fast Slow
Figure 3.8 Cache Memory Arrangement
Figure 3.7 Erasable Programmable Read
3.6 Secondary Storage Devices
Only Memory
Most of the EPROM chips A computer generally has limited amount of
have a transparent area at the main memory which is expensive and volatile.
top surface which is covered To store data and programs permanently,
by stickers. If it gets removed, the secondary storage devices are used. Secondary
ultraviolet light in the sunlight may storage devices serve as a supportive storage
erase the contents. to main memory and they are non-volatile
in nature, secondary storage is also called as
3.5.3.3 Electrically Erasable Programmable Backup storage
Read Only Memory (EEPROM) 3.6.1 Hard Disk
Electrically Erasable Programmable Hard disk is a magnetic disk on which
Read Only Memory is a special type of you can store data. The hard disk has the
PROM that can be erased by exposing it stacked arrangement of disks accessed by a
to an electrical charge. Like other types of pair of heads for each of the disks. The hard
PROM, EEPROM retains its contents even disks come with a single or double sided disk.
when the power is turned off. Comparing 3.6.2 Compact Disc (CD)
with all other types of ROM, EEPROM is A CD or CD-ROM is made from 1.2
slower in performance. millimeters thick, polycarbonate plastic
3.5.4 Cache Memory material. A thin layer of aluminium or
The cache memory is a very high speed gold is applied to the surface. CD data is
and expensive memory, which is used to speed represented as tiny indentations known as
36
Fig 3.10 Digital Versatile Disc Fig 3.12 Blu- Ray Disc
3.6.4 Flash Memory Devices 3.7 Ports and Interfaces
Flash memory is an electronic
(solid-state) non-volatile computer storage The Motherboard of a computer
medium that can be electrically erased and has many I/O sockets that are connected
reprogrammed. They are either EEPROM or to the ports and interfaces found on the
EPROM. Examples for Flash memories are rear side of a computer (Figure 3.13). The
pendrives, memory cards etc. Flash memories external devices can be connected to the
can be used in personal computers, Personal ports and interfaces. The various types of
Digital Assistants (PDA), digital audio ports are given below:
37
38
Address bus Address bus is a collection of wires that carry the address as bits
40
41
ent
t
to extract what the user wants it do. nag ity Key
em
Ma ecur
Management
Starting computer operation
ess t
Memory
oc men
on (Booting).
M
Tole
ran
Faul ce
Controlling Input and Output Devices t
42
43
First the job “A” will be assigned System level security is offered by
and then job “B” gets its turn. the password in a multi-user environment.
44
46
A) ext2
B) NTFS
References
C) FAT
1) Silberschatz, galvin gagne, Operating
D) NFTS System concepts – john wiley&sons,inc
Part – II 2) Andrew s. Tanenbaum, modern
Very Short Answers Operating Systems – pearson
1) List out any two uses of Operating publication
System? 3) Andrew s. Tanenbaum , Operating
2) What is multi-user Operating System? Systems design and implementation,
prentice hall publication
3) What is a GUI?
4) Tom anderson, Operating Systems:
4) What are the security management
principles and practice, recursive
features available in Operating System ?
books
5) What is multi-processing?
5) Thomas w. Doeppner, Operating
6) What are the different Operating Systems in depth: design and
Systems used in computer? programming, john wiley & sons, inc
47
48
Windows
• Designed to act as servers in network.
NT
49
50
Application Icon
Task bar
51
Document Area
This symbol
indicates
Sub menu is
attached to this
option
Modify system
Settings
View a list of Add / Modify
installed devices and
Programs Printer settings
Get Help
Search Box
54
Minimised program /
Folders
show
hidden icons
Volume
Default Network Adjustment
Language icon Aero peek
Time and button
Date
Figure 5.12.Taskbar
57
4. Just click and open that file or the or folders. You can rename using the File
folder. menu, left mouse button or right mouse
Workshop button.
4. Find the file created in Workshop-3 Method 1
using the above procedure Using the FILE Menu
1. Select the File or Folder you wish to
5.11.3. Opening existing Files or Folders
Rename.
The most common way of opening a file
2. Click File→ Rename.
or a Folder is to double click on it.
3. Type in the new name.
5.11.4. Renaming Files or Folders
4. To finalise the renaming operation,
There are number of ways to rename files
press Enter as in Figure 5.25.
Note
If you want to select multiple files
or folders, use Ctrl + Click.
Method I - COPY and PASTE • Plug the USB flash drive directly into
an available USB port.
To copy a file or folder, first select the
file or folder and then choose one of • If the USB flash drive or external drive
the following: folder does NOT open automatically,
follow these steps:
• Click Edit → Copy or Ctrl + C or right
• Click Start→Computer. (Figure 5.31)
click→ Copy from the pop-up menu.
61
METHOD II - Send To
• Plug the USB flash drive directly into an
available USB port.
• Navigate to the folders in your computer
Figure 5.31. Double Clicking containing files you want to transfer.
Removable Disk
• Right-click on the file you want to
• Navigate to the folders in your
transfer to your removable disk.
computer containing files you want to
transfer. • Click Send To and select the Removable
Right-click on the file you want to copy, Disk associated with the USB flash drive.
then select Copy. (Figure 5.32) (Figure 5.34)
62
6. Move the file created by you in My 7. Delete the file created by you after
Documents to Drive D. duplicating the same under My
D o c uments.
Copy the file created by you from
drive D: to a removable disk. Note
To permanently delete a file or folder
(i.e. to avoid sending a file or folder to
the Recycle Bin), hold down the SHIFT
5.11.7. Deleting Files and Folders
key, and press delete on the keyboard.
• When you delete a file or folder, it will
move into the Recycle Bin. Recycle Bin
Recycle bin is a special folder to keep
To delete a file or folder: the files or folders deleted by the user, which
Select the file or folder you wish to delete. means you still have an opportunity to recover
them. The user cannot access the files or folders
available in the Recycle bin without restoring
it. To restore file or folder from the Recycle Bin
• Open Recycle bin.
• Right click on a file or folder to be
restored and select Restore option from
the pop-up menu.
• To restore multiple files or folders, select
Restore all items.
• To delete all files in the Recycle bin, select
Empty the Recycle Bin.
5.12. Creating Shortcuts on the Desktop
Shortcuts to your most often used
folders and files may be created and placed
Removable disk
on the Desktop to help automate your work.
Figure 5.34. Copying File using Send to • Select the file or folder that you wish to
option have as a shortcut on the Desktop.
1. Right- click the file or folder, select • Right click on the file or folder.
• Select Send to from the shortcut menu,
Delete option from the po-pup menu or
then select Desktop (create shortcut)
Click File → Delete or press Delete key from the sub-menu.
from the keyboard. • A shortcut for the file or folder will now
appear on your desktop and you can
2. The file will be deleted and moved to the
open it from the desktop in the same
Recycle bin. way as any other icon. Figure 5.36.
63
64
66
67
68
1 2 3
button
When you click minimize button,
Ruler
it shrinks your document window smaller
Insertion Point
in size and shows it as a small button on
the task bar. To restore it in its original
size, place your mouse pointer on the
Scroll bars
OpenOffice button which is available in
the Taskbar, you can view your document
Status bar
as miniature and when you click on the
button, your document is restored to its
Figure 6.3 Components of Writer Window original size.
Title Bar
The title bar is displayed at the top
Figure 6.6 - Minature Window of Open
of the window, which displays the name
Office Document
69
70
71
Click Ok to Finalise
72
73
74
75
76
6.1
• Open a new document in Open office writer.
• Type the following paragraph.
“The ignited minds of the youth is the most powerful resource on the earth. The power
of the youth, if properly directed, will bring about transformed humanity by meeting
its challenges and bring peace and prosperity.”
• Save and close the document.
• Exit from Open Office Writer.
6.2
• Open the document created in Workshop-6.1.
• Append the following paragraph.
“We are as young as our faith and as old as our doubts. We are also as young as our self-
confidence and as old as our fears. We are as young as our hopes and as old as our despairs".
• Save the document
• Using Delete or Backspace key remove the last line of the first paragraph.
• Type the following lines after the second paragraph and create it as a new paragraph.
“It doesn’t matter who you are, if you have a and determination to achieve that vision,
you will certainly do so.”
• In the third paragraph insert the word “vision” between “a” and “and ”.
6.3
• Open the document created in workshop-6.1.
• Copy and paste the following words into a new document either using keyboard
or mouse shortcuts. (i) Ignited (ii) powerful (iii) humanity (iv) challenges (v)
prosperity
• Save the new document
• In the first document, move the following words either using keyboard or mouse
shortcuts. (i) Ignited (ii) Challenges (iii) Prosperity
77
Preview window
Table 6.4 Text formatting shortcuts
SHORTCUT
OPERATION ACTION ICON
KEY
Makes the Figure 6.20 – Character dialog box
BOLD Ctrl + B
text bold
Italicizes the
ITALICS
text
Ctrl +I 6.7.2 Changing Case
Underlines
UNDERLINE Ctrl +U
the text Normally any text can be typed
in upper or lower case. The text can be
The default font type is Times changed to different cases like:
New Roman and the type of font can be • Uppercase (Capital letters)
changed by clicking on the Font Type icon
• toggle case (reverse case),
• sentence case (first letter of each
The default size of font is 12 points sentence in capital),
which can be changed by clicking on the • Capitalize every word (first letter of
Font Size icon each word in capital),
78
79
Left Alignment
All power is with in you take up one idea, make that one idea your life. Think
of it dream of it, live on that idea let the brain, muscles, nerves, every part
of your body be full of that idea, and just leave every other idea alone. This is the
way to success.
Right Alignment
All power is with in you take up one idea, make that one idea your life.
Think of it dream of it, live on that idea let the brain, muscles, nerves, every part
of your body be full of that idea, and just leave every other idea alone.
This is the way to success.
Center Alignment
All power is with in you take up one idea, make that one idea your life.
Think of it dream of it, live on that idea let the brain, muscles, nerves,
every part of your body be full of that idea, and just leave every other
idea alone. This is the way to success.
Justify Alignment
All power is with in you take up one idea, make that one idea your life. Think of it
dream of it, live on that idea let the brain, muscles, nerves, every part of your body
be full of that idea, and just leave every other idea alone. This is the way to success.
80
81
82
83
84
• Click ok button.
85
86
6.4
1. Open a new document in OpenOffice writer.
• Type the following paragraph
“Learning gives creativity, creativity leads to thinking, thinking provides knowledge,
and knowledge makes you great”
• Save the document
• Perform text formatting features like Bold, Italics, Underline, Change font, change
Size, Color and change case (Upper case to lower case, lower to upper) for the words
in the paragraph and make the paragraph more appealing to read.
• Highlight the text “Knowledge makes you great”
• Undo all formatting options using keyboard shortcut.
6.5
• Open the document created in the workshop 6.1
• Type the following lines below the first paragraph
“ When one door closes, another opens, but we often look so long and so regretfully
upon the closed door that we do not see the one that has opened for us – Alexander
Grahambell ”
• Using any one of the paragraph alignment icons or keyboard shortcuts (left, right,
center, or justified) align the first paragraph.
• Change the line spacing of second paragraph to any one of the type.
• Create bullets for the first paragraph and numbering for the second paragraph using
icon or menu choice.
• Save and close the documents.
6.6
• Open the document created in workshop-6.2.
• Change page size, margin and orientation, change border and background color.
• Apply suitable header and footer for the table.
87
88
89
90
91
92
6.7
• Open a new document.
• Using icon or table menu create the given table with required of 5 rows and6 columns
with the labels S.No., Name, Maths, Phy, Che and Total
• After the sixth row add a new row and type suitable data for the new row.
• Delete the second row using icon or command.
• Using icon or command after the second column add a new column and type
suitable data for the new column.
• Delete any one column using icon or command.
• Save and close the document.
6.8
• Open the document created in workshop-6.7.
• Do the following options :
• Change the border style and border line width for one table.
• Change height and width for the row and column respectively.
• Save and close the document.
• Create a new document.
• Create a 4 x 4 table using icons in toolbars or using commands.
• Split any one row/ column in one given table into more than one cell using icon or
command.
• Merge any two or more row / column in the given table using icon or command.
6.9
• Open the document created in workshop-6.8.
• Delete the table contents.
• Perform all table formatting options for this table.
• Add two more rows and columns and also delete the rows and columns.
• Save and close the document.
93
OpenOffice Writer has the ability • Place the insertion pointer in your
to insert and edit images in a more simple document where you want the character
way. The picture gallery of the Writer to appear
consists of a collection of images from
which the desired image can be selected • Click on Insert → Special Characters
and inserted into the document. To insert • The Special Characters dialog box
an image from a file, the steps are as appears as shown in Figure 6.41 from
follows: which the desired symbol can be
selected by clicking on the character.
• Place the insertion pointer where you
want the image to appear • As you select each character, it is shown
on the lower right, along with the
• Select Insert → Picture → From file numerical code for that character
• The insert picture dialog box appears • If you do not find a particular special
where the picture gallery opens from character you want, try changing the
which the desired picture can be font selection.
selected. • Click the OK button and the character
is inserted at the current location.
• If the picture is not in the gallery, then
browse the pictures from the folder, The insert special characters dialog
choose the desired picture. box is displayed in Figure 6.40.
Many symbols which are used in Figure 6.40 Insert Symbol Dialog box
a mathematical equation like alpha(∞),
beta(β), pi(π) etc., are not available on the 6.15.3 Inserting Shapes
standard keyboard. However, representing
these characters are very much essential OpenOffice Writer uses the drawing
tools, to create various shapes by using
94
95
Activity
Student Activity
1. Make the students prepare a invitation for school annual day.
2. Let the students prepare their class timetable in table format and format it in an attractive
manner.
3. Make the students create a greeting card in landscape format with a picture and a birthday
message and distribute to students on their birthday.
Teacher Activity
1. To show a demo to the students how to type a question paper by using formulas and
special characters, changing the margins and printing in the practical session.
2. To show the students a demo of inserting a picture and applying crop , color changes,
background and others features to modify it and make more attractive.
96
6.10 6.12
• Open the document created in • Open the document created in
Part-1 workshop-6.1 workshop-6.2
• Download images related to Dr. • Using Autotext command or
A.P.J ABDUL KALAM From keyboard shortcut create shortcut
net and insert the images in the for
document at required place using • “Vital Information Under Seize” as
command or icon. “VIRUS” and make it appear in one
• Open the document in Part-III – document.
workshop-1 , download images • Using Print icon change printing
related to the content from net attributes, preview and print the
and insert the images at required document.
place.
• Save the document and close.
6.13
• Open the document created in
6.11 workshop-6.4
• Open a new document. • Insert suitable picture of a circle.
• Using the commands to insert • Type the formula for the
special characters, special symbols circumference of a circle using insert
• Type the following equations (i) special character option.
Aα+Br+cβ (ii) πr2h. • Using drawing tools draw the
• Using drawing toolbar insert following in the document.
various drawings/ shapes in your • Print the document using print
document command.
• Save and close the document.
s
p re s
Im
Writer
Database
Calc
97
98
a அ k க் ka க ke கே
aa ஆ ng ங் nga ங kee கே
i இ s ச் sa ச ko க�ொ
ii ஈ nj ஞ் nja ஞ koo க�ோ
u உ d/t ட் da / ta ட kau க�ௌ
uu ஊ N ண் Na ண
e எ w ந் wa ந we நெ
ee ஏ th த் tha த wee நே
ai ஐ p ப் pa ப wo ந�ொ
o ஒ m ம் ma ம woo ந�ோ
oo ஓ y ய் ya ய wau ந�ௌ
au ஔ r ர் ra ர
q ஃ l ல் la ல
v வ் va வ
z ழ் za ழ
L ள் La ள
R ற் Ra ற
n ன் na ன
WorkShop -6.14 : Type the following content in Tamil using any interface (Murasu / NHM / Azhagi).
99
100
WORD MEANING
A software used to create, edit, view, manipulate, transmit, store,
Word processor
print and retrieve a text document.
OpenOffice writer A word processor component of OpenOffice.
Proprietary Owner or ownership.
Embedding To surround tightly or firmly.
Highlighting is used to draw attention to important information
Highlighting
in a text.
Indents is the distance from the margin that is used to improve
Indents
the efficiency and readability of the paragraph.
Dynamic Data Exchange – a mechanism where source data can
DDE
be pasted into a destination with a link of the original.
The PasteSpecial option is used when only some aspects of the
Paste Special data, like only its formatting or only value is send while moving
or copying.
This is the section at the top of the page where any references
Headers like title, chapter name, author name can be given which gets
repeated on all pages.
This is the section at the bottom of the page where any references
Footers
like page number can be given which gets repeated on all pages.
This helps to assign shortcuts to some text which are frequently
AutoText
used.
This feature automatically checks the spelling while typing and
Auto spell check underlines the misspelt words with wavy lines which can be
corrected later.
This feature automatically corrects the common misspellings
Automatic Correction
and typing errors automatically.
101
102
103
1 3 2
6 7 4
5
11 9
10
104
Below the title bar is menu bar. Help – menu lists in-built help
Most of the menus are very similar to features available with OpenOffice.
what you learnt in OpenOffice Writer.
7.3.1.4 Tools Bar
File - menu contains the commands
of all file management tasks like, Create Under the menu bar, there are three
a new file, Open an existing file, Close toolbars available by default. They are:
105
Formula bar
Formatting Toolbar
106
Downward
Scroll arrow
Left Scroll
Scroll button Right Scroll
arrow
arrow
Fig. 7.5 Calc Scrolling bar
7.3.1.6 Row, Column, Cell and Cell Cell address is the combination of
Pointer column heading and row number. For
example, the intersection of column B
Below the formula bar contains the
worksheet of work area which consist of and row 4 makes a cell B4. (Figure 7.7).
grid cells The worksheet has number of Every cell is thus identified by its unique
rows and columns, where each column is cell address.
labelled as A, B, C, D ….. AA, AB, AC …..
and the rows are numbered from 1, 2, 3 Cell pointer is a rectangle box which
…. (Figure 7.6). can be moved around the worksheet. The
cell in which the cell pointer is currently
OpenOffice Calc version 4.1.5
located is known as “Active cell”. When
contains 1024 columns and 10,48,576
rows. Column heading starts from A and you type anycontent, it will appear in the
end with AMJ. In the case of Microsoft active cell. The address of the active cell
Excel 2016, there are 16,384 columns (A is displayed in the Name box / Address
to XFD) and 10,48,576 rows available. box. Active cell’s column name and row
number will be highlighted. Using this
Cell
visual clue, one can easily identify an
Intersection of each row and active cell. Moreover, the contents of an
column makes a box which is called as active cell will be displayed in the formula
“Cell”. Each cell has its unique address. bar.
107
Cell Pointer
of Cells
Grid
Active all
Sheet Count
Sheet Navigation buttons
Fig. 7.8 Calc Sheet Tab
108
109
Data types:
110
111
Column D
Column D
Column C
Column B
Operator
Result in
Formula
Value in
Value in
Operator
the format for specifying a
in
Name
formula.
+ Addition 98 25 = B3 + C3 123
In Calc, you can enter
- Subtraction 125 25 = B3 – C3 100
formulas in two methods, either
* Multiplication 25 5 = B3 * C3 125
directly into the cell or at the
/ Division 90 10 = B3 / C3 9
input line. Formula in Calc may
^ Exponent 25 2 = B3 ^ C3 625
start with equal (=) or plus(+)
% Percent 600 = B3 * 35% 72
or minus(–) sign followed Percentage (%) operator shows percentage of the content.
by a combination of values,
operators and cell references. Table 7.1 List of Arithmetic Operators
But, as a general practice, all
formulas should start with an Formula bar shows the formula what the user
equal sign. If any formula starts had entered. But, the cell shows the resulted value
with a + or –, the values will (Figure 7.15).
be considered as positive or
negative respectively. Formula Entered
7.5.1 Operators
Operators are symbols
for doing some mathematical,
statistical and logical
calculations. Combination
of values, operators and
cell references is called as Figure 7.15 Percentage Operator
“Expression”. Calc supports a
variety of operators which are 7.5.1.2 Relational Operators
categorized as:
Relational operators are symbols used for
(1) Arithmetic Opertors
comparing two values such as greater than, less than,
2) Relational Operators equal to etc. The relational operators are also called
(3) Reference Operators as "Comparative operators". These operators return
(4) Text Operator either a True or a False.
112
Formula in
Column D
Column D
Column C
Column B
Operator
Result in
Value in
Value in
Name
Reference operators are used to
refer cell ranges. A continuous group
of cells is called as “Range”. There are
Greater three types of reference operators that
> 98 100 =B3>C3 FALSE
than are used to refer cells in calc; they are
Greater (1) Range Reference Operator, (2) Range
than Concatenation (3) Intersection Operator.
>= 85 72 =B3>=C3 TRUE
or equal
to Range Reference Operator
< Less than 54 24 =B3<C3 FALSE
Colon (:) is the range reference
operator. It is used to group a range of
Less than cells. An expression using a range operator
<= or equal 55 55 =B3<=C3 TRUE has the following syntax:
to
reference left : reference right
=Equal to 12 12 =B3=C3 TRUE
Not equal where reference left is the starting cell
<> 54 45 =B3<>C3 TRUE
to address of a linear group of cells or upper
left corner address of a rectangular group
Table 7.2 List of Relational Operators of
cells.
Reference right is the last cell address of a
linear group or lower right corner address
of a rectangular group of cells.
113
(ii) Rectangular group of cells A2, A3, A4, ….. B2, B3, B4,….D5, D6 is referred as
A2:D6 (Refer Figure 7.17)
Name box shows the reference A2:D6 corresponding to the cells included in the
drag operation with the mouse to highlight the range.
If you want to find the sum of the values from A1 to A6 and C3 to F3. The formula
is =SUM(A1:A6 ~ C3:F3)
114
Intersection operator is used to join two set of groups. It is very similar to Range
concatenation operator. The intersection operator is represented by an exclamation
A B C D E F
1 A1 B1 C1 D1 E1 F1
2 A2 B2 C2 D2 E2 F2
3 A3 B3 C3 D3 E3 F3
4 A4 B4 C4 D4 E4 F4
Intersection of
Range 1 and B2:D3
Range 2
The result of (A2:D3 ! B2:E4) is referred by the range B2:D3, because these cells are
both inside A2:D3 and B2:E4 (Refer Figure 7.19 and 7.20).
115
In Calc, “&” is a text operator which is used to combine two or more text. Joining two
different texts is also known as “Text Concatenation” (Refer Figure 7.23). An expression
using the text operator has the following syntax:
Illustration 1:
After completing the data entry, your worksheet will look as shown in Figure 7.22.
116
• Cell pointer should be in the cell in which you want to display the result.
• Formula should begin with an = sign.
• In a formula, use only cell reference (cell addresses) instead of the actual values within
the cells.
• While constructing a formula, BODMAS rule should be kept in mind.
• General Syntax of constructing a formula is: = cell reference1 <operator> cell
reference2 <operator> ……………….
• Cell references are of two types (i) Relative cell reference (ii) Absolute Cell reference.
• If you refer cell addresses directly while constructing formulae, it is called as “Relative
Cell reference”.
• Examples of Relative Cell references:
117
• While writing a formula, if you use the $ symbol in front of a column name and row
number, it will become an “Absolute Cell reference”.
• In an expression, all cells need not necessarily be relative or absolute. You can mix
both type of references.
• The following section explains the use of relative cell reference. About “Absolute cell
reference”, you will be learn later in this chapter.
• Type the following formula; after entering the formula, press “Enter” key
• Now, you will get the sum of all the values of C2, D2, E2, F2 and G2
• The above-mentioned formula clearly stated that, how worksheets are working with
cells.
• While referring to the cell addresses in a formula, the spreadsheet reads the value
inside the cell that you refer. This is a good practice of constructing a formula. Because,
if you change any value, the spreadsheet recalculates with that new value.
118
Step 1: File → Save (or) Ctrl + S (or) Click “Save” icon on the standard tool bar.
Step 2: If the spreadsheet has not been saved previously, the Save As dialog box will
appear.
Step 3: Type the name in “File Name” list box. OpenOffice Calc Spreadsheets are stored
with extension .ods by default.
After clicking the save button, the given file name is displayed in the title bar as shown in Figure 7.24
File Extension:
A file extension or file name extension helps to identify the type of file.
Following table gives the file extension of commonly used files.
119
120
Default location
Available Files
and Folders
Read only
Option
121
Figure 7.26 List of Recent Documents • Select Edit → Paste or Click “Paste”
icon or Press Ctrl + V
7.7 Copy, Cut and Paste 7.7.3 Copy and Paste Formula
Row number
122
Self Practice:
1. Open the spreadsheet which was created in Illustration 1.
2. Add one more column heading “Average” in I1
3. Create a formula to find the average of all marks in I2.
4. Apply the formula to the remaining cells.
5. Save the changes and close the file
You have learnt how to copy and paste a formula from one cell to other cells in the
previous section. The process of Copy and paste can be replaced by a click and drag and it is
called as “Auto Fill”. This is an alternate way to copy and paste.
Auto Fill feature fills the contents from one cell to all the dragged cells. The content may
be a data or formula. If you fill a relative formula, all the addresses of filled formulae will be
changed.
123
124
End Value:
• If you fail to specify the end value, series will be generated upto the selected cells.
• If your selection is less than the specified end value, series will be generated only upto the
selected cells.
Increment:
• It is a middle value between the first and second value of your series. So, the next value
(Third value) of the series will be generated based on this value.
• If you want to generate a decreasing order series, negative value should be specified as an
increment value.
125
For example, enter a date 02/26/2018 in a cell, say A2. Suppose you want to calculate
the date 80 days after this date. To do so, enter the formula, = A2 + 80, in another cell, say
A4.
126
When you insert a new column, it is inserted to the left of the current column. The
location of the cell pointer present, is the Current column. In Calc, you can insert a new
column anywhere in the worksheet.
Step 2: Right-click on the selected column name that you have selected. A pop-up menu
appears.
Now, a new column will be inserted to the left of the current column.
127
When you insert a new row, it is inserted above the current row. The location of the
cell pointer present is the current row. In Calc, you can insert a new row anywhere in the
worksheet.
128
Insert → Rows command is used to insert a new row. Refer Figure 7.35
129
• To insert a new cell between two existing cells, just right-click on any existing cell
• From the pop-up menu, select “Insert” option Refer Figure 7.36
• The “Insert Cells” dialog box appear with four options
i) Shift cells down ii) Shift cells right iii) Entire row iv) Entire Column
• Any one of the four options is selected.
• Selecting “Shift cells down”, inserts a new cell in the present location and the existing
cells are shifted downwards.
• Selecting “Shift cells right”, inserts a new cell in the present location and the existing
cells are shifted towards right.
• Selecting the “Entire Row” or “Entire Column” option, inserts a new row or a new
column.
130
131
Selected columns
To Delete Selected
columns; click
here
132
Making the cell contents as bold, italics, underlined, changing font style, size,
colour etc., comes under text formatting. All text formatting options are available as icons
in Formatting toolbar learnt in OpenOffice Writer. Figure 7.39(a) Text Formatting Toolbar
Merge
Bold Italic Cells
Moving handle Underline
133
134
Function Wizard has two tabs viz. Functions and Structure. In Functions Tab, the
list of categories is available in Category drop down list box. In Calc, the functions are
categorized into 11 types. They are,
1. Database 2. Date and Time 3. Financial 4. Information
5. Logical 6. Mathematical 7. Array 8. Statistical
9. Spreadsheet 10. Text 11. Add-in
Function Name
with arguments
Short description
about the Function
List of Functions
135
136
Step 7: Click “Next” command button. Now, Function wizard appears as shown in the Figure
7.44.
Selected Category
Function
Name Function
Syntax
Description about
Selected Function
Function
.
Figure 7.43 Function wizard dialog box
Step 8: Click on the cell which is contains the base value (A2).
Now, the minimized wizard shows the cell address you have selected (A2). Refer Figure 7.45
Function button
(Nesting of Functions
Select Cell
button
Select Function
137
Step 9: Click “Maximize” button to display full wizard. Now, Function wizard appears as
shown in Figure 7.46
Base box shows the cell address which contain base value.
Step 10: Directly type the cell address which contains exponent, in Exponent box; or
repeat steps 7, 8 and 9.
138
Result to the
Function
Base value cell
address
Formula
Result to the
formula
The formula box displays the syntax of the function with input values and Result box
displays the result value.
Step 11: If the result is correct, click “OK” button else click “Back” button to display the
previous page of this wizard.
In the previous example, Cell addresses are used for Base and Exponent values. In Calc,
direct values can be used instead of using cell reference (i.e. cell address) to find the same
result.
In this case, type base and exponent value instead of cell address. Function wizard
displays the result in the current cell. Refer Figure 7.48 shown below.
139
No more steps
Figure 7.48 Function Wizard (with Direct values)
Self Practice:
1. Open a new worksheet.
2. In cell A1 type as “Value”
3. In cell A2 type as “Square root”
4. In cell B1 type any value
5. In cell B2 insert the function to find the square root of the value in B1
6. After getting square root, change the value in B1, observe changes in result.
7. Use the same function in another sheet directly i.e. without using function wizard.
One of the most important features of spreadsheet is the ability to create charts
based on numeric data. The charts are used to present data in an easy manner. Creating
charts is the key factor for the of success of spreadsheet. OpenOffice Calc provides a
“chart wizard” to create and manipulate charts.
140
Chart wizard is used to insert charts in Calc. Chart wizard can be invoked by
clicking “chart” icon from standard toolbar or choosing Insert → Chart command. A
"Chart wizard" appears as shown in Figure 7.49
Chart wizard dialog box has 4 steps viz. (1) Chart type (2) Data Range (3) Data
Series and (4) Chart Elements. The “Next” button is used to move from one step to another
step.
The first step of “Chart wizard” is used to select Chart type. All available chart
types are listed under the “Choose a chart type” list box. On the right side of the list box
shows style of the selected chart; each chart type has different styles.
For example, Column chart has three styles viz. Normal, Stacked and Percent
Stacked. Refer Figure 7.49
"3D Look" check box helps to display the selected chart type in an attractive form.
3D Look is applied only for Column, Bar, Pie and Area chart type. Refer Figure 7.50
141
Chart styles
List of 3D
3D look
shapes
Checkbox
In this step, specify the range of data for which the chart should be created in “Data
range” text box or click “Select data range” button which is at the end of the textbox to minimize
the wizard.
If the user had selected the data before invoking "chart wizard", the selected range will
appear automatically in the textbox as shown in Figure 7.51.
There are two checkboxes used to set the first row or first column or both, as X and Y
axis labels to the chart.
142
143
144
• If the user wants change any other type or shape, click on the style image. Preview
of the chart is displayed on the background of the chart wizard. So, you can view the
chart at every stage of design.
• In this case, the data has been selected earlier. So, the selected data range is displayed
in the “Data range” box.
• “Data Series” list box shows all the columns to be included in the chart.
• Click on the “Total” in the data series box and click “Remove” button to remove the
column.
• If you don’t want to add or remove anyother column click “Next” button to move to
the last step.
145
Step 6 – Adding Title, Subtitle, Name of X and Y axis: (Refer Figure 7.58)
• Type the title and subtitle of the chart in “Title” and “Subtitle” box
• The Display legend text box is selected to the right which is the default.
After inserting a chart any element of the chart can be modified. To modify the
element
For example, To change the display pattern of the X-axis, double-click on the X-axis
and then right-click on it. A pop-up menu appears as shown in the Figure 7.60.
146
500
RainFall in mm
400 Sep
Oct
300
Nov
200 Dec
100
0
Coimbatore Dharmapuri Kanchipuram Theni Tiruvallur
Chennai Cuddalore Erode Madurai Tirunelveli
District
147
148
1000
800 Sep
600 Oct
400 Nov
200 Dec
0 Total
Madurai
Kanchipuram
Coimbatore
Dharmapuri
Chennai
Tiruvallur
Cuddalore
Erode
Theni
Tirunelveli
Districts
Figure 7.62 Completed Chart
Select “Label” tab.
• In Text Orientation spinbox, type as 90 degree or click and drag the Text direction animated
handle.
• Click “OK” button.
• Now, the chart will be as in Figure 7.62
Self Practice:
1. Open the spreadsheet which was created in Illustration 1.
2. Create a column chart with 3D “cone” shape showing the total marks of all students.
149
A spreadsheet is a “Flat file database”. Thus, database operations such as sorting, filtering
can be done on spreadsheet. The “Data” menu of OpenOffice calc provides maximum data
analysis tools such as sorting, filtering, validation etc., In this part, the sorting and filtering
feature is to be learnt.
7.14.1 Database
Comm
Sl. Class Group Student Name Gender Date of Date of Religion
No Code Birth Birth
The entire collection or related data in one table is referred to as a File or a Table.
Each row in a table represents a Record, which is a set of data for each database entry.
Each table column represents a Field, which groups each piece or item of data among the
records into specific categories. (Refer Figure 7.63)
7.14.2 Sorting:
Sorting is the process of arranging data in ascending or descending order. There are
three types of sorting in OpenOffice Calc. They are,
150
Arranging data using single column is known as simple sorting. For sorting the
data, calc provide two icons on the standard tool bar viz. (1) Sort Ascending (2) Sort
Descending.
Field
Record
Sorting data
151
Sorting data based on more than one field (column) is known as multi sorting. For
example, the worksheet containing data of 20 students belongs to different groups and
classes. To rearrange this data alphabetically by name and group code, multi sorting is
used. Refer Figure 7.66.
152
Step 3: Select the field name (Student name) in which you want to sort from the “sort
by” dropdown list box and then choose order of sorting i.e. Ascending or
Descending. Ascending is the default selection.
Step 4: Select another field name (Group Code) from the “Then by” dropdown list box
and choose the order of sorting to this column.
In OpenOffice Calc, multi sort can be done only for three fields.
153
Fainally Click
"Ok"
In Calc sorting can be done on selected range. But this kind of sorting is generally not
recommended, because the other relevant data are also not sorted. Therefore, OpenOffice
Calc displays a warning message for this type of sorting. Refer Figure 7.68.
154
Filter is a way of limiting the information that appears on screen. Filters are a feature for
displaying and browsing a selected list or subset of data from a worksheet. The visible
records satisfy the condition that the user sets. Those that do not satisfy the condition are
hidden, but not removed.
OpenOffice Calc allows three types of filters. They are AutoFilter, Standard Filter
and Advanced Filter.
Auto Filter applies a drop-down list box to each field (columns) filled with similar
data available in that field. Using the list box item, you can filter the data that matches the
criteria of the data concerned.
Using Auto Filter:
• Click Auto Filter icon available on the “Standard tool bar” (or)
click Data → Filter → Auto Filter
155
• Select the data item from the list box. Now, Calc shows only the records which are
satisfy the selected criteria.
Example:
If you want to apply an auto filter to the contents of the table 7.14.1, follow the
following two steps
Step 2: Click Auto Filter icon available on the “Standard tool bar” (or) Click Data →
Filter → Auto Filter
In the above table, if you want to view only the students belongs to the Group code 402;
• Click the dropdown list box’s drop arrow (a tiny triangle) to get the filter criteria.
(Refer Figure 7.70)
156
• The spreadsheet displays only the student’s details those who are studing in group
code 402 (Refer Figure 7.71) and the remaining details are hidden.
157
158
159
Workshop 1
Emp.
Name of Emp. Basic DA HRA CCA MA GPF IT HF
No
1001 Manivannan M 25500 600 300 250
1002 Kannan K 20200 600 300 250
12 % of Basic
%10 of Gross
(1) Calculate the Gross Salary, Total Deductions and Net Salary
(2) Insert “IT Cess” column and calcualte 3% of cess to all employees
160
Amount of Sale
Product Name
Opening stock
Closing Stock
Sales in units
Weight (gm)
12 % of BasicSelling price
Amount of
Cost price
Discount
Rate of
Code
%10 of Gross
1006100 Ramesh K
Marie Gold 18500345
120 15 147 6005% 300 250
1007101 Govindasami
Milk Bikis A 85 106
13200 10 63 6005% 300 250
1008102 Kannan
Dark Fantasy
S 75 147
20250 25 43
6003% 300 250
103 Nutri Choice 250 98 50 12 10%
1009104 Penchil Rao K
Lays potato chips
28300
52 172 15 152
6004% 300 250
1010105 Logeswaran
Oreo M 120
30200112 25 85 6006% 300 250
1011 Arumugam E 12000 600 300 250
3. Calculate the following using formula or function
1012 Vasu G N 25000 600 300 250
(i) Amount of Discount, Selling price and Amount of sales for each product
Based on the above data,
(ii) Total amount of discount and Sales of the month
(1) Calculate the Gross Salary, Total Deductions and Net Salary
(iii) Closing stock of each product
(2) Insert “IT Cess” column and calcualte 3% of cess to all employees
4. Draw a Pie chart to show the highest selling product.
161
2. Enter the following details of loan sanctioned during the month of January 2018 of
“Tamil Finance Corporation”.
Duration of Loan
Amount of Loan
AC No Emp. No
Rate of Interest
Loan Sanction
Total Amount
Interest (Rs)
Due date
Name
4. Insert 5 new rows between Kumar and Ibrahim and include the following details
Duration of Loan
Amount of Loan
Rate of Interest
Loan Sanction
Total Amount
Interest (Rs)
Due date
AC No
Name
date
162
• Daniel Bricklin and Bob Frankston developed the first spreadsheet software
called “VisiCalc” in 1979 for Apple II.
• OpenOffice Calc version 4.1.5 contains a total of 1024 columns and 10,48,576
rows.
• Intersection of every row and column makes a box which is called as “Cell”.
• Cell pointer is a rectangle element which can be moved around the worksheet.
• The cell in which the cell pointer is currently located is known as “Active cell”.
Student Activity
1. Based on the concept of calculation using formula / functions, make the students to
create various worksheet data.
2. Make the students prepare Charts and manipulate data using sorting and filtering
features.
Teacher Activity
1. To show the demo of working with spread sheets using simple example in class room.
163
5. Which key is used to move the cell pointer in the forward direction within the worksheet?
(A) = (B) +
7. What will be the result from the following formula (Assume A1=5, B2=2)? + A1^B2
(A) 7 (B) 25
(C) 10 (D) 52
164
9. Which of the following symbol is used to make a cell address as an absolute reference?
(A) + (B) %
10. Which of the following key combinations is used to increase the width of the current
column?
(A)Alt + Right arrow (B) Ctrl + Right arrow
(B)Alt + Left arrow (D) Ctrl + Left arrow
Part – II
Very Short Answers
1. What are the types of toolbars available in OpenOffice calc?
6. Can you edit the contents of a cell? If yes, explain any one of the method of editing the
cell content.
A B
(a) Cut, Copy and Paste (1) Absolute Cell
(b) Cell pointer (2) Status bar
(c) Selection Mode (3) Standard Toolbar
(d) $A5$ (4) Active cell
9. Define the following (i) Text Operator (ii) Rows and Columns of spreadsheet
165
Part-III
Short Answers
1. Write a short note on OpenOffice Calc.
5. In cell A1=34 A2=65 A3=89 write the forumla to find the average.
Part-IV
Explain in Detail
1. Explain about changing the column width in Calc.
2. Write the steps to generate the following series. 5, 10, 20 ….. 2560
A B C D E
1 Year Chennai Madurai Tiruchi Coimbatore
2 2012 1500 1250 1000 500
3 2013 1600 1000 950 350
4 2014 1900 1320 750 300
5 2015 1850 1415 820 200
6 2016 1950 1240 920 250
Above table shows the sales figures for “Air Cooler” sold in four major cities of Tamilnadu
from the year 2012 to 2016. Based on this data, write the formula to calculate the following.
(3) Total sales in Madurai and Tiruchi during 2015 and 2016.
(5) In 2016, how many “Air Coolers” are sold in Chennai compared to Coimbatore?
166
Drag fill handle A small black box at the bottom right corner of the cell pointer.
167
1 Averageif Averages the arguments that meet the Average (range; criteria;
condition average_range)
3 Countif Count the argument which meet the Countif (range; criteria)
set conditions
11 Sumif Totals the arguments that meet the Sumif (range; criteria; sum-
condition range)
12 Sumsq Returns the sum of the squares of the Sumsq (number1; number2;…)
arguments
15 Date Provides an internal for the date Date (year; month; day)
given
168
19 Count Counts how many numbers are there Count (value1; value2;…)
in the list of arguments
20 Concatenate Combines several text items into one Concatenate (text1; text2;..)
23 Mid Returns a partial text string of a text Mid (text; start; number)
169
After learning this chapter, the students will • A presentation software is a computer
be able to software package used to show
information, in the form of a slide
• Know the open source presentation show.
s oft w a re
It includes three major functions:
• explore opening a new presentation
using Impress • an editor that allows the text to be
inserted and formatted,
• create a new presentation using various
ways using Impress • a method for inserting and
manipulating graphic images and
• Know parts of the main Impress
Window • a slide-show system to display the
content.
• differentiate five sections of Task pane
• Presentation software is used to create
• explain Window elements of Impress presentations, quizzes, e-learning
packages and multimedia products.
• differentiate various views in Workspace
• Most presentation software packages
• explore drawing Objects & inserting will create your multimedia product
OLE using a series of slides.
• draw freeform shapes • Text, images, video, animations, links
and sound can be combined on each
• rotate Objects
slide to create a final product.
• create animation in slides/objects
The most commonly known
presentation programs are OpenOffice.
org Impress, Microsoft PowerPoint and
Apple's Keynote. In this chapter, we are
going to explore on OpenOffice.org’s
presentation Software Impress.
170
Impress is OpenOffice
org’s presentations (slide show)
module. You can create slides
using Impress. It contains
different elements like text,
bulleted and numbered lists,
tables, charts, clip art and a range
of graphic objects. Impress has
access to the spelling checker
and thesaurus. Also, it comes
with pre-packaged text styles,
background styles with online
help.
You can start Impress in several Figure 8.1 – Opening Impress using Start button
ways: (using All Programs)
1. By selecting an Empty
presentation
171
Figure 8.3 – Using the Presentation Wizard to choose the type of presentation
172
173
174
175
Figure 8.10 Opening a new presentation using Open existing presentation option
176
177
• The Slides pane contains thumbnail • Copy or move the contents of one
pictures of the slides in your presentation, slide to another (copy and paste, or
in the order of our insertion of slides. cut and paste, respectively).
• Add new slides at any place within the • Change the slide design. (A window
presentation after the first slide. opens allowing you to load your own
design.)
• Mark a slide as hidden so that it will
not be shown as part of the slide show. • Change slide layout for a group of
slides simultaneously. (This requires
• Delete a slide from the presentation if using the Layouts section of the Tasks
it is no longer needed. pane.)
178
The Tasks pane has five sections: Pre-packaged layouts are shown.
You can choose the one that you want,
8.5.2.1. Master Pages use it as it is or modify it to suit your own
requirements. At present, it is not possible
You define the page style for your to create custom layouts. (Figure 8.15)
presentation using Master Pages. Impress
contains pre-packaged Master Pages (slide
masters). One of them by default is blank,
and the rest have a specific background.
(Figure 8.14)
179
180
View Button
Scroll Bar
181
182
Outline view serves for two purposes. 2) Comparing the slides with your
outline (if you have prepared one in
1) Making changes in the text of a slide: advance). If you notice from your outline
that another slide is needed, you can create
• Add or delete text in a slide just as it directly in the Outline view or you can
in the Normal view. return to the Normal view to create it,
then return to review all the slides against
• Move the paragraphs of text in the
your outline in the Outline view.
selected slide up or down by using the
up and down arrow buttons (Move Up
183
184
185
• Drag the cursor to the last slide • Delete or rename the selected slide.
thumbnail.
• Change the Slide Layout.
A dashed outline of a rectangle forms
as you drag the cursor through the • Change the Slide Transition.
slide thumbnails and a thick black
– For one slide, click the slide to select
border is drawn around the selected
it. Then add the desired transition.
slides. Make sure that this rectangle
includes all the slides you want to – For more than one slide, select the
select. (Figure 8.25) group of slides and add the desired
transition.
To move a group of slides:
• Mark a slide as hidden. Hidden slides
1) Select the group of slides.
will not be shown in the slide show.
2) Drag and drop the group to their new
• Copy or cut and paste a slide.
location. The same vertical black line
appears to show you where the group of
186
Handout view is for setting up the 8.8.1. Inserting, deleting and rearranging
layout of your slides for a printed handout. slides
Click the Handout tab in the workspace,
then choose Layout in the tasks pane Tip Note: Remember to save frequently
(Figure 8.26). You can then choose to while working on the presentation, to
print one, two,three, four, or six slides per prevent any loss of information. You might
page. also want to activate the AutoRecovery
function (Tools → Options → Load/
To print a handout: Save → General). Make sure that Save
AutoRecovery information is selected and
1) Select the slides using the Slide Sorter. that you have entered a suitable recovery
(Use the steps listed in selecting a frequency.
group of slides.)
2) Select File Print or press Ctrl+P to 8.8.2. Creating the first slide
open the Print dialog box.
The first slide is normally a title
3) Select Options in the bottom left slide. Decide the layout as per its purpose
corner of the Print dialog box. of presentation. You can use the pre-
4) Check Handouts in the Contents packaged layouts available in the Layout
section, and then click OK. section of the Tasks pane. Suitable layouts
are Title Slide (which also contains a
5) Click OK to close the Print dialog
section for a subtitle) or Title Only, Title
box.
and Content, Title and two content and so
on.
187
188
• Insert → Slide.
Step 2: Select the layout slide Figure 8.28 Inserting a new slide using Right Clicking
that best fits your on the previous slide
needs. (Figure 8.28).
189
Figure 8.30 Deleting a slide using Edit Figure 8.31 Deleting a slide using Right
menu click
• Or else, right click the slide and • Drag that slide to the desired position
choose Delete slide from the pop-up by holding the mouse using left click.
menu. (Figure 8.31) • Release the mouse once you drag the
Tip Notes slide to the desired place. (Figure
8.32)
The same procedure can be
followed by using the Slide sorter Tip Notes
view also to delete a single slide or
multiple slides. The same can be done using
the Slide sorter view.
8.8.5. Rearranging slides
8.9. Running the slide show
If you want to rearrange the slides ,
you need to follow the procedure below. To run the slide show, do one of the
fol low ing:
• Select the slide that you want to
rearrange. • Click Slide Show → Slide Show on the
main menu bar. (Figure 8.33).
190
Figure 8.34 Running Slideshow using Slideshow button from the Toolbar
191
Tip Notes
192
193
194
Figure 8.41 Creating New Master using Master View and right click option
195
196
197
198
Student Activity
• Empty presentation
• Template
3. Identify and write the differences between creating a presentation using Impress and
MS PowerPoint.
4. Create a presentation of “My State” using all the types of slide layouts.
5. Run the slideshow of “My State” by fixing durations of time for each slide.
Teacher Activity
This entire chapter can be taught with the help of the following methodology.
1. Laboratory Activity – the teacher can make the entire class to go to the lab and can
explain the concept using a projector in the lab.
2. Or else, the teacher can demonstrate the concept using a PC and a projector inside the
classroom.
3. The teacher apart from this Open source software, can compare the elements of the
windows and creating presentations in MS PowerPoint also.
199
Part – II
Very Short Answers
1. What is the difference between a slide and a slide show?
2. How many in-built slide layouts does impress consist of?
200
Part-III
Short Answers
1. How many types of views are provided by Impress to its users?
2. Who uses the presentation software and why?
3. Define the Slide Sorter view and its significance.
4. What is a Normal view? Explain.
5. How are transition effects helpful in creating an effective presentation in Impress?
Part-IV
Explain in Detail
1. Valarmathi’s teacher asks her to create a presentation in OpenOffice Impress. As
Valarmathi has never worked in Impress before, help her to perform the following
tasks:
a. She wants that except for the first slide, all the slides should have the same design.
For this, what does she need to do?
b. To easily communicate with her audience, she wants to provide them with a hard
copy of the slides of the presentation. What should she create for it?
c. She wants to insert some pictures and movie files in some slides. How can she do
that?
d. Suggest her the view that would be the most suitable for showing the presentation
to the audience.
e. To make her presentation more attractive, she wants to add some effects in it. How
can she do it? Suggest.
2. Explain how a presentation can help a salesperson to promote his/her products.
3. Sivabalan created a presentation to be shown at his school’s Annual Function. Just
5 minutes before the presentation, he noticed that he has misspelt the name of the
school, which is appearing in all the 30 slides of the presentation. How can he rectify
this mistake in all the slides in one-shot?
4. List some advantages of using templates.
201
Internet Internet
Extranet
Extranet
The World
The World
Intranet
IT - Dept. Company
Collaborators
Collaborators
Only
Figure 9.1
The Internet works by using a protocol called TCP/IP. TCP/IP allows one computer to
talk to another computer via the Internet through compiling packets of data and sending
them to right location.
203
The heart of intranets and the internet is called as the Domain Name
System(DNS), the way computers can contact each other and do things such
as exchange electronic mail or display Web pages. The Internet Protocol (IP)
uses this Internet address information and the DNS to deliver mail and other
information from computer to computer
Table: 9.2
Country Level Domain Name Description
.in India
.au Australia
.us United States of America
.jp Japan
.ru Russia
.sg Singapore
204
A URL is an address that shows where a particular page can be found on the World
Wide Web. URL is an abbreviation for 'Uniform Resource Locator (URL)'.
The internet as a whole does not have a single controller. But the internet society,
which is a voluntary membership organization, takes the responsibility to promote global
information exchange through the internet technology. Internet Corporation for Assigned
Names and Numbers( ICANN) administers the domain name registration. It helps to avoid a
name which is already registered.
9.3.4 What is W3C?
W3C stands for "World Wide Web Consortium." The W3C is an international
community that includes a full-time staff, industry experts, and several member organizations.
These groups work together to develop standards for the World Wide Web.
The World Wide Web Consortium (W3C) is an international organization committed
to improving the web. It is made up of several hundred member organizations from a variety
of related IT industries. W3C sets standards for the World Wide Web (WWW) to facilitate
better communication ability and cooperation among all web stakeholders. It was established
in 1994 by the creator of the WWW, Tim Berners-Lee.
205
206
Today, many dongles provide wireless capabilities. For example, USB Wi-Fi adapters
are often called dongles. Since most computers now have built-in Wi-Fi chips, mobile data
adapters, such as 3G and 4G dongles, are more prevalent. These types of dongles allows to
connect to the Internet even when Wi-Fi is not available.
2. Job search :-Nowadays, many people search for their jobs online using naukri.
com,monster.com, recuritmentindia.com etc as it is quicker .
3. Online Shopping :-The internet has also facilitated the introduction of a new market
concept consisting of virtual shops. For example amazon.com
4. Stock market updates :- Selling or buying shares sitting on computer through internet.
Several websites like ndtvprofit.com, moneypore.com, provide
information regarding investment
5. Travel :- One can use internet to gather information about various tourist
place. It can be used for booking Holiday tours. Some of the web
sites providing this service are goibibo.com, makemytrip.com,
olacabs.com.
6. Research :-Research papers are present online which helps the researcher do
a literature review
7. Video conferencing :- It enables direct face-to-face communication across networks
via web cameras, microphones, and other communication tools.
8. e –commerce :- e–commerce (electronic commerce or EC) is the buying and
selling of goods and services, or the transmitting of funds or data,
Largest e-commerce companies in India are Flipkart, Snapdeal,
Amazon India, Paytm.
9. Online payments :- The rising boom of online payments in India has given way to
many new entrants in the industry such as Paytm etc who are
majorly wallet driven payment companies.
208
210
Looking for information on the internet is called surfing or browsing. To browse the
internet, a software called the web browser or browser is used.
E-commerce, social media, and many other things we take for granted today would
be impossible without internet browsers.Web browsers translates HTML documents of the
website and allows to view it on the screen.
9.8.1 Familiar Internet Browser
1. Google Chrome is a freeware familiar web browser developed by Google Inc. It is best for
its speed, simplicity, security, privacy and customization features. Google Chrome supports
on Android 4.0 or higher, iOS 6.0 or higher, Mac OSX 10.6 or higher and Windows (XP sp2
or higher) and Linux system.
2. Mozila Firefox is a free and open source web browser developed by Mozilla Foundationand
Mozilla Corporation. FireFox is default browser in Ubuntu . It supports Windows, Mac
OS X, Linux and Android system.
3. Internet Explorer commonly known as Microsoft Internet Explorer or Windows Internet
Explorer is the first or default browser for a Windows PC. It was developed by Microsoft.
4. Safari is a web browser developed by Apple Inc. and comes with OS X and iOS. Some
version of safari browser also supports Windows Operating System. exclusively used in
Apple Mac system.
9.8 Web Page Vs Web Site
Websites
213
214
• The different type of network are LAN, MAN, WAN, PAN, CAN and WLAN
• Two things required for TCP/IP needed are
a) Message to transmit
b) Means to reliably transmit the message
• Each computer on net is called as host
• Internet Corporation for Assigned Names and Numbers ( ICANN) administers the
domain registration to avoid name already registered.
• W3C stands for world wide web consortium.
• Hotspots are sites that offer internet access over wireless local network.
• Video conferencing enables direct face-to-face communication across networks via
web cameras, microphones, and other communication tools.
• E–commerce (electronic commerce or EC) is the buying and selling of goods and
services, or the transmitting of funds or data, over an electronic network, primarily the
Internet.
• Social networking is the use of internet-based social media programs to make
connections with friends, family, classmates, customers and clients.
• Voicemail is a system of sending messages over the phone.
• Email is short for 'electronic mail' similar to a letter, it is sent via the internet to a
recipient
• An internet browser, also known as a web browser, is a software program that you can
use to access the internet and view web pages on your computer.
• A website is a collection of webpages.
• Dongle refers to removable component used for enabling software protection. E.g.
USB, WiFi
• A webpage is a page of a Website.
• E-commerce is the activity of buying or selling of products on online services or over
the Internet.
• Electronic governance or e-governance is the application of information and
communication technology (ICT) for delivering government services.
215
Part – I
Choose the correct answer
1. What is the expansion of WLAN?
a) Wireless Local Area Network b) Wired local Area Network
c) Wireless Local Area Netware d) Wireless Area Netbande
5. Expansion of W3C
a) World Wide Web Consortium b) Wide World Web Consortium
c) World Web Wide Consortium d) World Wide Web Consortum
216
Activity
Student Activity
Explain the different types of network.
Mention a few internet services you know.
Mention a few Internet Applications other than that is given in the textbook
List some browsers not given in the text book
Teacher Activity
Students are to be taught to develop Static and Dynamic Websites as workshop.
GLOSSARY
Acronym Description
VSNL Videsh Sanchar Nigam Ltd
TCP Transmission Control Protocol
IP Internet Protocol
Host A host is a computer connected to a computer network
217
References:
1. Mastering HTML, CSS & JavaScript Web Publishing – Laura Lemay, Rafe Colburn, Jennifer
Kyrnin – BPB Publications.
218
Learning Objectives:
HTML was originally
The students will learn the following: derived from SGML
(Standard Generalized
• How to create web pages using HTML. Markup Language) a
larger, complicated document
• What are the various structural tags
available to create an HTML document. processing language. To learn
HTML, no need to know about
• What are the various page formatting SGML.
tags available and how to use them.
219
An HTML document contains the text of the page itself and HTML tags, which define
the structure and appearance of the document. It also contains hyperlinks to other pages
or to include multimedia elements such as audio, video, animations etc. The Entire HTML
document is bounded within a pair of <html> and </html> tags.
<html>
<head>
<title> My First Web Page </title>
</head>
<body>
This is my First Web Page
</body>
</html>
HTML tags generally have an opening and closing tag . Opening tag turn-on a feature
such as heading, bold, center etc., and closing tag turn-off its features. Opening and closing
tags have the same name, but the closing tag name is preceded by a slash ( / ). For example,
<html> is an opening tag, </html> is a closing tab.
Every web document has two sections viz. Heading Section and Body Section. The
heading section is used to show the title of a webpage in title bar or tab heading in browser.
The head section should begin with <head> tag and end with </head> tag. The tag <title> is
used to specify the title of the webpage.
The body section is used to display the main content on the browser window. The
body section should be with defined within <body> and </body> tags. Whatever the text you
specify between these tags will be displayed on the browser window. (Refer Figure 10.1)
220
Body Section
<html>, <head>, <title> and <body> these four tags are known as structural tags. These
tags are basic essential elements to construct a web page.
Table: 10.1
Mozilla Firefox
Google Chorme
223
The <body> tag defines the document’s body. The contents of an HTML page reside
within the <body> tag. <body> tag contains several attributes.
` By default all the browsers display the text on white background. However, the
background color of the browser can be changed by using bgcolor tag.
224
<html>
<head>
<title> Background Colour change </title>
</head>
<body bgcolor = yellow>
This is my browser with different colour
</body>
</html>
225
For the above code, text will be displayed in Red color on yellow background. You can also use
colour code instead of colour name.
(iii) Background image: background=image
An image or picture can be applied as background to a webpage. When you insert an
image as background, the text will be displayed on top of the image. Background images can
be a texture or bitmap or even a photo.
When you insert a small image, the browser takes the image and repeats it across and
down to fill browser window. Inserting animated images (GIF images) creates more interesting.
The tag to apply an image as background:
<body background = “image_name_with_extenstion”>
226
227
The statement <body leftmargin = 50 topmargin = 50> will indent the body text 50
pixels away from the left as well as from top edge of the browser.
Illustration 10.5 – Create a web page (HTML document) to the following specification.
• Title: My First Web Page
• Text to be displayed: Welcome to Computer Applications
• Background color: Lime
• Body text color: Blue
• Margin: from left and top 1 inch
<html>
<head>
<title> My First Web Page </title>
</head>
<body bgcolor = Lime text = blue leftmargin = 72 topmargin = 72>
Welcome to Computer Applications
</body>
</html>
Remember that, when you use more than one attribute within an HTML element (Tag)
space is used as separator.
10.4 Headings
Headings are used to include titles to sections of a web page. HTML has six levels of
headings viz. <h1> to <h6>. The number with h indicates the level of heading. Header tags
display the body text as bolder and larger in size according to its level.
The syntax of heading tags:
<h…> Heading text </h…>
228
<H1>
<H2>
<H3>
<H4>
<H5>
<H6>
Align is an attribute to set right, center and justify alignment to headings. Left is the
default alignment, which is not supported in latest version of HTML. Justify alignment is not
supported by older browsers.
The tag is to specify the alignment to headings:
<h# align = value>
Where # is the level number, value may be Right, Center or Justify. Justify alignment is
only used for paragraphs. The meaning of alignment is similar to what you learnt from Word
processor.
229
<html>
<head>
<title> Heading </title>
</head>
<body>
<h1 align=center> Welcome to Computer Application </h1>
<h2 align=right> Welcome to Computer Application </h2>
</body>
</html>
Browser display
multiple lines as a
single statement.
}
Because, the browser
does not recongnize
returns
Multiple lines
230
Multiple lines
without <br> tag
}
}
In HTML, paragraphs are created using the <p> tag. The content what you type between
<p> and </p> is identified as a paragraph and displayed as a paragraph by the browser.
Because, the browser does not recognize returns (Pressing “Enter” Key). Remember that in
word processors, pressing “Enter” key is identifying a paragraph.
231
You there already know the different types of paragraph alignments in Word processor.
In HTML documents there are four paragraph alignments viz. Left, Right, Center and Justify.
The text that you type between <p> and </p> is by default aligned to the left. To change the
alignment of a paragraph align attribute can be used with <p> tag.
10.6 Comments
Comments are used to describe the page or provide some kind of indication of the
status of the page. The tag <!> is used to create comments. In HTML, the text what you type
within this tag is considered as comments and it is ignored by the browser. Comments never
show up onscreen. Comments can be placed anywhere in HTML document.
232
Table 10.3
233
Workshop - 1
Type the following code in a text editor, save it as an html file and open in a browser.
Observe and study their functions by viewing them in your browser. Then, make the required
changes and look what happens.
<html>
<body>
<h1> Thai Pongal </h1>
<p> Pongal is a harvest festival dedicated to the Sun. It is a four-
day festival which according to the Tamil calendar is usually
celebrated from 14 January to 17 January. </p>
<p> Thai Pongal is one of the most important festivals celebrated
by Tamil people in Tamil Nadu, Puducherry and the country
of Sri Lanka, as well as Tamils worldwide, including those in
Malaysia, Mauritius, South Africa, the United States, Singapore,
Canada, Myanmar (Burma) and the UK. </p>
<p> Thai Pongal corresponds to Makara Sankranthi, the harvest
festival celebrated throughout India. </p>
</body>
</html>
234
Part – I
Choose the correct answer
1. HTML is acronym for
(a) Hyper Transfer Markup Language (b) Hyper Text Markup Language
(c) Hyper Transfer Makeup Language (d) Hyper Text Makeup Language
2. The coded HTML keywords that indicates how web browser should format and display
the content is called…….
(a) Tags (b) Attributes (c) Headings (d) Body
3. Which of the following is a special word used inside a tag to specify additional information
to the tag?
(a) Tags (b) Attributes (c) Headings (d) Body
4. HTML tags should be specified within:
(a) [ ] (b) { } (c) ( ) (d) < >
5. An HTML document is bounded within a pair of ….. tags
(a) <body> ……. </body> (b) <title> ……. </title>
(c) <html> ……. </html> (d) <head> …… </head>
6. Which of the following symbol is used to define a closing tag?
(a) < > (b) % (c) / (d) \
7. Which section of the browser window displays the main contents?
(a) Head (b) Body (c) Title (d) Heading
8. Which of the following tag is a structural tag?
(a) <html> (b) <h1> (c) <br> (d) <p>
9. In HTML, colours are represented as
(a) Binary values (b) Octal values (c) Decimal values (d) Hexadecimal values
10. Which of the following symbol is used to prefix with hexadecimal value representing
colour in HTML?
(a) % (b) # (c) @ (d) &
11. Which of the following attribute is used to change text colour within body tag?
(a) bgcolor (c) background (c) text (d) color
12. Within body section, which of the following attribute is used to set top margin?
(a) margin (b) top (c) topmargin (d) leftmargin
235
Part – II
Very Short Answers
1 Sandhiya is creating a webpage. She is entering HTML code on her computer. In between,
she keeps pressing “Refersh” / “Reload” button on her browser. What is the purpose?
2. Explain with the help of an example the difference between container and empty elements
of HTML.
3. What is wrong in the following coding?
<html>
<my web page>
<title> Welcome to my web page
</head>
</title>
4. How do you define comments in HTML?
5. How do you include an image as your web page background?
Part-III
Short Answers
1. Explain the attributes available with <body> tag.
2. What are the attributes available in <html> tags?
3. How do you view the source file?
4. How do you save a file as HTML file?
Part-IV
Explain in Detail
1. Write a HTML program to display your school name and address using various
geading level tags.
2. Write the basic structure of a HTML program.
236
References:
1. Mastering HTML, CSS & JavaScript Web Publishing – Laura Lemay, Rafe Colburn, Jennifer
Kyrnin – BPB Publications.
2. Informatics Practices, A text book for CBSE class XII – Sumita Arora – Dhanpat Rai & Co.
3. Computer Application (Commerce) – Text book of XII – Department of Education –
SCERT, Kerala.
4. https://www.w3schools.com/html/default.asp
237
Learning Objectives:
238
Visually these two tags display the contents very similar to <b> and <i> respectively.
But, technically the meaning of <strong> and <em> is “Important” not just bold and italics.
239
<html>
<head>
<title> Additional Text Formatting Tags </title>
</head>
<body>
<strong> Welcome to Tamilnadu </strong> <br>
<em> Welcome to Tamilnadu </em>
</body>
</html>
<html>
<head>
<title> Small and Big tags </title>
</head>
<body>
Govenment of Tamilnadu <br>
<big> Madurai Corporation welcomes you </big> <br>
<small> Thank you! Visit again </small>
</body>
</html>
Highlighting is an important formatting feature used to call attention to the reader. The
<mark> tag is used to highlight the text in HTML. This is also a container tag. Whatever the
text given between <mark> and </mark> will be displayed as highlighting with default color
(mostly yellow).
240
<html>
<head>
<title> Highlighting text </title>
</head>
<body>
A Computer is an <mark> electronic </mark> device
</body>
</html>
241
<html>
<head>
<title> Subscript and Superscript </title>
</head>
<body>
The scientific notation of Water is H<sub>2</sub>O <br>
(a+b)<sup>2</sup> = a<sup>2</sup> + 2ab + b<sup>2</sup>
</body>
</html>
(a+b)<Sup>2</sup>=a<sup>+2ab+b<sup>2</sup>
The text what you see on browser cannot be deleted or inserted. But you can show a text
as deleted or inserted. <del> and <ins> tags are used to markup a segment of text as deleted or
inserted respectively. These two tags are container tags.
The text what you specify between <del> and </del> will be displayed as strike through.
The text you specify between <ins> and </ins> will be shown as underlined.
242
<html>
<head>
<title> Inserting and Deleting text </title>
</head>
<body>
I am coming from <del> Madras</del> <ins> Chennai </ins>
</body>
</html>
Table: 11.2
Tag Usage Tag Usage Final Output
To show important
<b> To show the text in bold <strong> Bold
text
<i> To show the text as italics <em> To Call attention Italics
<u> To show the text as underlined <ins> To insert a text Underline
To display text as
<s> To show the wrong text <del> Strike through
striked through.
While writing HTML document, you should use the appropriate tags according to its
usage. If you want to show a text as underlined use <u> instead of <ins>.
Paragraphs can be centered with Align attribute with <p> tag. But for non-paragraph
text contents can be centered with <center> tag. The <center> tag is used to centralize a segment
of text. It is a container tag. That means, what you type between <center> and </center> will
be displayed in the center of the browser.
243
<html>
<head>
<title> Center the text </title>
</head>
<body>
<h1 align = center> Thiruvallur </h1>
<center> Thiruvallur was originally known as Thiruvallur which specifies the
sleeping position of the holy lord <b> "Balaji" <b>, in the
<b> <u> Veeraragava swamy temple of Thiruvallur. </b> </u> </center>
</body>
</html>
Output will be
<html>
<head>
<title> Changing Font Properties </title>
</head>
<body>
<font face="Arial Black" size=1 color=red> Font Size 1 </font> <br>
<font face="Arial Black" size=2 color=blue> Font Size 2 </font> <br>
<font face="Arial Black" size=3 color=green> Font Size 3 </font> <br>
<font face="Arial Black" size=4 color=yellow> Font Size 4 </font> <br>
<font face="Arial Black" size=5 color=pink> Font Size 5 </font> <br>
<font face="Arial Black" size=6 color=red> Font Size 6 </font> <br>
<font face="Arial Black" size=7 color=blue> Font Size 7 </font> <br>
</body>
</html>
245
Browser first tries to find out whether the font-name in the list is supported or not. If
the first font is not supported by the browser, then it displays the text in second font, otherwise
it will display next one. If no font in the list is supported, then the browser will display in the
default font.
In the above code, consider the font names “Bookman old style1” and “Broadway1” are
not supported by any browser. (Because, the names has been changed). So, the text “Welcome
to HTML” will be displayed in “Forte” style. If your browser does not support “Forte” font,
the text will be displayed in “Arial” font, otherwise the browser shows the text in default font
setting. In the case of Internet explorer, the “Times New Roman” is the default font to display
the contents.
11.3 Section Break
The <hr> (Horizontal Rules) tag, which is known as “Thematic Breaks” separate
sections of an HTML document visually. It produces a horizontal line spread across the width
of the browser. This is an empty tag, which means the tag has no closing tag.
<html>
<head>
<title> Horizontal Tag </title>
<head>
<body>
<h1 align=center> Tamil Language </h1>
<font face = "Arial Black" size = 5 color="Red">
Tamil is a Dravidian language predominantly spoken by the Tamil people of
</font>
<hr>
<font face = "Copperplate Gothic Bold" size = 6 color="Blue">
India, Sri Lanka, Singapore, Malaysia, Mauritius and South Africa
</font>
<hr>
<font face = "Verdana" size = 6 color="Green">
Tamil is an official language of India (Tamilnadu and Puducherry),
Sri Lanka and Singapore.
</body>
</html>
246
247
There are five core tags are used to create a table in HTML. They are,
• <table> tag is used to create a table.
• <tr> tag defines table rows
• <th> tag defined table columns
• <td> tag is used to specify the data in a cell
• <caption> tag defines title for the table
• Apart from these five core tags, <tbody>, <thead> and <tfoot> tags are also used to
define and control whole sections of table. All the above tags are container tags.
11.4.2 Creating Table
With the following illustration, you can learn how to create a table in HTML.
Illustration 11.11: An HTML code to Table tags
<html>
<head>
<title> Creating Table </title>
</head>
<body bgcolor="PaleGoldenRod">
<Table border=1>
<Caption> Books and Authors </Caption>
<TR>
<TH> Book </TH>
<TH> Author </TH>
<TH> Publisher </TH>
</TR>
<TR>
<TD> Foxpro 2.5 </TD>
<TD> R.K. Taxali </TD>
<TD> BPB Publications </TD>
</TR>
<TR>
<TD> Visual Basic .NET </TD>
<TD> Jeffrey R. Shapiro </TD>
<TD> Tata McGraw Hill </TD>
</TR>
<TR>
<TD> Core Java Vol 1 </TD>
<TD> Horstmann Cornell </TD>
<TD> Pearson </TD>
</TR>
</Table>
</body>
<html>
In the above HTML code, the <Table border=1> tag creates a table structure with
border. The code <Caption> Books and Authors </Caption> display the text specified
between <Caption> as title to the table.
249
<Table border=1>
<Caption> Books and Authors </Caption>
{
<TR> <TH> Book </TH>
Row 1
{
<TR> <TD> Foxpro 2.5 </TD>
Row 2
{
<TR> <TD> Visual Basic .NET </TD>
Row 3
{
<TR>
<TD> Core Java Vol 1 </TD>
Row 4
<TR> <TR>
<TD>Foxpro 2.5</TD> <TH>Book</TH>
<TD>R.K. Taxali</TD> <TH>Author</TH>
<TD>BPB Publications</ <TH>Publisher</
TD> TH>
</TR> </TR>
251
1. Align
Used to specify the horizontal alignment of content within a cell. Left is the default
alignment. Possible values are Right and Center.
2. VAlign
Used to specify the vertical alignment of the contents within a cell. Bottom is the default
alignment. Possible values are Top and Middle
3. Width
Rowspan attribute is used to merge two or more cells in a row as a single cell.
Colspan attribute is used to merge two or more cells in a column as a single cell.
Illustration 11.13: An HTML code to demonstrate the attributes of <td>, <th> and
<td> tags.
<html>
<head>
<title> Attributes of td, tr and th tags </title>
</head>
<body>
<table border align=center>
<Caption> Govt. Hr. Sec. School, Mullai Nagar, Thiruvallur
<tr>
<th colspan=6> Boys and Girls Strength during 2016-17 and 2017-18 </th>
</tr>
<tr align=center>
<th rowspan=2> Class </th>
<th rowspan=2> Group </th>
<th colspan=2 bgcolor=silver> 2016 - 17 </th>
<th colspan=2 bgcolor=gray> 2017 - 18 </th>
</tr>
<tr>
252
Lists in HTML
HTML supports three types of lists viz. numbered, unnumbered and definition. These
lists are called as Ordered List, Unordered List and Definition List respectively.
1. Numbered List / Ordered List
Numbered list is created within the tag pair <OL> ….. </OL> tag. The tag <LI> is used
to present the list item in the list. Ordered list displays items in a numerical or alphabetical
order. Both <OL> and <LI> tags are container tags. But the usual practice, closing tag
</LI> is normally not used.
253
Table: 11.3
Type value Numbering style
1 Standard Arabic Numerals 1,2,3,4,……………….
a Lowercase letters a, b, c, d, …………
A Uppercase letter A, B, C, D ………..
i Lowercase Roman numerals i, ii, iii, iv, v ……………
I Uppercase Roman numerals I, II, III, IV, V ………..
Start – is used to specify the number or letter with which to start the list. The default starting
point is 1. The value of the start attribute should be a decimal number, regardless of the
numbering style being used.
254
255
256
3. Definition List
Definition list is different from other two types of list. No bullet or number is provided
for the list items. In this list type, the list element has two parts.
(1) A definition term
(2) The definition description
Definition list is surrounded within <DL> ……. </DL> tags.
Definition term is presented in between <DT> ….. </DT> tag and
Definition description should be surrounded within <DD> ………… </DD> tag.
Illustration 11.18: An HTML code to demonstrate Definition list
<html>
<head>
<title> Definition List </title>
</head>
<body>
<DL>
<DT> HTML: </DT>
<DD> Hyper Text Markup Language </DD>
<DT> Webpage: </DT>
<DD> A web page is a document that is suitable for the World Wide Web and
web browsers. A web browser displays a web page on a monitor or mobile device.
</DD>
</DL>
</body>
<html>
257
Definition List
Nested Lists:
A list block can be defined inside another list is called as nested list.
Links:
Link is an important feature of HTML to connect web resources. Link in HTML is used
to create hyperlinks to web content. Web content may be an HTML document or an external
webpage or any multimedia content such as an image, video, audio, animation etc., or even a
part of the current document.
258
URL to load
The above link code creates the target of the hyperlink to the website http://thscert.org/
index.html. At the time the user clicks the link, the browser opens the home page of the URL.
Internal Links:
Creating a link to a particular section of the same document is known as Internal Link. To
create an internal link, the attribute Name is used along with <A> tag. The Name attribute of
<A> tag establish the link to the content within the document.
Illustration 11.20: An HTML code to demonstrate Internal Linking:
<html>
<head>
<title> South India </title>
</head>
<body>
<h1 align = center> South India </h1>
<p> South India is the area encompassing the Indian states of
<A href = #AP> Andhra Pradesh, </A>
<A href = #KR> Karnataka, </A>
<A href = #KL> Kerala, </A>
<A href = #TN> Tamil Nadu </A> and Telangana as well as the union territories of
Lakshadweep, Andaman and Nicobar Islands and Puducherry, occupying 19% of India's
area (635,780 km2 or 245,480 sq mi). </p>
<A Name = AP><B> Andhra Pradesh </B> </A>
<p> Andhra Pradesh is one of the 29 states of India. Situated in the south-east of the country,
it is the eighth-largest state in India. The largest city in Andhra Pradesh is Visakhapatnam.
</p>
<A Name = KR> <B> Karnataka </B> </A>
259
External Link:
To Establish link with an external web page in known as external link. It is created by
providing the URL of the external file in the HREF attribute of <A> tag of the current page.
260
261
262
Workshop:
1. Write an HTML code for a webpage of your school with the following specifications:
o A heading followed by a paragraph about your school in 10 lines using text formatting
tags and attributes.
o Include an ordered list with the subjects taught your school.
2. Write an HTML code for a webpage of your district with the following details and features:
o A heading followed by a paragraph of 15 sentences about the district using text
formatting tags and attributes.
o A list of the tourist places in the district. (Use Unordered list)
3. Write an HTML code to show the following table in a webpage:
Students studying Computer Subjects
SN School No. of Students
Comp. Comp. Comp.
Science Application Technology
1 Govt. HSS, M.K.B. Nagar, Chennai 39 25 62 --
2 Chennai G HSS, M.H. Road, Chennai 11 123 141 87
3 Dr. GMTTV HSS, Amman Koil St., Chennai 45 76 23
79
4 Chennai G HSS, Rotler St, Chennai 112 18 63 43
5 Chennai B HSS, G.Koil St., Chennai 84 31 52 15
263
o In main page write about “Population” (Refer XI Economics text book, Page No: 228-
229. Para 11.5) and create list with the following terms:
o Write separate pages for “Density”, “Urbanisation” and “Sex ratio” (For contents, refer
XI Economics text book, Page No: 229. Para 11.5.1, 11.5.2 and 11.5.3).
o In main page, create link with respective pages to the list items.
Evaluation
Part – I
Choose the correct answer
1. Which of the following tags are called as physical style tags?
(A) <html>, <b>, <br> B) <b>, <br>, <u>
(C) <A>, <b>, <i> (D) <b>, <i>, <u>
264
(A) Inner List (B) Nested List (C) Outer List (D) Listing List
10. To create internal link, which of the following attribute should be used?
(A) link (B) name (C) local (D) Inter
Part – II
Very Short Answers
1. Write a short note on (i) <strong> (ii) <em>
2. What is the use of <mark> tag?
3. Write the following equation as HTML notation:
Pd = 2s – Q2
4. Write about any two attributes of font tag.
5. What is thematic break?
6. What is pixel?
7. What are the types of list in HTML?
8. How will you define numbered list?
265
A B
C
Part-IV
Explain in Detail
1. Write an HTML code the show the following text:
MODERN ATOMIC THEORY
The findings of modern atomic theory are given as follows:
• An atom is the smallest particle which takes part in chemical reaction.
• An atom is considered to be a divisible particle.
• The atoms of the same element may not be similar in all respects.
eg: Isotopes (17Cl35, 17Cl37)
• The atoms of different elements may be similar in some respects.
eg. Isobars (18Ar40, 20Ca40)
A B
C D E G
F
266
References:
1. Mastering HTML, CSS & JavaScript Web Publishing – Laura Lemay, Rafe Colburn, Jennifer
Kyrnin – BPB Publications.
2. Informatics Practices, A text book for CBSE class XII – Sumita Arora – Dhanpat Rai & Co.
4. https://www.w3schools.com/html/default.asp
267
Learning Objectives:
268
Bharathiyar
269
270
Mahakavi Bharathi
Align:
The align attribute used to align the image with respect to the base line of the text. This
attribute has the following values.
• Bottom – Aligns the bottom of the image with the baseline of the text. This is the default
setting.
• Middle – Aligns the middle of the image with the baseline of the text.
• Top – Aligns the top of the image with the baseline of the text.
Left and Right values of Align attribute:
Using left and right values with align attribute, displays the image on the left and right
side of the text.
Illustration 12.3: An HTML code to demonstrate baseline of text
<html>
<head>
<title> Attributes of <img> tag </title>
</head>
<body>
<h2> Attributes of image tag </h2>
<img src="D:\Images\Bird.jpg" alt="Parrot Image">
This text is aligned in the bottom of the image by default <br> <br> <br>
<img src="D:\Images\Bird.jpg" alt="Parrot Image" align=top>
This text is aligned in the top of the image <br><br>
<img src="D:\Images\Bird.jpg" alt="Parrot Image" align=middle>
This text is aligned on the middle of the image
</body>
</html>
271
Video and Sound are the core part of the modern web pages. In HTML, a video or
audio content may be included as Inline or external data. The inline refers to when audio or
video files are handled as part of the page. These media files play the audio or video when the
page is visible in the browser window. The external refers to linking external audio or video
files as url.
The <embed> tag is used to attach an audio or video file easily within webpage. This tag
includes the control of the multimedia automatically in the browser. The <noembed> tag may
be used as an alternate to display some other media file, in case the browser does not support
<embed> tag.
Src is the primary attribute used with <embed> tag. The src attribute is used to specify
the name of the media file with its source location. Other attributes such as alt, is height, width
and align are used as it is used with <img>.
General Format:
273
<html>
<head>
<title> Adding Multimedi Files </title>
</head>
<body>
<img src="D:\Images\TN_Logo.png" alt="Govt. of Tamilnadu Logo" height=25%
width=15%>
<marquee> Welcome to <b> The State Council of Educational Research and Traning
</b>, Tamilnadu </marquee>
<embed src="D:\CS_Videos\CS_Video.mp4" width=50% height=50%> </embed>
</body>
</html>
<html>
<head>
<title> Inline Sound </title>
</head>
<body>
<img src="D:\Images\TN_Logo.png" alt="Govt. of Tamilnadu Logo" height=25%
width=15%>
<marquee> Welcome to <b> The State Council of Educational Research and
Training </b>, Tamilnadu </marquee>
<bgsound src="D:\CS_Videos\Tamil Thai Vazhthu.mp3" loop=infinite>
</body>
</html>
274
The <form> tag is used to create a form. An HTML form starts with <form> and ends
with </form> tag. Forms contain many types of form elements, such as text boxes, radio
buttons, check boxes, buttons and drop-down lists.
The form has a special element, known as submit button, which will submit the entries
of a form to a server application to process the entries. Each element in the form is assigned a
name using the name attribute. Users enter values into the text boxes, or make selections from
the radio buttons, check boxes, and drop down lists. The values they enter or select are passed
with the name of the corresponding form element to the Web server.
The important attributes used with the <form> tag are method and action attributes.
Method
</Form>
In HTML, there are different types of form controls used to collect data. They are Text
box, Password, Checkbox, Radio buttons, Text area, Select box, Submit and Reset Button.
Most of the form controls are created by using <input> tag. The <input> is an empty tag
used to create different form elements or controls such as text box, radio buttons so on.
Type:
This attribute is used define the type of control to be created by <input> tag. The values
of type attribute is listed below:
Table: 12.1
Value of type
Description
attribute
Create a Text Box. The element used to get all kind of text input such
Text
as name, address etc.,
Similar as Text box. But, while entering data, the characters are
Password
appearing as coded symbols such as asterisk.
Check box is an element appearing like a small square box. When
Checkbox the user click on the square a tiny tick mark will appear inside the
square. This element is used to select multiple options.
Radio button is used to select any one of the multiple options from
the list. This element looks like a small circle, when the user select
Radio Button an item, a tiny dot will appear within the circle. If the user selects
another option, previously selected option will be deselected. This
means, user can select any one of the given option form a group.
It is a special command button used to clear all the entries made in
Reset
the form.
It is also a special command button used to submit all the entries
Submit
made in the form to the backend server.
This is a standard graphical button on the form used to call functions
Button
on click.
276
<html>
<head>
<title> Login Form </title>
<body>
<h3 align=center> TamilNadu State Council of Educational Research and Training,
Chennai </h3>
<Form Action = "mailto:abcd.xyz@com" method=post>
<p> User Name:
<Input type = text name="user_name" size = 20 maxlength = 15> </p>
<p> Password:
<Input type = password name="pass" size = 20 maxlength = 15> </p>
<Input type = reset value = "Clear">
<Input type = submit value = "Login">
</Form>
</body>
</html>
The output will be:
User Name:
Password:
Clear Login
Note: Data received from the user can be send to receiver through mail using “mailto” action.
277
<html>
<head>
<title> HTML - Form and Controls </title>
</head>
<body>
<h3 align=center> Forms and Controls </h3>
<Form action="mailto:abcd.xyz@com" method=post>
<p> Student Name:
<Input type=text name=name size=30 maxlength=25></p>
<p> Gender:
<input type=radio name=gender value=boy> Boy
<input type=radio name=gender value=girl> Girl
</p>
<p> Subjects:
<input type=checkbox name=sub value=Tam> Tamil
<input type=checkbox name=sub value=Tel> Telugu
<input type=checkbox name=sub value=Eng> English
<input type=checkbox name=sub value=Phy> Physics
<input type=checkbox name=sub value=Eco> Economics
</p>
<input type=reset name=reset value="Clear">
<input type=submit name=submit value="Submit">
</Form>
</body>
</html>
Clear Submit
278
<html>
<head>
<title> HTML - Form and Controls </title>
</head>
<body>
<h3 align=center> Forms and Controls </h3>
<Form action="mailto:abcd.xyz@com" method=post>
<p> Student Name:
<Input type=text name=name size=30 maxlength=25></p>
<p> City / Town:
<Select name = area size= 1>
<option value = CHN> Chennai </option>
<option value = MDR selected> Madurai </option>
<option value = CBO> Coimbatore </option>
<option value = KKM> Kanyakumari </option>
</Select> </p>
<input type=reset name=reset value="Clear">
<input type=submit name=submit value="Submit">
</Form>
</body>
</html>
279
<html>
<head>
<title> HTML - Form and Controls </title>
</head>
<body>
<h3 align=center> Forms and Controls </h3>
<Form action="mailto:abcd.xyz@com" method=post>
<p> Student Name:
<Input type=text name=name size=30 maxlength=25></p>
<p> Email:
<input type=text name=mail size=30 maxlength=25> </p>
<p> Comments: <br>
<Textarea rows=5 cols=50 name=comments> </Textarea>
</p>
<input type=reset name=reset value="Clear">
<input type=submit name=submit value="Submit">
</Form>
</body>
</html>
280
Email:
Comments:
Clear Submit
<html>
<head>
<title> HTML - Form and Controls </title>
</head>
<body>
<h3 align=center> Students Data Entry Form </h3>
<Form action="mailto:abcd.xyz@com" method=post>
<p> Student Name:
<Input type=text name=name size=30 maxlength=25></p>
<p> Email:
<input type=text name=mail size=30 maxlength=25> </p>
<p> Gender:
<input type=radio name=gender value=boy> Boy
<input type=radio name=gender value=girl> Girl
</p>
<p> Subjects:
<input type=checkbox name=sub value=Tam> Tamil
<input type=checkbox name=sub value=Tel> Telugu
<input type=checkbox name=sub value=Eng> English
<input type=checkbox name=sub value=Phy> Physics
<input type=checkbox name=sub value=Eco> Economics
</p>
<p> City / Town:
<Select name = area>
<option value = CHN> Chennai </option>
<option value = MDR selected> Madurai </option>
<option value = CBO> Coimbatore </option>
<option value = KKM> Kanyakumari </option>
281
Email:
Clear Submit
Points to Remember:
• Images are essential element to make an HTML presentation in more attractive
manner.
• Most of the browsers supports, GIF, JPEG and PNG images formats.
• The <IMG> tag along with the attribute src (Source) is used to add images in HTML
document.
• In HTML, a piece of text or image can be moved horizontally or vertically by using
<marquee> tag.
• In HTML, a video or audio content may be included as Inline or external data.
• The <embed> tag is used to attach an audio or video file easily within webpage.
• Music can be played in the background to a webpage, while the page is viewed.
• The <bgsound> tag is used to attach an inline sound file in HTML.
• Forms are used to receive information from the user.
• An HTML form starts with <form> and ends with </form> tag.
• Most of the form controls are created by using <input> tag.
• The <select> tag is used to create dropdown list box in HTML.
• The <Textarea> tag is used to receive multi line text data as input.
282
Date of Birth:
Mother Tongue:
Tamil
Telugu
Malayhalam
Reset Submit
Evaluation
Part – I
Choose the correct answer
1. Which image format was standardized by W3C?
(A) JPEG (B) SVG (C) GIF (D) PNG
5. Which value causes the audio play as long as the page is in view?
(A) Stop (B) Never Stop (C) Continue (D) Infinite
283
Part – II
Very Short Answers
1. List out the popular image formats.
2. Write down the general format of marquee
3. What is inline sound or movie?
4. What is the purpose of <input> tag?
5. Which tag is used to specify the list of items in dropdown list box?
6. What are the major attributes available in <textarea> tag?
Part-III
Short Answers
1. Write a short note on familiar image format.
2. How will you scroll the text in HTML?
3. Explain the main attributes used with <form> tag.
4. Explain the values of <input> tag’s type attribute.
5. Explain the attributes of <select> and <option> tags.
Case study:
Create a website of your own interest which includes all the features learned from these
chapters for your school
284
References:
1. Mastering HTML, CSS & JavaScript Web Publishing – Laura Lemay, Rafe Colburn, Jennifer
Kyrnin – BPB Publications.
2. Informatics Practices, A text book for CBSE class XII – Sumita Arora – Dhanpat Rai & Co.
4. https://www.w3schools.com/html/default.asp
285
Learning Objectives:
In the above code segment, the style of <h3> header tag is clearly defined. So, hereafter,
the content between <h3> and </h3> will be displayed as per its definition.The output of the
above code is shown as below:
The <style> tag controls the presentation styles of a particular HTML document.
286
Advantages of CSS
Maintainability -CSS are also defined and stored as separate files. So, the style and appearance
of a web page can be dynamically changed and maintained with less effort.
Reusability - The styles defined in CSS can be reused in multiple HTML pages.
Easy to understand - The tags in web pages are well organized with style specifications and
therefore it is easy to understand.
HakonWium Lie
287
P {
Font-size : 16pt;
color : red;
font-weight : bold;
}
In the above example, the style properties are defined to <p> tag. Hereafter, whenever
you use the <p>, the contents will be displayed with modified properties. If you want to use
the above style definition as an internal style then it should be specified within <style> ……
,</style> block in head section. If you want store the above definition for using all your web
pages, you should save the above code as a separate file with extension .css
CSS – Frequently using Text formatting Properties and Values
Table: 13.1
Formatting Properties Values Example
Text Colour Color Predefined_Color_Name P
{
color:pink;
}
H1
{
color : MediumSeaGreen;
}
Text Alignment Text-align Center / Left / Right / Justify P
{
Text-align : center;
}
Font type Font-family Font_name P
{
Font-family : “Times New
Roman”;
}
Font Style Font-style Normal / Italic P
{
Font-family : “Times New
Roman”;
Font-style : Italic;
}
288
289
P{
font-style : Italic;
color :MediumSeaGreen;
}
H1
{
border:2px solid red;
}
The above code should be saved with extension .css
Mystyle.css
H1
{ font-family : "Comic Sans MS";
Font-weight : Bold;
border:2px solid blue; }
P{ font-style : Italic;
color :MediumSeaGreen; }
--- CSS_Test.htm ---
<html>
<head>
<title> Demonstration of using CSS </title>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body>
<H1> Welcome to CSS </H1>
<P>
CSS was invented by HakonWium Lie on October 10, 1994 and maintained through
a group of people within the W3C called the CSS Working Group. The CSS Working
Group creates documents called specifications. When a specification has been
discussed and officially ratified by W3C members, it becomes a recommendation.
</P>
</body>
</html>
290
CSS Comments
Many times, you may need to put additional comments in your style sheet blocks. So, it is very
easy to comment any part in style sheet. You can simplyput your comments inside /*.....this is
a comment in style sheet.....*/.
CSS - Workshop
• Develop a web page describing about your district. Use CSS to format HTML structural
tags.
291
• The <style> tag controls the presentation styles of a particular HTML document.
• The <style> tags are called as “Page-Level Styles” or “Internal Style sheets”.
• Professional web developers do not use internal styles.
• The separate style files are known as “Sitewide Style sheets” or “External Style Sheets”
or CSS
• CSS is easy to learn and understand but it provides powerful control over the
presentation of an HTML document.
• Most commonly, CSS is combined with the markup languages HTML or XHTML.
• There is another style method called “Inline style” which is used to define style for a
particular tag anywhere in an HTML document.
• Electronic governance or e-governance is the application of information and
communication technology (ICT) for delivering government services.
Evaluation
Part – I
Choose the correct answer
1. Expansion of CSS
(A) Cascading Style Schools (B) Cascading Style Scheme
(C) Cascading Style Sheets (D) Cascading Style Shares
2. Which of the following is the page level style?
(A) <Page> (B) <Style> (C) <Link> (D) <H>
3. CSS is also called as:
(A) Sitewide Style Sheets (B) Internal Style Sheets
(C) Inline Style Sheets (D) Internal Inline Sheets
4. The extension of CSS file is
(A) .ssc (B) .css (C) .csc (D) .htm
5. What is selector?
(A) Property (B) Value (C) HTML tag (D) name
6. The Declaration block of CSS is surrounded by
(A) ( ) (B) [ ] (C) { } (D) <>
7. The declaration should be terminated by
(A) : (B) ; (C) . (D) ,
8. What is the property to set text as bold?
(A) Font-Style (B) Font-Weight (C) Font-Property (D) Font-Bold
9. Which of the following indicates that the text included is a comment ?
(A) /* */ (B) !* *! (C) <* *> (D) \* *\
292
Part-III
Short Answers
1. What are the advantages of using CSS?
2. Write a short note on rule of CSS.
3. Write a CSS file to define text color and alignment to <p> tag.
4. Write a CSS file to define font type, style and size to <h1> tag.
Part-IV
Explain in Detail
1. Write an HTML document to display the following paragraph as per the given description
Using CSS:
• Font Name : Cooper Black
• Style : Bold Italics
• Color : Blue
“The State Institute of Education (SIE) was established in 1965 to provide for systematic
study of problems relating to School Education under the administration of Directorate
of School Education.”
2. List and explain the Font and text element properties and values used in CSS.
GLOSSARY
References:
• Mastering HTML, CSS & JavaScript Web Publishing – Laura Lemay, Rafe Colburn, Jennifer
Kyrnin – BPB Publications.
• Informatics Practices, A text book for CBSE class XII – SumitaArora – DhanpatRai& Co.
293
Learning Objectives:
The lexical structure of a programming language is the set of elementary rules that
specifies how to write programs in that language. It is the lowest-level syntax of a language. The
295
<Html>
<Head>
<Title>Demo Program - Declaring Variables in JavaScript </Title>
</Head>
<Body>
<script language="javascript" type="text/javascript">
var numericData1 = 522;
var stringData = " JavaScript has strings\n It sure does";
var numericData = 3.14;
var booleanData = true;
document.write("Numeric Data : "+numericData1);
document.write("<br> String Data : "+stringData);
document.write("<br> Floating Data : "+numericData);
</script>
</Body>
</Html>
297
In addition, multiple variables can be declared with one var statement, if the variables
are separated by commas:
var no1=50, no2=5065;
JavaScript allows the implicit declaration of variables by using them on the left-hand
side of an assignment. In JavaScript there is no need to indicate data type during variable
declarations. JavaScript variables are untyped and it is dynamically datatyped which means
initially you can assign a value of any data type to a variable and later you can assign a value of
different data type to the same variable. For example:
var value=100;
var value=”JavaScript”;
14.5.5 JavaScript Literals
A literal is a fixed value given to a variable in source code. Literals are often used to
initialize variables. Values may be Integer, Floating point, Character, String and Boolean. For
Example,
var int_const=250; //Integer constant//
var float_const=250.85; //Floating point constant//
var char_const=’A’; //Character constant//
var string_const=”Raman”; //String constant//
var boolean_const=true; //Boolean constant//
write statement:
General Syntax:
document.write ("string " + var);
14.5.6 Type casting in JavaScript.
Type conversion is the act of converting one data type into a different data type which
is also called as casting. In JavaScript there are two type of casting,
• Implicit casting and
• Explicit casting
Implicit casting occurs automatically in JavaScript when you change the data stored in
a variable:
298
Arithmetic
Meaning Example Result
Operator
+ Addition var sum = 20 + 120 Variable sum = 140
- Subtraction var diff = 20 – 120 Variable diff = 100
* Multiplication var prod = 10 * 100 Variable prod = 1000
/ Division var res = 100/522 Variable res = 5.22
Variable rem = 22
% Modulus operator var rem = 100 % 522
(remainder)
<Html>
<Head>
<Title>Demo Program – To test Arithmetic Operators in JavaScript
</Title>
</Head>
<Body>
<script language="javascript" type="text/javascript">
299
Output:
300
Shorthand
Arithmetic Meaning Example Result
Operator
var sum = 120;
+= Add and assign Variable sum = 140
sum += 20;
var diff = 120;
-= Subtract and assign Variable diff = 100
diff –= 20;
var prod = 100;
*= Multiply and assign Variable prod = 1000
prod *=10;
Var res = 522;
/= Division Variable res = 5.22
Res/=100
Var rem = 522;
%= Modulus operator Variable rem = 22 (remainder)
rem %= 100
<Html>
<Head>
<Title>Demo Program - To test Arithmetic Shorthand Operators in JavaScript
</Title>
</Head>
<Html>
<Head>
<Title>Demo Program - To test Arithmetic Shorthand Operators in JavaScript
</Title>
</Head>
<Body>
<script language="javascript" type="text/javascript">
var value1 = 522, value2=10;
document.write("<br>Data1 : "+value1);
document.write("<br>Data2 : "+value2);
var sum = value1; sum+=value2;
var diff = value1; diff-=value2;
var prod = value1; prod*=value2;
var res = value1; res/=value2;
301
Output:
Assignment:
Develop JavaScript code for the following:
1. To find Simple Interest for the given Principle, Number of years and Rate of interest.
2. To find Compound Interest for the given Principle, Number of years and Rate of interest.
3. To find difference between Simple Interest and Compound Interst.
14.6.3 Relational or Comparison Operators:
Relational operators are also called as Comparison operators, they compare two values
and the result is true or false. JavaScript provides a rich set of relational operators including ==
(equal to), != (not equal to), < (less than), > (greater than), <= (less than or equal to), and >=
(greater than or equal to). Using a relational operator in an expression causes the expression
to evaluate as true if the condition holds or false if otherwise.
Table: 14.3 Relational or Comparison operators
Relational
(Comparison) Meaning Example Result
Operator
Assume x=10 and y=20
== Equality x==y False
!= In-equality x!=y True
< Less-than x<y True
> Greater-than x>y False
<= Less-than or equal to x<=y True
>= Greater-than or equal to x>=y False
302
Output:
Logical
Example Meaning Result
Operator
((4>5( && )10<5)) (Logical AND) Returns true if
&& True
((expr1) && (expr2)) expr1 and expr2 both true.
(Logical OR) Returns true if either
((4>5( || )10<5))
|| expr1 or expr2 is true, or both are True
((expr1) || (expr2))
true.
(Logical NOT) Returns true if
!(10<5)
! expr1 is false; otherwise, returns False
!(expr1)
false.
303
Output:
304
One of the built-in features of JavaScript is the ability to concatenate strings. The +
operator performs addition on numbers but also serves as the concatenation operator
for strings. Because string concatenation has precedence over numeric addition, + will be
interpreted as string concatenation if any of the operands are strings. + operator which is also
called as the string concatenation operator. For example:
Output:
var m = 1, n = m++; // m is 2, n is 1
The -- operator decrements its single operand. It converts the value of the operand to
a number, subtracts 1, and assigns the decremented value back to the operand. Like the ++
operator, the return value of -- depends on its position relative to the operand. When used
before the operand, it decrements and returns the decremented value. When used after the
operand, it decrements the operand but returns the undecremented value.
var m = 2, n = m--; // n is 2, n is 1
306
307
Output:
308
Output:
JavaScript supports three important types of dialog boxes. Dialog boxes are also called
as Popup Boxes. These dialog boxes can be used to raise an alert, or to get confirmation on any
input or to have a kind of input from the users. JavaScript supports three kind of popup boxes:
Alert box, Confirm box, and Prompt box.
309
310
311
A very important aspect of good programming style is to insert remarks and commentary
directly in source code, making it more readable to yourself as well as to others. Any comments
you include will be ignored by the JavaScript interpreter. There are two types of comments,
Single line and Multiple line comments. Single-line comments begin with a double slash (//),
causing the interpreter to ignore everything from that point to the end of the line. Multiple line
comments begins with /* and ends with */.
For example:
Points to Remember:
• The <script> tag alerts the browser program to start interpreting all the text between
these tags as a script
• JavaScript is a case sensitive language
• The scope of a variable is the life time of a variable of source code in which it is
defined
• A literal is a fixed value given to a variable in source code.
• An expression is a code fragment that can be evaluated to some data type the language
supports.
• Java Script supports all basic arithmetic operators like +, - , *, / & %
• Java scripts has an in built feature of concatenating strings.
• The types of operator is used to get the data type of a variable.
• JavaScript supports important types of dialog boxes also called as pop up boxes, alert
box, confirm dialog box and prompt dialog box.
• ?: is the conditional operator in Java Script also called as ternary operator.
312
Part-I
Choose the correct answer:
1. Which provide a common scripting language to web developers to design, test and
deploy Internet Application?
A) C B) C++ C) Java D) JavaScript
2. Expand CGI
A) Common Gateway Interface B) Complex Gateway Information
C) Common Gateway Information D) Complex Gateway Interface
3. JavaScript programming language is used to develop the
A) Dynamic Web Page B) Window C) Web Page D) Home Page
4. The Dynamic Web Page help to save server’s
A) Work B) Route C) Traffic D) Pvath
5. User entered data, is validated before sending it to server is called
A) Server traffic B) Dynamic Web Page
C) Server Route D) Web server
6. Java Scripts can be implemented using which statements?
A) <head> B) <Java> C) <script> D) <text>
7. Expand
A) Distance Hyper Text Markup language B) Dynamic Hyper Text Markup
language
C) Distance High Text Markup language D) Dynamic High Text Markup
language
8. How many attributes are specified for <script> tag in the scripting language?
A) 2 B) 3 C) 4 D) 5
9. Which attribute is used to indicate the scripting language and its value should be sent to
“ Text/JavaScript”
A) Language B) Text1 C) Type D) Body
10. The file reload into the browser use the shortcut key is
A) F2 B) F3 C) F4 D) F5
11. JavaScript ignores spaces that appear between
A) Command B) Scripts C) Tokens D) Text
12. A Data value for variable that appears directly in a program by using a
A) loop B) Literal C) Statement D) Text
13. Which is mostly used to give a warning message to users?
A) Alert Dialog Box B) Confirm box
C) Prompt box D) Display box
313
Part-III
Short Answers
1. What are the advantages of programming language?
2. Brief the basic data types in Java Scripts.
3. Write note on string Operator.
4. Write about <script> tag
5. What are the uses of Logical Operators?
6. Difference between the increment and Decrement operator.
Part –IV
Explain in Detail
1. Explain about the popup dialog boxes in JavaScript.
2. Explain about the Arithmetic operator with suitable example.
Case study:
Develop a program for online registration form with some of the client side validation features
Reference :
1. Title - Pure JavaScript Author : R.Allen Wyke, Jason D. Gilliam and Charlton Ting,
Publisher : Techmedia
2. Computer Application Text Book – Govt. of Kerala
314
Learning Objectives:
• To learn about control structures
• To learn about logical operators in JavaScript
• To learn about loops and their types
• To acquire knowledge of developing JavaScript programs.
15.1 Conditional Statements in JavaScript:
Statements are executed in the order they are found in a script. Conditional statements
execute or skip one or set of statements depending on the value of a specified conditional
expression. There are two types of controls,
• Branching / Selection
• Looping / repetitive
15.1.1 Branching Statements:
JavaScript supports branching statements which are used to perform different actions
based on different conditions. Branching is a transfer of control from the current statement to
another statement or construct in the program unit. A branch alters the execution sequence.
There are different branching statements. They are,
• if statement
• if … else statement
• else if statement
• switch statement
15.1.1.1 if and if..else Statement:
The if statement is the fundamental control statement that allows JavaScript to make
decisions to execute statements conditionally. This statement has two forms. The form is for
only true condition. The syntax is
if (condition)
{
True block;
}
In the if control structure, the relational/logical expression is evaluated. If the resulting
value is true the true block is executed. The true block may contain one or more than one
statement. For example
315
<Html>
<Head>
<Title>Demo Program - To test if command in JavaScript </Title>
</Head>
<Body>
<script language="javascript" type="text/javascript">
var age = prompt("Please enter your Age :", "0");
if(age>=16)
{
alert("You Are Eligible to Vote ....");
}
</script>
</Body>
</Html>
← → X file:///C:/Users/ELCOT/Desktop/SCERT/Fin... .
.
.
OK Cancel
- X
Demo Program - To test X
← → X file:///C:/Users/ELCOT/Desktop/SCERT/Fin... .
.
.
OK
The second type of the if statement is the if..else contorl structure in either of the two
branches depending on the condition is executed. In the simple if construction, no special
processing is performed when the condition evaluates to false. But if processing must follow
one of two paths, hence need to use if...else format. Its syntax is:
316
<Html>
<Head>
<Title>Demo Program - To test if..else command in JavaScript </Title>
</Head>
<Body>
<script language="javascript" type="text/javascript">
var age = prompt("Please enter your Age :", "0");
if(age>=18)
{ alert("You Are Eligible to get Driving Licence.."); }
else
{ alert("You Are Not Eligible to get Driving Licence.."); }
</script> </Body> </Html>
- X
← → C:\User\ELCOT\Desktop\SCER ^ X Search... ^
OK
317
The if ... else statement evaluates an expression and executes one of two pieces of code,
depending on the outcome. The else if statement is used to specify a new condition if the first
condition is false.
if (n == 10)
{ // Execute code block #1 }
else if (n == 20)
{ // Execute code block #2 }
else if (n == 30)
{ // Execute code block #3 }
else
{ // If all else fails, execute block #4 }
Illustration 15.3 Using Logical Operators and else if Statement
<Html>
<Head>
<Title>Program - To test else ..if command in JavaScript </Title>
</Head>
<Body>
<script language="javascript" type="text/javascript">
var marks = prompt("Please enter your Marks/100 :", "0");
if(marks>90)
{ document.write("Your Grade is Outstanding.."); }
else if((marks>70) && (marks<=90))
{ document.write("Your Grade is Excellent.."); }
else if((marks>50) && (marks<=70))
{ document.write("Your Grade is Good.."); }
else if((marks>40) && (marks<=50))
{ document.write("Your Grade is Satisfectory.."); }
else
{ document.write("Your Grade Poor and have to re-appear Exam.."); }
</script> </Body> </Html>
318
There is nothing special about this code. It is just a series of if statements, where each following
if is a part of the else clause of the previous statement. Using the else if idiom is preferable and
more legible than, writing these statements out in their syntactically equivalent, fully nested
form:
if (n == 10)
{ // Execute code block #1 }
else
{ if (n == 20)
{ // Execute code block #2 }
else
{
if (n == 30)
{ // Execute code block #3 }
else
{ // If all else fails, execute block #4 }
}
}
319
<Html>
<Head>
<Title>Program - To test witch command in JavaScript </Title>
</Head>
<Body>
<script language="javascript" type="text/javascript">
var grade=0;
var marks=prompt(“Please enter your marks/100:”,”0”);
if(marks>90)
{grade=1;}
else if(marks>70)&&(marks<=90)
{grade=2;}
else if(marks>50)&&(marks<=70)
{grade=3;}
320
- X
C:\User\ELCOT\Desktop\SCER ^ X Search... ^
321
The for structure consist of parts each separated by semicolon. They are,
1. The first part of the loop initialize a variable which is also called as control variable. In most
case the control variable is declared as well as initialized.
2. The second part is the conditional statement that determines how many times the loop will
be iterated.
3. The third and final part determines how the value of control variable is changed
(Incremented/Decremented)
322
<Html>
<Head>
<Title> Program - To test for statement in JavaScript </Title>
</Head>
<Body>
<script language="javascript" type="text/javascript">
var no1 = prompt("Please enter Table You want :", "0");
document.write("<h2> Multiplication for your need </h2>");
for( var no2=0;no2<=10;no2++)
{
document.write(no1+" x "+no2+" = "+no1*no2+"<br>");
}
</script>
</Body>
</Html>
- X
C:\User\ELCOT\Desktop\SCER ^ Search...
Demo Program - To test Pr..
Multiplication for your need
3x3=0
3x1=3
3x2=6
3x3=9
3 x 4 = 12
3 x 5 = 15
3 x 6 = 18
3 x 7 = 21
3 x 8 = 24
3 x 9 = 27
3 x 10 = 30
323
</Body>
</Html>
- X
C:\User\ELCOT\Desktop\SCER ^ Search...
Demo Program - To test Pr..
The continue statement will skip back to the loop condition check. When the continue
statement is executed, the current iteration of the enclosing loop is terminated, and the next
iteration begins. For example,
324
- X
C:\User\ELCOT\Desktop\SCER ^ Search...
Demo Program - To test Pr..
Using Continue Statement
0 1 2 3 4 6 7 8 9 10
15.2.3 while loop
In JavaScript while loop is another most basic loop. The purpose of a while loop is to
execute a statement /block of statement repeatedly as long as an expression is true.
The while statement creates a loop that executes a specified statement as long as the test
condition evaluates to true. The condition is evaluated before executing the statement.
325
<Html>
<Head>
<Title>Program - To test while statement in JavaScript </Title>
</Head>
<Body>
<script language="javascript" type="text/javascript">
document.write("<h2> Using while Statement </h2>");
var no2=0;
while(no2<=5)
{
document.write(no2+" ");
no2=no2+1;
}
</script>
</Body>
</Html>
- X
C:\User\ELCOT\Desktop\SCER ^ Search...
Demo Program - To test Pr..
Using While Statement
012345
To execute a while statement, the interpreter first evaluates the expression. If the value
of the expression is true the interpreter executes the statement and repeats, jumping back to
the top of the loop and evaluating expression again. In the above example let us see how the
while command is executed,
1. Initial value of the variable no2 is set to 0
2. The expression in the while statement is executed
3. If the condition is true then body of the loop will be executed once otherwise body of the
loop will be skipped and control will jump to next statement to end of the loop.
4. Then the value of the control variable is executed and control jumps to condition again to
5. step 3 is repeated again
326
<Html>
<Head>
<Title>Program - To test do..while statement in JavaScript </Title>
</Head>
<Body>
<script language="javascript" type="text/javascript">
document.write("<h2> Using do..while Statement </h2>");
var no2=0;
do Output:
{ - X
document.write(no2+" ");
no2=no2+2; C:\User\ELCOT\Desktop\SCER ^ Search...
}while(no2<=10); Demo Program - To test Pr..
</script>
Using do..while Statement
</Body>
0 2 4 6 8 10
</Html>
Exercise
Write a JavaScript Program for the following:
a) To display Odd number from 1 to N numbers.
b) To display any Multiplication table as the user required.
c) To display as 10,9,8,……0
327
Evaluation
Part-I
Choose the correct answers:
1. Which conditional statement is used to transfer control from current statement to
another statement?
(a) Branching (b) Sequencing (c) Looping (d) Interating
2. _______ statement can be used as alterative to if-else statement.
(a) While (b) If (c) Else-if (d) Switch
3. Which statement in switch case is used to exit the statement once the appropriate choice
is found?
(a) Exit (b) Default (c) Case (d) Break
4. Which of the following is not a looping statement?
(a) Switch (b) While (c) Do-While (d) For
5. Which part of the loop statement determines the number of times, the loop will be
iterated? (MOT)
(a) First (b) Second (c) Third (d) Final
6. Which of the following is not a branching statement?
(a) Loop (b) If-else (c) Switch (d) For
7. What will be the output for the following snippet:
For (var n=0; n<10; n+1)
{
if (n==3)
{
break;
}
328
Part-III
Short Answers
1. What is if statement and write its types.
2. Write the syntax for else-if statement.
3. What is called a loop and what are its types?
4. Differentiate between while and do while statements
329
Part –IV
Explain in Detail
1. Explain for loop with example
2. Explain switch case statement with example
3. Write the output for the following program
<Html>
<Head>
<Title> for statement</title>
<Head>
<Body>
<script language= "java Script" type = "text / javaScript")
var no1= prompt ("please enter table you want:", "0" );
document write ("<h2> multiplication for your need </h2>")
for (Var no2= 0; no2<=10; no2++)
{
document write (no1+ "x" + no2+ "=" + no1+no2+ "<br>);
}
</script>
</body>
</Html>
330
Learning Outcomes
A function is a block of JavaScript code that is defined once but may be executed or
invoked any number of times. Functions are used to encapsulate code that performs a specific
task. Sometimes functions are defined for commonly required tasks to avoid the repetition
entailed in typing the same statements over and over. More generally, they are used to keep
code that performs a particular job in one place in order to enhance reusability and program
clarity.
• User-defined Functions
Pre-defined functions are already defined in the JavaScript library which are also called
Library functions. For example isNaN(), toUpperCase(), toLowerCase(), length(), alert(),
prompt(),write() etc., are pre-defined functions.
331
{
{
Declaration of variable
Executable statements;
{ Function Body
}
Note:
• The function-name is any valid identifier.
For Example: sum
• The parameter list contains one or more valid variable name.
• Parameter list contains more than one variable then comma must be there between the
variable. For example: function sum(x,y)
• The function body must be enclosed by braces.
Example:
function sum(x,y)
{
var m=x+y;
return m;
}
332
<html>
<head>
<title>Function Example</title>
<script type="text/JavaScript">
<!--
var input1=window.prompt("Enter Value1 :", "0");
var input2=window.prompt("Enter Value2 :", "0");
var v1=parseInt(input1);
var v2=parseInt(input2);
var s=sum(v1,v2);
document.writeln("<br><h4><u>Example for Function</u></h4>");
document.writeln("First No :" + v1 + " <br>Second No :" + v2 + "<br> The Sum = " + s);
function sum(x, y)
{
var s=x+y;
return s;
}
//-->
</script> </head> <body> </body> </html>
Output:
333
<html>
<title>Example Program to test isNan() Function</title>
<head> </head>
<body>
<h4><u>Example Program to test isNan() Function</u></h4>
<script language="JavaScript">
function checknum()
{
var n=document.form1.text1.value;
if(isNaN(n)==true)
{ document.form1.text2.value="Not a Number : "+n; }
else
{ document.form1.text2.value="It is Number : "+n; }
}
</script>
<form name="form1">
Enter a Number1:
<input type="text" name="text1" size=3>
<br><br>
<input type="button" value="Click to Check" onClick="checknum()">
<input type="text" name="text2" size=30>
<br> </form> </body> </html>
Output:
334
<html>
<head>
<title>On-line Quize</title>
<script type="text/JavaScript">
function checkAnswer()
{
//var myQuiz=document.getElementById("myQuiz");
if ( document.getElementById("myQuiz").elements[0].checked)
alert("Congratulations, Your Answer is correct");
else
alert("Your Answer is incorrect, Please try Again");
}
</script> </head>
<body>
<form id="myQuiz" action="JavaScript:checkAnswer()">
<p> Which is not a Programming Language: <br>
<input type="radio" name="radiobutton" value="Word" />
<label> MS-Word</label>
<input type="radio" name="radiobutton" value="Cobol" />
<label> COBOL</label>
<input type="radio" name="radiobutton" value="CPP" />
<label> C++</label>
<input type="radio" name="radiobutton" value="VB" />
<label>Visual BASIC</label><br><br>
<input type="submit" name="submit" value="Submit" />
<input type="reset" name="reset" value="Reset" />
</p> </form> </body> </html>
Output:
Note:
• The getElementById() method returns the element that has the ID attribute with the
specified value. (In this example, ID is received from form tag).
• elements[0] indicates the first option given in the question (Ms-word)
335
Evaluation
Part-I
Choose the correct answer:
1. The parameters work as
A) Local variable B) Global Variable
C) File variable D) block variable
2. Predefined functions are also called as
A)Library functions B) storage functions
C) instructions D) commands
3. Larger programs are divided into smaller called
A) modules B) block
C) sets D) Group
4. Which of the following is used to enhance reusability and program clarity.
A) functions B) modules
C) sets D) instructions
5. Which of the following allow the programmer to modularize a program
A) Library functions B) user defined functions
C) Normal functions D) Ordinary functions
Part – II
Very Short Answers
1. What is a function in JavaScript?
2. What is the use of function?
3. Write a note on Library functions.
4. Write a note on user defined functions.
5. Write the syntax of functions.
Part-III
Short Answers
1. Write a program in JavaScript to find the cube of a number using function
2. Write a program in JavaScript to find the sum of 10 numbers using function.
Case study
Display a menu as web page, Accept the choice as input and display the result using function.
The menu to be displayed is
1. Sum of numbers upto a given limit
2. Sum of numbers from a starting limit to ending limit.
336
Cyber
S.No. Function
Attack
A virus is a small piece of computer code that can repeat itself
and spreads from one computer to another by attaching itself to
another computer file. One of the most common virus is Trojan.
1. Virus
A Trojan virus is a program that appears to perform one function
(for example, virus removal) but actually performs malicious
activity when executed.
Worms are self- repeating and do not require a computer program
to attach themselves. Worms continually look for vulnerabilities
2. Worms
and report back to the author of the worm when weaknesses are
discovered.
Spyware can be installed on the computer automatically when
3. Spyware the attachments are open, by clicking on links or by downloading
infected software.
Ransomware is a type of malicious program that demands payment
after launching a cyber-attack on a computer system. This type of
4. Ransomware
malware has become increasingly popular among criminals and
costs the organizations millions each year.
339
340
341
GLOSSARY
WORD MEANING
Authenticity The quality of being real or true.
342
18.1 Introduction
“ பிறநாட்டு நல்லறிஞர் சாத்திரங்கள்
- மகாகவி பாரதி
உள்ளீட்டுக் கருவிகள்
345
346
347
Evaluation
Very Short Answers
1. List the search engines supported by Tamil language.
2. What are the keyboard layouts used in Android?
3. Write a short note about Tamil Programming Language.
4. What is TSCII?
5. Write a short note on Tamil Virtual Academy.
348
Instructions:
1. One exercise from Writer, Calc and CSS, Three exercises from HTML, and Four
exercises from JavaScript are to be practiced in the practical classes.
2. Ansewer to any one question from Practical Book with internal choice
3. Distribution of Marks
I. Internal Assessment: 5 Marks
Record Book 5 Marks
II. External Assessment: 15 Marks
Total 20 Marks
INDEX
Question
Sl. No. Program Name
Number
1 CA1 Open Office Writer - Formatting Invoice
2 CA2 Open Office Calc – Interest Calculation
3 CA3 HTML – Form Design
4 CA4 HTML – Height and Weight Table
5 CA5 HTML – Nested List
6 CA6 CSS – Formatting Webpage
7 CA7 JavaScript – Display Text
8 CA8 JavaScript – Multiplication Table
9 CA9 JavaScript – Display Weekdays in Words
10 CA10 JavaScript – Login Form
349
Invoice
SAIRAM MEDICAL STORES
Mobile No : 9002416000 P.B.No: 617
Mail Address : [email protected] 70, New Avadi Road,
Chennai 600 010.
No: 70/162
M/s. Eswari Medical Stores, 23rd Nov 2017
No: 72, N.S.C. Bose Road,
Puduchery - 6210110
Quantity (Nos) Particulars Rate Amount
20 Johnson Baby Powder 25 500
10 Nestle Milk Powder 100 1000
5 Wood Wards Gripe Water 70 350
Total
Add: GST @ 3%
Net Payable
Sales Manager
Step-1. OpenOffice Writer and choose Text document or File → New → Text Docu-
ment.
Step-2. Type the text and apply the format as per the given format.
Note: Select the required text before formatting.
INVOICE Center and apply red Ctrl + E and choose Red color from
font color pallete or any method.
SAIRAM MEDICAL Center and apply blue Ctrl + E and Blue color from font
STORES color pallete or any method.
350
Invoice
SAIRAM MEDICAL STORES
Mobile No : 9002416000 P.B.No: 617
Mail Address : [email protected] 70, New Avadi Road,
Chennai 600 010.
No: 70/162
M/s. Eswari Medical Stores, 23rd Nov 2017
No: 72, N.S.C. Bose Road,
Puduchery - 6210110
Quantity (Nos) Particulars Rate Amount
20 Johnson Baby Powder 25 500
10 Nestle Milk Powder 100 1000
5 Wood Wards Gripe Water 70 350
Total 1850
Add: GST @ 3% 55.5
Net Payable 1905.5
Sales Manager
Sara Ltd., sells goods. Their policy is to charge interest @ 2% p.a., for the number of
days. From the following data, find out the amount to be collected from each customer.
Assume 365 days in the year.
351
Procedure
Step -1. Open OpenOffice Calc and choose Spreadsheet or File → New → Spreadsheet.
Step -2. Type the Headings in cell A1 to E1 (Customer, Sales, Date of Sale, Number of days
and Date of settlement) as per the given data.
Step -3. In cell F1 and G1 type (Interest Amt and Amount to be paid) respectively.
Step -4. In cell E2 enter the formula = C2 + D2 to arrive the date of settlement and to the
remaining cells (E2 to E5). Use Edit → Fill → Down command
Step -5. In cell F2 enter the formula =ROUND((B2*2/100)*D2/365) to arrive the Interest
amount to the remaining cells (F2 to F5). Use Edit → Fill → Down command
Step -6. In cell G2 enter the formula = B2 + F2 to arrive the Amount to be paid to the remaining
cells (G2 to G5). Use Edit → Fill → Down command
Output
CA-3 Write an HTML code to design a form like the one shown below.
352
353
Coding
<html>
<head>
<title> Height and Weight Table </title>
<head>
<body>
<table border=10>
<caption> Height and Weight </caption>
<tr>
<th width=40%> Name </th>
<th width=20%> Class </th>
<th width=20%> Height </th>
<th width=20%> Weight </th>
</tr>
<tr>
<td> Mani </td>
<td> XII – G </td>
<td> 5’0” </td>
<td> 45 </td>
</tr>
<tr>
<td> Vasu </td>
<td> XI – H </td>
<td> 5’4” </td>
<td> 49 </td>
</tr>
<tr>
<td> Murali </td>
<td> XI – B </td>
354
• Languages
1. Tamilnadu
o Tamil
a. Chennai
o Malayalam
b. Madurai
o Telugu
• Science
2. Andhra Pradesh
o Physics
a. Amaravathi
o Chemistry
b. Vijayawada
o Zoology
• Humanities
3. Kerala
o History
a. Thiruvananthapuram
o Commerce
b. Cochin
o Economics
355
Output
1. Tamilnadu
a. Chennai
b. Madurai
2. Andhra Pradesh
a. Amaravathi
b. Vijayawada
3. Kerala
a. Thiruvananthapuram
b. Cochin
• Languages
o Tamil
o Malayalam
o Telugu
• Science
o Physics
o Chemistry
o Zoology
• Humanities
o History
o Commerce
o Economics
356
Tamil
It has official status in the Indian state of Tamil Nadu and the Indian Union Territory
of Puducherry. It is used as one of the languages of education in Malaysia, along with
English, Malay and Mandarin.
Tamil is spoken by significant minorities in the four other South Indian states of
Kerala, Karnataka, Andhra Pradesh and Telangana and the Union Territory of the Andaman
and Nicobar Islands. It is one of the 22 scheduled languages of India.
Description:
357
Tamil
Tamil is a Dravidian language predominantly sopken
by the Tamil people of India and SriLankan Moors, Burghers,
Douglas, and Chindians. Tamil is an official language of two
countries: Sri Lanka and Singapore.
It has official status in the Indian state of Tamil Nadu
and the Indian Union Territory of Puducherry. It is used as one
of the languages of educatiooon in Malaysia, along with English,
Malay and Mandarin.
Tamil is spoken by significant minorities in the four
other south Indian states of Kerala, Karnataka, Andhra Pradesh
and Telangana and the Union Territory of the andaman and
Nicobar Islands. It is one of the 22 scheduled languages of India.
358
Welcome to JavaScript
State Council of Educational Research and Training (SCERT),
Tamilnadu, Chennai.
Coding
<html>
<head>
<title> Display text using JavaScript </title>
</head>
<body align=center>
<p>
<script>
document.write ("<h1 align=center>Welcome to JavaScript <br>");
document.write ("State Council of Educational Research and Training (SCERT),<br>");
document.write ("Tamilnadu, Chennai. </h1>");
</script>
</p>
</body>
</html>
Output
Welcome to JavaScript
State Council of Educational Research and Training (SCERT),
Tamilnadu, Chennai.
CA8 – MULTIPLICATION TABLE
Create a webpage using JavaScript to display multiplication table by prompting
CA-8
number of rows and columns.
Coding
<html>
<head>
<title>Multiplication Table</title>
<script type="text/javascript">
var rows = prompt("How many rows for your multiplication table?");
var cols = prompt("How many columns for your multiplication table?");
359
Output
1 2 3 4 5 6
2 4 6 8 10 12
3 6 9 12 15 18
4 8 12 16 20 24
5 10 15 20 25 30
6 12 18 24 30 36
7 14 21 28 35 46
8 16 24 32 40 48
9 18 27 36 45 54
10 20 30 40 50 60
11 22 33 44 55 66
12 24 36 48 60 72
Coding {
case (n="1"):
<html> document.write("Sunday");
<head> break;
<title> Weekday </title> case (n="2"):
<script type="text/javascript"> document.write("Monday");
var n=prompt("Enter a number between 1 break;
and 7"); case (n="3"):
switch (n)
360
361
362