Code Converter
Code Converter
Code Converter
View Answer
Answer: c
Explanation: A code converter is a logic circuit that changes data presented in one type of binary code to
another type of binary code.
2. Use the weighting factors to convert the following BCD numbers to binary:
a) 01010011 001001101000
b) 11010100 100001100000
c) 110101 100001100
d) 101011 001100001
View Answer
Answer: c
Explanation: Firstly, convert every 4 sets of binary to decimal from the given: 0101=5, 0011=3. Then
convert 53 to decimal, which will give 110101. Again, do the same with the next 4 set of binary digits.
c) To represent the correct ASCII code to indicate the angular position of a shaft on rotating machinery
d) To convert the angular position of a shaft on rotating machinery into hexadecimal code
View Answer
Answer: a
Explanation: Gray code is useful because only one bit changes at a time, which is implemented easily in
Coded representation of a shaft’s mechanical position.
a) Continuous information
b) Discrete information
View Answer
Answer: a
Explanation: Code is a symbolic representation of discrete information. Since, codes are nothing but a
particular number, which is in integral form.
c) With an ALU
d) UART
View Answer
Answer: a
Explanation: One way to convert BCD to binary using the hardware approach is MSI IC (i.e. medium scale
integration) circuits.
6. Why is the Gray code more practical to use when coding the position of a rotating shaft?
View Answer
Answer: c
Explanation: The Gray code is more practical to use when coding the position of a rotating shaft because
only one digit changes between counts that is reflected to the next count.
a) BCD code
b) Binary code
c) ASCII code
d) Gray Code
View Answer
Answer: d
Explanation: The reflected binary code is also known as gray code because one digit reflected to the next
bit.
b) To rotate a shaft
c) Error correction
View Answer
Answer: c
Explanation: Today, Gray codes are widely used to facilitate error correction in digital communications
such as digital terrestrial television and some cable TV systems.
a) Binary addition
b) 2’s complement
c) Mathematical puzzles
d) binary multiplication
View Answer
Answer: c
Explanation: Reflected binary codes were applied to mathematical puzzles before they became known to
engineers.
a) 0011101
b) 0110101
c) 1101001
d) 0101011
View Answer
Answer: a
Explanation: The given BCD number 00101001 has three 1s. So, it can be rewritten as 0000001-1,
0001000-8, 0010100-20 and after addition, we get 0011101 as output.
a) 101101
b) 001110
c) 110111
d) 111001
View Answer
Answer: c
Explanation: Conversion of binary number 100101 into gray code takes place in this way: Firstly, write the
1st digit as it is from left; now add the two numbers sequentially.