Comp9-LP 3-4Q
Comp9-LP 3-4Q
Diocese of Surigao
San Nicolas High School of Anao-aon, Inc.
San Francisco (Anao-aon), Surigao Del Norte
STUDENT’S ACTIVITY SHEET
Name:_____________________________________ Date:______________
Grade & Section:___________________________ Subject: Computer 9
Subject Teacher: Mrs. Glady May C. Rebutada Contact No.:09453592203
Content Standard: Activity No.: 3Q-1 (week 1)
Solved Examples
=8+0+0+1
= (9)₁₀
= 64 + 32 + 0 + 8 + 0 + 0 + 1
= (105)₁₀
= 128 + 64 + 32 + 16 + 0 + 4 + 2 + 1
= (247)₁₀
Activity #1
Practice Questions
Post Test
Instructions:
Convert each of the following decimal numbers to binary. Show your work where applicable.
Answer Key
Objective:
Materials Needed:
Paper
Pencil
Calculator (optional)
Whiteboard and markers (if done in a classroom setting)
Timer (optional)
Instructions:
1. Warm-Up (5 minutes):
o Review the process of converting decimal numbers to binary.
o Example: Convert the decimal number 13 to binary.
13 ÷ 2 = 6 remainder 1
6 ÷ 2 = 3 remainder 0
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
Binary: 1101
CN
The hexadecimal number system is a type of number system, that has a base value equal to 16. It is also pronounced
sometimes as ‘hex’. Hexadecimal numbers are represented by only 16 symbols. These symbols or values are 0, 1, 2, 3, 4,
5, 6, 7, 8, 9, A, B, C, D, E and F. Each digit represents a decimal value. For example, D is equal to base-10 13.
Hexadecimal Number: Hexa means 16. In the hexadecimal number system, it uses 16 digits. It consists of numbers and
alphabets. It includes numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F; total 16 digits. It is denoted by s 16, where s is
a hexadecimal number.
Here is the table for hex to binary conversion. The table is given for the first few numbers up to 16.
0 0
1 1
2 10
3 11
4 100
5 101
6 110
7 111
8 1000
9 1001
A 1010
B 1011
C 1100
D 1101
E 1110
F 1111
To convert a hexadecimal number into its equivalent binary number, follow the steps given here:
= (A × 256) + (2 × 16) + (B × 1)
= (10 ×256) + 32 + 11
= 2560 + 43
= 2603(Decimal number)
E16 = E × 160
=E×1
=E
= 48 + 0
= 48(Decimal number)
Therefore,
Practice Problems
Below is the table of hexadecimal number systems with equivalent values of the binary and decimal number systems.
0 0000 0
1 0001 1
2 0010 2
3 0011 3
4 0100 4
5 0101 5
6 0110 6
7 0111 7
8 1000 8
9 1001 9
10 1010 A
11 1011 B
12 1100 C
13 1101 D
14 1110 E
15 1111 F
As we know, there are 16 digits in the hexadecimal number system, represented from 0 to 9 same as decimals, but after
that, it starts with an alphabetical representation of preceding numbers such as A, B, C, D and E. Let us see the conversion
of ‘hex’ into other number systems.
Here, you will see the representation of a hexadecimal number into decimal form.
Hexadecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
You have learned how to convert hexadecimal numbers to decimal numbers. Now let us find out how we can convert a
decimal number into a hexadecimal number system. Follow the below steps:
Solution: Divide 242 by 16 and repeat the steps, till the quotient is left as 0.
Here, you will see the representation of a hexadecimal number into octal number form.
Hexadecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F
Octal 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17
⇒ 1 × 82 + 2 × 81 + 1 × 8 0
⇒ 1 × 64 + 2 × 8 + 1 × 1
⇒ 64 + 16 + 1
⇒ 81
(121)8 = 8110
Here, you will see the representation of a hexadecimal number into binary form. We can use only 4 digits to represent
each hexadecimal number, where each group has a distinct value from 0000 (for 0) and 1111 (for F= 15 =8 + 4 + 2 + 1).
Hexadecim 0 1 2 3 4 5 6 7 8 9 A B C D E F
al
Binary to hexadecimal conversion is a simple method to do. You just have to put the values of the binary number to the
relevant hexadecimal number.
Out of many types of number representation techniques, the Hexadecimal number system is one having a value of
base 16.
So Hexadecimal numbers have 16 symbols or digital values, i.e 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
A, B, C, D, E, F are single bit representations of 10, 11, 12, 13, 14 and 15 respectively.
The addition of either an o prefix or an h prefix indicates Hexadecimal.
A power of 16 is the weight of the position of every digit.
Solved Examples on Hexadecimal number system
Solution: Step 1: The “5 “ is the “16 x 16” position, so that means 5 x16 x16
Step 2: The ‘C’ (12) is in the “16” position, so that means 12 x 16.
Solution: Step 1: The “3 “ is the “16 x 16” position, so that means 3 x16 x16
Step 2: The ‘C’ (12) is in the “16” position, so that means 12 x 16.
Solution: Step 1: The “7 “ is the “16 x 16” position, so that means 7 x16 x16
Step 2: The ‘B’ (11) is in the “11” position, so that means 11 x 16.
Solution: Step 1: The “2 “ is the “16 x 16” position, so that means 2 x16 x16
Step 2: The ‘E’ (14) is in the “16” position, so that means 14 x 16.
Solution: Step 1: The “4 “ is the “16 x 16” position, so that means 4 x16 x16
Step 2: The ‘F’ (15) is in the “16” position, so that means 15 x 16.
Activity #
Practice Questions
Post Test
Part A: Hexadecimal to Binary Conversion
1. A3
2. 4F
3. 1C7
4. D9
5. 2B
6. 5E
7. B4
8. 3D7
9. 9A
10. 7F
11. 101011
12. 11110001
13. 100111
14. 10101010
15. 110011001
16. 255
17. 146
18. 789
19. 1023
20. 543
21. Convert the hexadecimal number 3A9 to both binary and decimal.
22. Convert the binary number 110110 to both hexadecimal and decimal.
23. Convert the decimal number 526 to both binary and hexadecimal.
24. Convert the hexadecimal number B8F to binary, then to decimal.
25. Convert the binary number 10110101 to decimal, then to hexadecimal.
1. A3 = 10100011
2. 4F = 01001111
3. 1C7 = 000111000111
4. D9 = 11011001
5. 2B = 00101011
6. 5E = 94
7. B4 = 180
8. 3D7 = 983
9. 9A = 154
10. 7F = 127
11. 101011 = 2B
12. 11110001 = F1
13. 100111 = 27
14. 10101010 = AA
15. 110011001 = 199
16. 255 = FF
17. 146 = 92
18. 789 = 315
19. 1023 = 3FF
20. 543 = 21F
Objective: Students will demonstrate their ability to convert hexadecimal numbers to binary numbers through a series of
engaging tasks and challenges.
Materials Needed:
Activity Steps:
Quick Review: Begin with a brief review of hexadecimal and binary number systems. Highlight key points, such
as:
o Hexadecimal is base-16, using digits 0-9 and letters A-F.
o Binary is base-2, using digits 0 and 1.
Examples: Show a few examples of converting hexadecimal to binary on the whiteboard.
Flashcard Drill: Hand out flashcards with hexadecimal numbers to students. Have them convert each
hexadecimal number to binary. They can write their answers on a piece of paper.
Peer Review: Pair up students and let them check each other's work. Discuss any discrepancies and correct
mistakes.
3. Group Activity (20 minutes)
Hexadecimal Bingo: Create bingo cards with binary numbers. Call out hexadecimal numbers, and students must
find and mark the corresponding binary number on their bingo card. The first to get a bingo wins a small prize.
Conversion Relay: Divide the class into small teams. Set up a relay race where each team member must convert
a hexadecimal number to binary before passing the marker to the next teammate. The first team to correctly
complete all conversions wins.
Online Conversion Tools: Allow students to use computers or tablets to explore online hexadecimal to binary
conversion tools. Encourage them to check their manual conversions using these tools.
Interactive Quiz: Use an online quiz platform (like Kahoot or Quizizz) to conduct a quick, interactive quiz on
hexadecimal to binary conversion.
Discussion: Discuss real-world applications of hexadecimal and binary numbers in computer science, such as in
color codes for web design, memory addresses, and machine-level programming.
Examples: Show practical examples where hexadecimal to binary conversion is used.
Worksheet: Distribute a worksheet with hexadecimal to binary conversion problems. Collect and grade them to
assess individual understanding.
Reflection: Ask students to write a brief reflection on what they learned and any challenges they faced during the
activity. This can help you identify areas that may need further review.