TVL CSS11 Q4 M1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Computer Systems Servicing NCII – Grade 11

Quarter 4 – Module1: IPv4 Binary Conversion


First Edition, 2020
Republic Act 8293, section 176 states that: No copyright shall
subsist in any work of the Government of the Philippines. However, prior
approval of the government agency or office wherein the work is created shall
be necessary for exploitation of such work for profit. Such agency or office
may, among other things, impose as a condition the payment of royalties.
Borrowed materials (i.e., songs, stories, poems, pictures, photos, brand
names, trademarks, etc.) included in this module are owned by their
respective copyright holders. Every effort has been exerted to locate and seek
permission to use these materials from their respective copyright owners. The
publisher and authors do not represent nor claim ownership over them.

Published by the Department of Education Division of Pasig City

Development Team of the Module


Writer : Romar R. Sy
Editors :
Reviewer : Alfredo R. Aram Jr.
Illustrator :
Layout Artist :
Management Team : Ma. Evalou Concepcion A. Agustin
OIC-Schools Division Superintendent
Aurelio G. Alfonso EdD
OIC-Assistant Schools Division Superintendent
Victor M. Javeña EdD
Chief, School Governance and Operations
Division and OIC-Chief, Curriculum
Implementation Division

Education Program Supervisors

Librada L. Agon EdD (EPP/TLE/TVL/TVE)


Liza A. Alvarez (Science/STEM/SSP)
Bernard R. Balitao (AP/HUMSS)
Joselito E. Calios (English/SPFL/GAS)
Norlyn D. Conde EdD (MAPEH/SPA/SPS/HOPE/A&D/Sports)
Wilma Q. Del Rosario (LRMS/ADM)
Ma. Teresita E. Herrera EdD (Filipino/GAS/Piling Larang)
Perlita M. Ignacio PhD (EsP)
Dulce O. Santos PhD (Kindergarten/MTB-MLE)
Teresita P. Tagulao EdD (Mathematics/ABM)

Printed in the Philippines by Department of Education – Schools


Division of Pasig City
Introductory Message
For the facilitator:

Welcome to the Computer Systems Servicing NCII G11 module on IPv4


Binary Conversion.

This Self-Learning Module was collaboratively designed, developed and


reviewed by educators from the Schools Division Office of Pasig City headed
by its Officer-in-Charge Schools Division Superintendent, Ma. Evalou
Concepcion A. Agustin, in partnership with the City Government of Pasig
through its mayor, Honorable Victor Ma. Regis N. Sotto. The writers utilized
the standards set by the K to 12 Curriculum using the Most Essential
Learning Competencies (MELC) in developing this instructional resource.

This learning material hopes to engage the learners in guided and


independent learning activities at their own pace and time. Further, this also
aims to help learners acquire the needed 21st century skills especially the 5
Cs, namely: Communication, Collaboration, Creativity, Critical Thinking, and
Character while taking into consideration their needs and circumstances.

In addition to the material in the main text, you will also see this box
in the body of the module:

Notes to the Teacher

As a facilitator you are expected to orient the learners on how to use this
module. You also need to keep track of the learners' progress while allowing them
to manage their own learning. Moreover, you are expected to encourage and assist
the learners as they do the tasks included in the module.
For the learner:

Welcome to Computer Systems Servicing NCII Module on IPv4 Binary


Conversion. The hand is one of the most symbolized part of the human body.
It is often used to depict skill, action and purpose. Through our hands we
may learn, create and accomplish. Hence, the hand in this learning resource
signifies that you as a learner is capable and empowered to successfully
achieve the relevant competencies and skills at your own pace and time. Your
academic success lies in your own hands!

This module was designed to provide you with fun and meaningful
opportunities for guided and independent learning at your own pace and
time. You will be enabled to process the contents of the learning material
while being an active learner.

This module has the following parts and corresponding icons:

Expectation – This points to the set of knowledge and skills that you will
learn after completing the module.

Pretest – This measures your prior knowledge about the lesson at hand.

Recap – This part of the module provides a review of concepts and skills
that you already know about a previous lesson.

Lesson – This section discusses the topic in the module.

Activities – This is a set of activities that you need to perform.

Wrap-Up – This section summarizes the concepts and application of the


lesson.

Valuing – This part integrates a desirable moral value in the lesson.

Posttest – This measures how much you have learned from the entire
module.
After completing this lesson, you should be able to:
1. discuss the importance of digital representation of information stored in a
digital binary format;
2. convert decimal numbers to binary;
3. Appreciate the importance of binary system.

