This set of Digital Electronics/Circuits Multiple Choice Questions & Answers (MCQs) focuses on “Code Converters”.
1. A code converter is a logic circuit that _____________
a) Inverts the given input
b) Converts into decimal number
c) Converts data of one type into another type
d) Converts to octal
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 ___________
0101 0011 & 0010 0110 1000
a) 01010011 001001101000
b) 11010100 100001100000
c) 110101 100001100
d) 101011 001100001
Explanation: Firstly, convert every 4 sets of binary to decimal from the given: 0101=5, 0011=3. Then convert 53 to binary, which will give 110101. Again, do the same with the next 4 set of binary digits.
3. The primary use for Gray code is ___________
a) Coded representation of a shaft’s mechanical position
b) Turning on/off software switches
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
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. In Gray Code, every sequence of successive bits differs by 1 bit only.
4. Code is a symbolic representation of ___________
a) Discrete information
b) Continuous information
c) Decimal information into binary
d) Binary information into decimal
Explanation: Code is a symbolic representation of discrete information. Codes can be anything like numbers, letter or words, written in terms of group of symbols.
5. One way to convert BCD to binary using the hardware approach is ___________
a) With MSI IC circuits
b) With a keyboard encoder
c) With an ALU
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?
a) All digits change between counts
b) Two digits change between counts
c) Only one digit changes between counts
d) Alternate digit changes between counts
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.
7. Reflected binary code is also known as ___________
a) BCD code
b) Binary code
c) ASCII code
d) Gray Code
Explanation: The reflected binary code is also known as gray code because one digit reflected to the next bit. In Gray Code, every sequence of successive bits differs by 1 bit only.
8. Why do we use gray codes?
a) To count the no of bits changes
b) To rotate a shaft
c) Error correction
d) Error Detetction
Explanation: Today, Gray codes are widely used to facilitate error correction in digital communications such as digital terrestrial television and some cable TV systems.
9. Earlier, reflected binary codes were applied to ___________
a) Binary addition
b) 2’s complement
c) Mathematical puzzles
d) Binary multiplication
Explanation: The reflected binary code is also known as gray code because one digit reflected to the next bit. In Gray Code, every sequence of successive bits differs by 1 bit only. Reflected binary codes were applied to mathematical puzzles before they became known to engineers.
10. The binary representation of BCD number 00101001 (decimal 29) is ___________
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.
11. Convert binary number into gray code: 100101.
Explanation: : Conversion from Binary To Gray Code:
1 (XOR) 0 (XOR) 0 (XOR) 1 (XOR) 0 (XOR) 1 ↓ ↓ ↓ ↓ ↓ 1 1 0 1 1 1
Sanfoundry Global Education & Learning Series – Digital Circuits.
To practice all areas of Digital Circuits, here is complete set of 1000+ Multiple Choice Questions and Answers.