0% found this document useful (0 votes)
21 views8 pages

Chapter 2 Data Representation

The document covers various methods of converting between binary, denary, and hexadecimal number systems. It includes exercises for converting binary numbers to denary and hexadecimal, as well as vice versa, and discusses the representation of numbers using two's complement. Additionally, it addresses the largest numbers that can be represented by a given number of bits.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
21 views8 pages

Chapter 2 Data Representation

The document covers various methods of converting between binary, denary, and hexadecimal number systems. It includes exercises for converting binary numbers to denary and hexadecimal, as well as vice versa, and discusses the representation of numbers using two's complement. Additionally, it addresses the largest numbers that can be represented by a given number of bits.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
Se Paring Sc-3¢ 23- 3¢ Hy. Chapter 2 Data Representation Quick Check 2.2 3. Convert the following binary numbers to denary: a) 100112 Paco 128 64 32 16 8 4 2 1 mo 2 2 2 2 2 ot 2 Binary Bot’ 92° (pcaeeoemjo0m/229 100 Big 0! e000 b) 110 00002 . Pace value Pose value Binary Oat i) 100001102 vue Pace vaso Bay Dat 8. Convert the following hexadecimal numbers to denary: ts a) 9Dis = BX ye"+ Ve[6 | = 157 atthe. Place 1048576 6553400528818 vaue Pace | 16%g5 16 16h 16? 28’ 16? Wileard 2 De ae om 2 EE eee Her OFT a Zee “0 9 9 4 13 b) BB6:s oere! 6K H NK (6! Fixe = 2a Place value Place Dit oo Ot U6 ©) ADS: © OX Le AIG LIXL6 + Hates loxigis4 4437 Place value Place value al g@ | Ow ls | 4] o 1. Convert the following denary numbers to binary: a) Poce Bray Dit b) Place Poe ve Hu Bary 54 ie ee 8 2k Fie 2 Pr FP Pe t gtmee &@ OA { tol (oe 00 89 ot] 01 #19 6 ! 100 Ou te@ol| ele it Me 2 \ gt 22 = | bi 2 RKSR YN 2 2|_ So ats tz a 44 Remainder = [ Remainder = Remainder = Remainder = Q Remainder = 0 Remainder = 0 Remainder = © Remainder = | Remainder = | Remainder = O Remainder = 0 Remainder= { Remainder = | Remainder © 0 Remainder = ( Remainder 4 0 010 Remainders Remainder - 0 Remainder = [ Remainder = Remainder - O Remainder = ( Remainder = { Remainder~ 0 4 Direction to read the igi digits Direction to read the digits 9, Convert the following denary numbers to hexadecimal. a) Prace value Prace vale Binary Dat b) Place value value Bist value Place value Binary Digit 1000 1048576 65536 16 16° 3789 4220 4096 16 286 18 6 16° 18° 16| 000 Remainder = 16 Remainder = Remainder = | Remainder = Remainder ~ Remainder = Remainder = Remainder Remainder = Remainder = Remainder = Remainder = Remainder Remainder = Remainder Direction to read the digits Direction to ead the digits Direction to ead the digits Hexadecimal Binary Hexadecimal Binary, | [0 | oo || 1 | [Ls 1001 [2 0010 a | [3 B 1011 [ 4 0100 c 5 D 1101, i aii cE 7_I F aii 7. Convert the following hexadecimal numbers to binary: a) 4% b) AB6s ©) DAaTs Extra) Convert the following binary numbers to hexadecimal: : a) 1001110, b) 110002 <) 1011011012 4. The largest number that can be represented by N bits is obtained when all the N bits are set to 1. The following. is a table of the largest numbers that can be represented by N bits, where N = 1 to5, expressed in both binary and denary: aii a) Calculate the largest denary number that can be represented using: i obits ii, sbits iil, 16bits ») By observing a pattern or through other means,, express the largest number that can be represented using, Nobits in terms of N 5. At least.16 bits are required to represent the sum of two 8-bit numbers. True or false? Quick Check 2.3 1. Represent the following numbers using 4-bit two's complement: a) b) Q 5 1. Flip all N bis. 120 of Binary of ze Flip > 2. Add 1 to the binary number + 1 $5 1. Flip all N bits. 128 64 Binary of 2 Flip > 2. Add 1 to the binary number. * 7 7 1. Flip allN bits. 128 64 Binary of a] & Flip. > 2, Add 1 to the binary number. 2 2 2 32 2 o 2 4. Flip allN bits, 1 64 32 16 8 4 2 Binary of ze p ee ep 2 fip> 2. Add 1 tothe binary number. ) 8 1 Flip all bits me 68 32 1 8 4 2 Ft Binary of wale #(a/e lala Hip > 2. Add 1 to the binary number. ‘ 2. Both 8 and -8 can be represented using 4-bit two's complement. True or False? 3. The following sets of 8 bits use two's complement to represent negative numbers, Write down the number being represented by each set of 8 bits. a) 1100 1010 1. Flip all bits, 12% 64) 1 8 4 2 1 Binary of wvoainielep ere Flip > 2. Add 1 to the binary number, by0101 0011 1. Flip all bits Binary of Flip > 2. Add 1 tothe binary number ¢) 1211 1111 1. Flip all bits Binary of Flip-> 2, Add 1 tothe binary number ) 1000 0000 1 Flip all N bits, Binary of Flip > 2. Add 1 to the binary number, 128 2 128 2 128 2 6 2 oa o 6 2 2 6 a 2 2 16 ae 2 6 a 2 8 4 2 Pe 2 a 4 2 emit 8 4.2 Pi e|?

You might also like