


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Contains exercises for hexadecimal, octal, binary and decimal number systems
Typology: Exercises
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Students should be able to understand decimal, binary, octal and hexadecimal number systems.
The binary number system is a base 2 system with only two digits: 0 and 1. A binary number such as “11010” is expressed with a string of 1s and 0s. The decimal equivalent of binary number can be found by expanding the number into a power series with base of 2 e.g. (11010) 2 = 1x2 = 16 + 8 + 0 + 2 + 0^4 + 1x2^3 + 0x2^2 + 1x2^1 + 0x2^0
The binary system represents numbers using^ = (26)^10 bi nary digi ts ( bits ) where each digit corresponds to a power of two. Another Example Binary: 1 1 1 0 0 1 0 1 Power of two: 27 26 252423 222120 Decimal: 128 64 32 16 8 4 2 1 The total (in decimal) isSince we begin counting from zero, 128 + 64 + 32 + 4 + 1 = 229 n bits can represent 2 n (^) values:from 0 to 2 n – inclusive (e.g. 256 values, from 0 to 255, for 8bits). Groups of bits form binary words
Conversion from decimal to binary Repeat division by 2 Example: Convert (29) 10 to binary
The hexadecimal number system (HEX) is a base 16 notation. It is the most popular large-base system for representing binary numbers. Each symbol represents 4-bits (1 nibble), that can take one of 16 different values: the values 0-9 are represented by the digits 0-9, and the values 10-15 are represented by the capital letters A-F respectively. Conversions are performed as with the other number systems.
Example: Convert (B65F) 16 to Decimal number. (B65F) 16 = 11x16^3 + 6x16^2 + 5x16^1 + 15x16^0 = 11x4096 + 6x256 + 5x16 + 15 = 45056 + 1536 + 80 + 15 = (46687) 10
Table 1 : Numbers with Different Bases DECIMAL NUMBER (base 10)
BINARY NUMBE R (base 2) NUMBER^ OCTAL (base 8) NUMBER^ HEX 0 0 0^ (base 16) 0 1 1 1 1 2 10 2 2 3 11 3 3 4 100 4 4 5 101 5 5 6 110 6 6 7 111 7 7 8 1000 10 8 9 1001 11 9 10 1010 12 A 11 1011 13 B 12 1100 14 C 13 1101 15 D 14 1110 16 E 15 1111 17 F