The correct answer is: C. it has odd parity.
A 2-out-of-5 code is a type of error-correcting code that uses five bits to represent one of three values: 0000, 0011, or 1111. The code is called a 2-out-of-5 code because each value is represented by two bits that are set to 1. The remaining three bits are set to 0.
The 2-out-of-5 code has odd parity because the number of 1 bits in each value is odd. This makes it possible to detect errors in the code. If any of the bits in a value are changed, the number of 1 bits will no longer be odd, and the error will be detected.
A weighted code is a type of code in which each bit has a different weight. The weights of the bits are used to represent different values. In a 2-out-of-5 code, the weights of the bits are 1, 2, 4, and 8.
An unweighted code is a type of code in which all of the bits have the same weight. In a 2-out-of-5 code, all of the bits have a weight of 1.
Therefore, the only option that is true about 2-out-of-5 code is C. it has odd parity.