Beruflich Dokumente
Kultur Dokumente
5
DATA REPRESENTATION
Q.5.01 Complete the following statements.
i) Data is a collection of ________________
ii) Data becomes information when ________________ properly.
iii) Octal equivalent of binary number 1100010 is________________
iv) 2’s complement of binary number 1100010 is ________________
v) In floating point representation, mantises is kept less than________________
vi) ASCII stands for ________________________________
Ans:
i) raw facts ii) arranged iii) 142 iv) 0011110 v) 1
iv) American Standard Code for Information Interchange
1
Q.5.04 Match the items given in Column I with those given in Column II
Column I Column II
i) Mantissa a) Nibble
ii) Radix b) Byte
iii) Exponent c) Argument
iv) BCD d) Base
v) ASCII e) Characteristics
Ans:
i) (c) ii) (d) iii) (e) iv) (a) v) (b)
Q.5.07 Convert the following decimal numbers into their binary equivalent.
Solution:
2 25 0.75 X 2 = 1.5
2 12 0.5 X 2 = 1.0
2 6
2 3
Q.5.08 Convert the following binary numbers into their decimal equivalent.
2
Above questions are same as the following example.
Example: Convert Binary number 10110.101 into decimal equivalent.
Solution:
= 1 X 16 + 0 X 8 + 1 X 4 + 1 X 2 + 0 X 1 + + +
= 16 + 0 + 4 + 2 + 0 + 0.5 + +
= 22.5 + 0 + 0.125
= 22.625
= (22.625)10
Q.5.09 Convert the following decimal numbers into their octal equivalent.
Solution:
8 1583
8 197
8 24
Q.5.10 Convert the following octal numbers into their decimal equivalent.
(3057)8 = 3 X 83 + 0 X 82 + 5 X 81 + 7 X 80
= 3 X 512 + 0 X 64 + 5 X 8 + 7 X 1
= 1536 + 0 + 40 + 7
= 1583
= (1583)10
Q.5.11 Convert the following decimal numbers into their Hexadecimal equivalent.
Solution:
16 20154
16 1259 =A
16 78 =B
4 =E
Q.5.12 Convert the following Hexadecimal numbers into their decimal equivalent.
Solution:
= 3 X 4096 + 15 X 256 + 8 X 16 + 10 X 1
= 16266
= (16266)10
4
Q.5.13 Subtract:
Above questions from (i) to (iv) are same as the following example.
Example:
1010
- 1101
-----------------------
0011
-----------------------
part (v) is same as the following example:
Example: Subtract (1101)2 from (10010)2 in binary system using 1’s and 2’s complement
method.
1st make equal digits in both the numbers by adding 0’s on the left. Like following
10010
1 00100
00101
1st make equal digits in both the numbers by adding 0’s on the left. Like following
5
Making equal digits of Binary numbers: 01101 and 10010
= 10011
10010
1 00101
00101
Ans: Coding is the process of representing all the numeric or non-numeric information in binary digits.
The language of electronic computers is binary therefore all the numeric or non-numeric data
must be converted in to binary language.
ASCII stands for American Standard Code for Information Interchange. It is 7-bit code used to handle
alphanumeric data having 128 different characters. It is the most popular coding system for PC’s and
data communication. This code allows manufactures to standardize input/output devices such as
keyboard, printers visual display unit etc.
EBCDIC stands for Extended Binary Coded Decimal Interchange Code. It an 8-bit code and can provide
256 different characters. It is primarily used by International Business Machine on IBM mainframes and
on other large computers.