DIRECTION: Read the following statement carefully. Choose the best answer by
encircling your answer.

1. It uses a string of bits to represent each character on the keyboard.


a. BYTE c. ASCII
b. BIT d. BINARY
2. It is an abbreviation of binary digit and represents the smallest piece of data.
a. BYTE c. ASCII
b. BIT d. BINARY
3. Which of the following believed that binary numbers were symbolic of the
Christian idea of “creation out of nothing.”?
a. Charles Babbage
b. Gottfried Wilhelm Leibniz
c. George Boole
d. Claude Shannon
4. Which of the following is the correct representation of 172 in binary.
a. 1010 1100 c. 1100 0000
b. 1010 1010 d. 1011 0000
5. Which of the following IP addresses contains the binary number 1100 0000?
a. 10.102.10.2 c. 192.168.1.1
b. 172.16.28.1 d. 127.0.0.1

• On our last module, we have learned that in the early days of the IP protocol,
there were only three subnet masks that could possibly be assigned to a
particular workstation. There was a class A, class B and class C subnet
mask. The subnet mask for a class A network is 255.0.0.0. It also means
that there are 8 bits available for the network address and 24 bits available
for hosts on that network.
• To find the network address, we set all the host bits to zero. To find the first
available host on the subnet, we add one to the value of network address.
• To find the broadcast address, we set all the host bits to ones. And last, to
find the last available host on the subnet, we subtract one to the value of
broadcast address.

INTRODUCTION
What language you often use to talk with somebody? How do you
communicate with your friends? You may say that you are using English as your
language or maybe you use Tagalog when communicating with your friends.
However, can you imagine a world without language? Have you ever experience
talking to someone who is using a language different from yours?
Language is the most important element in any communication. The same
applies in our computer. How do you think computer interact with its user? Is
there any particular language used by the computer to communicate?
In this module, we are going to discuss about the binary system.

BINARY
A system for representing things by combinations of two symbols, such as
one (1) and zero (0), true or false, or the presence or absence of voltage. A Binary
number system is a number system that uses two as its base and expresses
numbers as strings of zeros and ones

HISTORICAL BACKGROUND
The modern binary system was studied in Europe in the 16 th and 17 th
century. However, systems related binary numbers have appeared earlier in
multiple cultures including Egypt, China and India.
One of them is Gottfried Wilhelm Leibniz’s who
work on centuries of technological innovation. Leibniz
own influences includes Chinese philosophy and
divination.
The Indian scholar developed a binary system in
the form of short and long syllables making it similar to
Morse code.
In China, the binary notation in the Ching is used to interpret its quaternary
divination technique. It is based on Taoism duality of yin and yang.
Leibniz’s system uses 0 and 1, like the modern binary system. He interpreted
the hexagrams of the Ching as evidence of binary calculus. He believed that binary
numbers were symbolic of the Christian idea of “creation out of nothing.”
George Boole on the other hand published a paper detailing an algebraic
system of logic. In the 19th century, a British Mathematician invents the system
of symbolic logic call Boolean algebra. His work becomes an instrument in the
design of digital electronic circuitry.
While Claude Shannon bridges the gap between algebraic theory and
practical application. He Implemented Boolean algebra and binary arithmetic
using electronic relays and switches for the first time in history. He also founded
the practical digital design.

DIGITAL REPRESENTATION
Information is represented and stored in a digital binary format and the term
bit is an abbreviation of binary digit and represents the smallest piece of data. A
bit can only have two possible values. Humans interpret words and pictures while
computers interpret only patterns of bits. A bit can be used to represent the state
of something that has two states. For example, a light switch can be either On or
Off; in binary representation, these states would correspond to 1 and 0,
respectively. Computers use binary codes to represent and interpret letters,
numbers and special characters with bits.

A commonly used code is the American Code for Information Interchange


(ASCII).
It uses a string of bits to represent each
character on the keyboard. For examples the
capital letter A is equal to 01000001. Each
group of 8 bits is know as byte.
CONVERSION OF DECIMAL NUMBERS TO BINARY
You often see an IPv4 address like 192.168.1.1 on a computer network and
thought that computers can really understand those numbers. However, the
computers cannot understand the number 192.168.1.1, it needs to be translated
to something that a computer can understand which is the series of ones and
zeros.
Let us use the first octet 192 and convert it to binary. Here are the steps in
converting decimal numbers to binary.
Step 1. Divide the number by 2.
Step 2. Get the quotient and the remainder.

