1 Crore+ students have signed up on EduRev. Have you? Download the App |
Which of the following statement is NOT correct?
Hexadecimal Number System:
Complement of a Number: In digital work, two types of complements of a binary number are used for complemental sub-traction:
1’s complement:
2’s complement:
Octal Number System:
Excess-3 Code:
Conversion of (98.75)10 into binary, octal and hexadecimal number system, respectively, is:
Concept:
Conversion of decimal to binary:
Step 1: Divide the number by 2 keeping notice of the quotient and the remainder. Continue dividing the quotient by 2 until you get a quotient of zero.
Step 2: Write out the remainders in the reverse order to get the equivalent binary number.
For converting decimal fractions to binary numbers, follow these steps:
For converting decimal fractions to a binary numbers, follow these steps:
Then write out the integer parts from the results of each multiplication to get the equivalent binary number.
Conversion of binary to octal:
Make pair of three binary number which forms an octal number.
Conversion of binary to hexadecimal:
Make pair of four binary number which forms a hexadecimal number.
Calculation:
Given, that the decimal number = (98.75)10
98 / 2 = 49 with remainder 0
49 / 2 = 24 with remainder 1
24 / 2 = 12 with remainder 0
12 / 2 = 6 with remainder 0
6 / 2 = 3 with remainder 0
3 / 2 = 1 with remainder 1
1 / 2 = 0 with remainder 1
Write in reverse order:
98 = 1100010
0.75 × 2 = 1 + 0.5
0.5 × 2 = 1 + 0
.75 = .11
(98.75)10 = (1100010.11)2
(98.75)10 = (001 100 010. 110)2 = (142.6)8 ...........(from table 1)
(98.75)10 = (0110 0010. 1100)2 = (62.C)16...........(from table 2)
Convert the 127 decimal number into binary.
Concept
Divide 127 by 2. Use the integer quotient obtained in this step as the dividend for the next step. Repeat the process until the quotient becomes 0.
Write the remainder from bottom to top i.e. in the reverse chronological order.
This will give the binary equivalent of 127.
Therefore, the binary equivalent of decimal number 127 is 1111111.
Tips and Tricks:
Steps to writing 2’s complement to any binary number:
Ex. Let the given number is: 100100
The 2’s complement is as shown.
Given number is 1010101
2’s complement = 0101011
Step 1: Divide (21)10 successively by 2 until the quotient is 0.
21/2 = 10, remainder is 1
10/2 = 5, remainder is 0
5/2 = 2, remainder is 1
2/2 = 1, remainder is 0
1/2 = 0, remainder is 1
Step 2: Read from bottom (MS2) to top (LS2) as 10101
This is the binary equivalent of decimal number 21
Step 3: Binary equivalent of 0.125 is, multiplying by 2 until we get 1 and writing down the integer after each multiplication,
⇒ 0.125 × 2 = 0.25
⇒ 0.25 × 2 = 0.5
⇒ 0.5 × 2 = 1
⇒ Binary equivalent of 0.125 = 001
∴ The binary code of (21.125)10 is,
(21.125)10 = 10101.001
The decimal equivalent of the binary number (1101)2 is
Step by step solution:
Concept:
Hexadecimal number: In this, value of the base is 16. Each digit is represented by 4-bit binary no.
Octal number: For octal number, value of base is 8. Each digit of an octal number is represented by 3-bit binary no.
Octal number = 657
Binary representation for this number (each digit of a octal number is converted into 3 binary bits)
So, 657 in binary is equivalent to 110 101 111
Now group this binary number into 4 bits starting from right to left.
i.e. 0001 1010 1111
Hexadecimal representation for this number is : 1AF
Find the decimal equivalent of the 6-bit binary number (101.101)2
The decimal equivalent of the binary number 101.101 is,
= 1 × 22 + 0 × 21 + 1 × 20 + 1 × 2-1 + 0 × 2-2 + 1 × 2-3
= 4 + 0 + 1 + 0.5 + 0 + 0.125
= 5.625
The decimal number (57.375)10 when converted to binary number takes the form:
Concept:
Decimal to binary:
Decimal to binary: (fractional part)
Calculation:
Binary of 57:
Now, write remainder from bottom to up (in reverse order), this will be 111001 which is equivalent binary number of decimal integer 57.
Convert decimal fractional number 0.375 into binary number.
Here, decimal fraction: 0.375
Now, write these resultant integer part, this will be 0.0110 which is equivalent binary fractional number of decimal fractional 0.375.
∴ 57.375 can be written as 111001.011 in binary
Hence, option (1) is correct.
The range of numbers represented by an 8-bit two’s complement representation is
The range of n bit word in 2’s complement representation is,
(−2n−1) to (2n−1 − 1)
(n-1) is used here because out of n bits 1 bit is used as a sign bit
There is one extra negative number because "0" has only a single representation in 2's complement form
For 8 bit word, the range will be -128 to 127.