Computer Fundamentals - Engineering

Q1:

The following is true about 2-out of-5 code:

A it is weighted code

B it is unweighted code

C it has odd parity

D All of the above

E None of the above

ANS:B - it is unweighted code

2-out of-5 code : a numeric code that stores 1 decimal digit in 5 binary digits in which 2 of the bits are always 0 or 1 and the other 3 are always in the opposite state.

It is a binary-coded decimal notation in which;

(a) each decimal digit is represented by a binary numeral consisting of five binary digits of which two are of one kind, called "ones" and three are of the other kind, called "zeros" and.

(b) the usual weights assigned to the digit positions are 0-1-2-3-6, except that "zero" is represented as 01100.