QUOTIENT REMAINDER
192 96 0

In this case, 192 divided by 2 is 96. Remainder is 0.


Step 3. Bring down the quotient.

QUOTIENT REMAINDER
192 96 0
96

Step 4. Divide it by 2
Step 5. Get the quotient and remainder again.

QUOTIENT REMAINDER
192 96 0
96 48 0

In this case, 96 divided by 2 is 48. Remainder is 0.


Step 6. Do it repeatedly until the quotient results to zero.

QUOTIENT REMAINDER
192 96 0
96 48 0
48 24 0
24 12 0
12 6 0
6 3 0
3 1 1
1 0 1
Step 7. Copy the remainder from bottom to top.

QUOTIENT REMAINDER
192 96 0
96 48 0
48 24 0
24 12 0
12 6 0
6 3 0
3 1 1
1 0 1

Step 8. Result is the converted decimal to binary.


Therefore the converted decimal number 192 is equal to 1100 0000.

CONVERSION OF BINARY TO DECIMAL NUMBERS


Now to check if your answer is correct, let us learn to convert a binary
number back to decimal. For this process, you need to memorize these numbers
by order.

It is like the capacity of your flash drive in the market. It starts with 1GB
followed by 2GB. Then, there is no 3 GB flash drive so we will skip to 4GB. Then
we do not have 5,6,7 GB either so we will skip to 8GB. Then no 9,10,11,12,13 GB
and so on.
You may also memorize these by raising the power of 2 from zero to seven.
2º = 1 (Any number raise to zero is equal to one)
2¹ = 2
2² = 4
2³ = 2x2x2 = 8
2 = 2x2x2x2 = 16
2 = 2x2x2x2x2 = 32
26 = 2x2x2x2x2x2 = 64
2 = 2x2x2x2x2x2x2 = 128
Let us now convert 1100 0000 to decimal and check if our answer is correct.
Here are the steps in converting binary to decimal.
Step 1. Use the table we have and place all the binary.

128 64 32 16 8 4 2 1
1 1 0 0 0 0 0 0

Step 2. Get all the values that corresponds to one and add it up.

128 64 32 16 8 4 2 1
1 1 0 0 0 0 0 0

In this case, 128 plus 64 is equal to 192. Therefore, our answer is correct.

DIRECTION: Convert the following numbers to binary.

BINARY
65
75
100
201
80

A system for representing things by combinations of two symbols, such as


one (1) and zero (0), true or false, or the presence or absence of voltage. A Binary
number system is a number system that uses two as its base and expresses
numbers as strings of zeros and ones
Information is represented and stored in a digital binary format and the term
bit is an abbreviation of binary digit and represents the smallest piece of data. A bit
can only have two possible values.
Humans interpret words and pictures while computers interpret only patterns
of bits. A bit can be used to represent the state of something that has two states.
For example, a light switch can be either On or Off; in binary representation, these
states would correspond to 1 and 0, respectively. Computers use binary codes to
represent and interpret letters, numbers and special characters with bits.

DIRECTION: Read the following statement carefully. Write your answer in two to
three sentences each number.

1. List down the steps in converting decimal number to binary?


_______________________________________________________________________________
_______________________________________________________________________________

2. Cite a situation in which you can apply the knowledge about binary system.
_______________________________________________________________________________
_______________________________________________________________________________

DIRECTION: Read the following statement carefully. Choose the best answer by
encircling your answer.

1. It uses a string of bits to represent each character on the keyboard.


a. BYTE c. ASCII
b. BIT d. BINARY
2. It is an abbreviation of binary digit and represents the smallest piece of data.
a. BYTE c. ASCII
b. BIT d. BINARY
3. Which of the following believed that binary numbers were symbolic of the
Christian idea of “creation out of nothing.”?
a. Charles Babbage c. George Boole
b. Gottfried Wilhelm Leibniz d. Claude Shannon
4. Which of the following is the correct representation of 172 in binary.
a. 1010 1100 c. 1100 0000
b. 1010 1010 d. 1011 0000
5. Which of the following IP addresses contains the binary number 1100 0000?
a. 10.102.10.2 c. 192.168.1.1
b. 172.16.28.1 d. 127.0.0.1
REFERENCES

https://byjus.com/maths/binary-number-system

https://www.howtogeek.com/367621/what-is-binary-and-why-do-
computers-use-it/

You might also like