Ict G-9 WB
Ict G-9 WB
Technology
Grade 9
Workbook
ISBN 978-955-25-0174-6
ii
The National Anthem of Sri Lanka
iii
wms fjuq tl ujlf. orefjda
tl ksjfiys fjfikd
tl mdge;s tl reêrh fõ
wm lh ;=< ÿjkd
wdkkao iurfldaka
BÚ¢u \©μU÷Põß
PÂøu°ß ö£¯º¨¦.
iv
v
Foreword
The educational objectives of the contemporary world are becoming more complex along
with the economic, social, cultural and technological development. The learning and teaching
process too is changing in relation to human experiences, technological differences, research
and new indices. Therefore, it is required to produce the textbook by including subject related
information according to the objectives in the syllabus in order to maintain the teaching
process by organizing learning experiences that suit to the learner needs. The textbook is not
merely a learning tool for the learner. It is a blessing that contributes to obtain a higher
education along with a development of conduct and attitudes, to develop values and to obtain
learning experiences.
The government in its realization of the concept of free education has offered you all the
textbooks from grades 1-11. I would like to remind you that you should make the maximum
use of these textbooks and protect them well. I sincerely hope that this textbook would assist
you to obtain the expertise to become a virtuous citizen with a complete personality who
would be a valuable asset to the country.
I would like to bestow my sincere thanks on the members of the editorial and writer boards as
well as on the staff of the Educational Publications Department who have strived to offer this
textbook to you.
W. M. Jayantha Wickramanayaka,
Commissioner General of Educational Publications,
Educational Publications Department,
Isurupaya,
Battaramulla.
2019.04.10
vi
Monitoring and Supervision
W. M. Jayantha Wickramanayaka Commissioner General of Educational Publications
Educational Publications Department
Direction
W. A. Nirmala Piyaseeli Commissioner of Educational Publications (Development)
Educational Publications Department
Co-ordination
Dakshina Kasturiarachchi Assistant Commissioner
Educational Publications Department
Panel of Editors
Dr. Prasad Wimalaratne Head, Department of Communication and Media
Technologies, University of Colombo School of Computing,
Colombo 7.
Dr. H. L. Premaratne Senior Lecturer, University of Colombo School of Computing,
Colombo 7.
Dr. P. M. T. B. Sandirigama Senior Lecturer, Department of Computer Engineering,
Faculty of Engineering, University of Peradeniya, Peradeniya.
S. A. S. Lorensuhewa Head, Department of Information and Communication
Technology,
Senior Lecturer, Department of Computer Science,
University of Ruhuna, Matara.
K. P. M. K. Silva Lecturer, University of Colombo School of Computing,
Colombo 7.
Dakshina Kasturiarachchi Assistant Commissioner, Educational Publications Department
Panel of Writers
A. Sunil Samaraweera In-Service-Adviser (ICT), Zonal Computer Resource Centre,
Kegalle.
I. R. N. H. Karunaratne Manager, Zonal Computer Resource Centre, President’s
College, Maharagama.
K. V. S. M. Mohanlal Adviser, Zonal Computer Resource Centre, Deniyaya Madya
Maha Vidyalaya, Deniyaya.
W. M. A. S. Wijesekara (retired) Manager, Zonal Computer Resource Centre, Haliela.
T. K. Palliyaguruge Adviser, Zonal Computer Resource Centre, WP/Jaya/ Sri
Yashodara Maha Vidyalaya, Pittugala, Malambe.
P. J. K. Kahagalle Adviser, Zonal Computer Resource Centre, Sri Rahula Balika
Vidyalaya, Malambe.
V. Goonetilleke (retired) Lecturer, Sri Lanka Institute of Information Technology,
Malambe
Language Editing
Ranjith Iluppitiya Director, National Book Development Council of Sri Lanka,
Ministry of Education
Cover Page
Chaminda Hapuarachchi Educational Publications Department
Technical Assistance
Thinoli Shenesha Kothalawala Educational Publications Department
P. A. D. Nisansala Sandamali Educational Publications Department
vii
We are grateful if you can send us your comments to
feedbackicttextbook@gmail.com regarding the contents of this
series of books on Information and Communication Technology
and your suggestions to develop the creativity of students.
Board of Editors
viii
Index
2 Electronic Spreadsheets 10
3 Programming 26
4 Use of Microcontrollers 30
5 Computer Networks 39
ix
x
1 Preparation of Computer
Specifications
Activity 1.1
Select the most suitable expression from the list of expressions given, to fill
the blanks.
List of expressions
1 Server computer 4 Laptop computer
2 Desktop computer 5 Mobile smart phone
3 All-in-one computer 6 Tablet computer
Name the peripheral devices in the image below. Use the number for the
expressions given in the list.
Activity 1.3
Right click on the "This PC" icon and select "Properties" to check
the specifications of the processor.
Manufacturer - (Intel)
CPU type - (Core i5)
Main memory
CPU speed - (2.2 GHz)
4 GB
Activity 1.4
Calculate the capacity of the hard disk. To check the hard disk capacity,
double click on the icon ‘This PC’. Hard disk is shown as "Local Disk" under
"Devices and Drives". Sometimes local disk is divided into two as local disk
C: and local disk D:. The capacity for both are taken together to calculate the
hard disk capacity.
Activity 1.5
Study the specifications given in the following table. Answer the questions that
follow.
Central Processing Unit Intel® Core™ i7 3.70 GHz
Random Access Memory 4 GB
Hard disk capacity 2 TB
Computer screen 18.5"
Computer system Windows 10
Guarantee period 3 years
Price Rs 75000.00
Activity 1.7
List of expressions
(less, GB, large, GHz, Terra Byte (TB), less, goes up)
Activity 1.8
Activity 1.9
Classify the peripherals that can be connected to the USB port as input,
output and storage.
Activity 1.10
1 TB 5000.00
SSD
120 GB 4000.00
240 GB 6000.00
19'' 17000.00
21'' 20000.00
Separate
800.00
4. With the assistance from your teacher, find the market price of the
components for the computer you have selected above. Hence calculate
the total price of the computer.
Menu bar
Sheets
Activity 2.2
A children’s society decided to collect funds to purchase sports items for its
students. They issued cards to fill boxes for the purpose.
The details about the money collected during the weekend, money collected
by each student, the balance after deducting Rs. 50 /= at the printing cost are
entered to a worksheet. The worksheet is shown in the following page.
Step 1 - On Sheet 1, type the titles as No, Name, Saturday and Sunday
and other relevant information.
Step 2 - Click E2 cell, which is in front of the name of the first student.
Step 3 - Type the formula below in the cell and click 'Enter'.
=C2+D2
The formula used to obtain the first result can be copied accordingly in order
to obtain the total for other students:
Method 1
Step 2 - Move the mouse pointer to the right hand side corner at the
bottom of the square. A small cross known as 'Fill handle' will
be displayed now.
Step 3 - Click the mouse on the ‘File Handle’. Keeping the mouse
clicked drag to E 16; the last student and release.
Method 2
Activity 2.4
=E2-F2
Step 3 - To find the balance for other students, use “Fill Handle” or
'Copy → Paste'
Save the file after each activity.
Activity 2.5
Some formatting have been done to the above document. They are as follows;
3. Boldface headings.
² Select the headings. In Menu, under 'Home', Click on .
Note - If the currency unit is not in 'Rupees, follow the steps given
below;
Control panel → 'Region' → 'Formats' → 'Additional settings' →
'Currency'. Change the Currency symbol in the currency ribbon to Rs. and
select 'Apply' and then 'Ok'
A B C D E F G H I J K
1
2 Item No Item Stock Sold Balance Replacement 1 Total Packeted No of Packs Packets per week Grand total
3 1 Pencils 80 23 57 100 157 10 15.7 7 109.9
4 2 Pens 45 43 2 150 152 10 15.2 7 106.4
5 3 Erases 45 23 22 300 322 10 32.2 7 225.4
6 4 Books 34 43 -9 200 191 10 19.1 7 133.7
7 5 Bags 67 23 44 50 94 10 9.4 7 65.8
8 6 Colours 87 54 33 300 333 10 33.3 7 233.1
9 7 Bo les 67 23 44 250 294 10 29.4 7 205.8
10 8 Boxes 54 64 -10 200 190 10 19 7 133
11 9 Toffees 78 43 35 300 335 10 33.5 7 234.5
12 10 Baloon 90 56 34 400 434 10 43.4 7 303.8
13
1. Click the right mouse button on column/row. Click 'Insert' → 'Enter row'.
2. In the new raw obtained on the top, type the text you want and click
'Merge and Center'.
This tool enables merge two or more cells and center align the entered data.
2
3 1 Kasun 56 45 24 78 89 292 58.4
4 2 Seetha ab 45 ab 98 87 230 76.667
5 3 Kanthi ab ab 78 59 87 224 74.667
6 4 Gayani 89 76 76 76 76 393 78.6
7 5 Deepal 78 77 67 96 ab 318 79.5
8 6 Naseem 67 ab ab 56 69 192 64
9 7 Thanuka 56 45 24 78 89 292 58.4
10 8 Bimalka ab 67 23 56 ab 146 48.667
11 9 Thiwanga 54 65 78 65 ab 262 65.5
12 10 Pradeepa 56 45 24 78 ab 203 50.75
13
14 Maximum Marks 89 77 78 98 89
15 Minimum Marks 54 45 23 56 69
16 No of Present Students 7 8 8 10 6
17 No of Students in class 10 10 10 10 10
18
Tools for formatting;
1. Boldface letters and numbers
2. Alignment
3. Add colours to cell ranges
4. Adding boarders
5. Inserting a row on the top of the worksheet, centre aligning and merging
data in a cell range
6. Orientation - changing direction of letters
Activity 2.7
Using functions
To calculate the values in a range of cells, functions are used. After the ''=''
symbol, to begin a formula, the function is included. Then the cell range is
included within brackets. To indicate that it is a cell range, the names of the
first cell and the last cell are written within and the symbol '':''.
=sum(C3:G3)
=average(C3:G3)
=max(C3:C12)
=min(C3:C12)
=count(C3:C12)
=counta(C3:C12)
Sorting
Activity 2.9
Step 3 - Select a suitable graphs from the list and click on it.
Graphs are always created on the worksheet in which the relevant information
is available. Therefore, the graphs have to be taken to “Chart Sheets”. Follow
the steps given below for that;.
Graph 2
The graph bellow shows the collection of each child as a percentage in a Pie
chart.
The cell range for pie chart is the cell range of names (B2:B16) and the total
(E2:E16). These cell ranges are not adjoining. Let us select the cell ranges
first.
Step 1 - Select cell range (B2:B16) with the names of the children.
Step 2 - Pressing the ctrl key on keyboard, select the cell range for
totals (E2:E16)
Step 3 - Click on Pie chart tool in the Insert ribbon.
Step 4 - Select a suitable graph form the list and click on it.
Step 5 - Take graph to another graph sheet.
Step 6 - Do the necessary formatting. Save the document and close it.
Activity 2.10
Activity 3.1
By referring to the flowchart, indicate whether the given statements are 'true'
or 'false'.
f) Whatever the outcomes of the conditions may be, Instruction 1 and one
another instruction will be executed. (True/ False)
Consider that, a school has four houses namely Metta, Karuna, Muditha and
Upeksha. A flowchart to assign students to their houses is given below. Houses
are assigned based on the remainder after dividing the admission number by
4.
No
Yes
Remainder = 1? Show ''Karuna''
No
Yes
Remainder = 2? Show ''Muditha''
No
Show ''Upeksha''
Activity 3.3
Develop a Scratch program to divide the students in your school into houses.
Activity 4.1
Make a list of equipment in everyday use that can collect data from sensors
and controlled by a microcontroller.
e.g. -
² Device to detect people or animals entering to a farm secretly
² Device to detect elephants entering to villages
Activity 4.2
Activity 4.3
Connect the micro:bit module to the computer and use the Block Editor to
code the following items using block.
When a new project is obtained, the following two blocks are displayed.
Get ‘show string’ from 'Basic' and connect it to ‘on start’ and change it to Sri
Lanka.
Get ‘show icon’ from 'Basic'. Connect it to ‘forever’ and change to the symbol
'√ '
Get ‘on button A pressed’ in the Input menu and include the Bloke ‘show
number’.
Get ‘on button A pressed’ from the Input menu and change at as B. Get ‘show
number’ into it. Next, get ‘compass heading’ from the Input menu and include
it in ‘show number’.
Activity 4.4
The cable connecting the Arduino Board to the computer has USB at
one end and miniUSB at the other. The USB is connected to the computer and
the miniUSB is connected to the Arduino Board.
Activity 4.5
GND
VCC (+5V)
OUT
void setup(){
pinMode(8,INPUT);
pinMode(13,OUTPUT);
}
void loop(){
Int val=digitalRead(8);
If(val= =1){
digitalWrite(13,HIGH);
}
else{
digitalWrite(13, LOW);
}
}
Connect the Arduino Board with the ultrasound wave sensor as shown below;
Connect the Board to the computer. Do the coding shown. Upload the code to
the Board and study the procedure.
void loop(){
long duration, distance;
digitalWrite(2,HIGH);
delayMicroseconds(100);
digitalWrite(2,LOW);
duration=pulseIn(4,HIGH);
distance=(duration/2)/29;
delay(10);
if((distance<=10))
{
digitalWrite(13,HIGH);
}
else if(distance>10)
{
digitalWrite(13,LOW);
}
The distance between the obstacle and the sensor is shown in centimeters.
Activity 5.1
1. With the assistance from your teacher, inspect the computers in the
computer laboratory and identify those that are networked and the devices
and how they are connected.
2. Complete the table below with information collected about the computers
and the devices in the computer laboratory.
Available or
not Wired or Function
Hardware Numbers
Wireless (briefly)
Have Haven't
Computers
Server
computers
Switches
Routers
Printers
Scanners
Multimedia
projectors
Other
Select the most suitable word from those in the box to fill the blanks in the
statements 1 - 10 given below.
A B
1. RJ45 switch ''''''''''''''''
2. Main objective of
twisted pair cable ''''''''''''''''
computer networking
Ability to store
3. Command Line important information
''''''''''''''''
Interface in a folder in the
Internet
4. Allows for direct and
connecting one
efficient communication
computer network to
between the computers ''''''''''''''''
another network or to
in the network and other
the Internet
peripherals
5. Bluetooth network ''''''''''''''''
² Now, let us set the “Students Files” for sharing in the network.
² Follow the given procedure to change settings in the operating system.
Step 3 - Select options from those given to share files and printer.
11
12
13
Step 8 - Click ’Done’ in the dialogue box that appears.
14
² This process facilitates sharing any file in a file folder. A user in the
network can also copy files into this folder
Activity 5.6
Sharing printer
² By sharing a printer allows any user in the network to send files from his/
her computer to the printer for printing. However, the printer has to be
configured for the purpose.
² The same first three steps in the above process need to be followed in this
process which is not mentioned here again.
² A further few steps have to be followed. They are given below:
² Set the printer for common use among users in the network.
Step 1 - Go to Control Panel, select ‘Devices and Printers’ and click on it.
This completes the process to access the printer in the network. Everyone in
the network can now share the printer for printing.
Activity 5.7
² Consider sending the message ‘Hello, how are you?’ to other users in the
network, using the CLI in Windows 10.
² Let us send the message, ‘‘Hello! How are you?” to a Friend logged in as
student 1. Follow the process given below;
Step 2 - In the dialogue box received, type “cmd” in front of “Open”. Click
'OK' button.
² Assume that the message is, “Hello, how are you?” and the user name of
the receiver is 'student 1'.
² The system of using the msg command is msg user name message
Therefore, in the command line, you need to type ‘msg student 1 hello
how are you?’
² The command, user name and message require spaces in between.
Step 3 - On the Command Line, type ‘msg student 1 Hello, how are you?’
and press 'Enter'.
Activity 5.8
Note: The activities were all with Windows 10 system. If you are
using Windows 7 or those before it, type ‘net send’ command
instead of ‘msg’ command.
Activity 6.1
² Work in groups.
à Make lists to show the use of computers and Information
Communication Technologies and their services in your school. Share
the information you obtained with other groups.
à Given below are a few machines use to diagnose illnesses. Find the
instances they are used and label accordingly.
Machine Use
CAT
Activity 6.2
What steps can be taken to minimize the digital divide in the society?
Activity 6.3
Complete the table below about places in the country that collect e-waste.
Collect information from books by talking to elders, or by collecting
information using the Internet services.
Activity 6.4
Activity 6.6