Digital Circuits Questions and Answers – Code Converters

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
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 ___________

0101 0011 & 0010 0110 1000

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 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
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. In Gray Code, every sequence of successive bits differs by 1 bit only.
advertisement
advertisement

4. Code is a symbolic representation of ___________
a) Discrete information
b) Continuous information
c) Decimal information into binary
d) Binary information into decimal
View Answer

Answer: a
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.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

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
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?
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
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.
advertisement

7. Reflected binary code is also known as ___________
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. 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 Detection
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.
advertisement

9. Earlier, reflected binary codes were applied to ___________
a) Binary addition
b) 2’s complement
c) Mathematical puzzles
d) Binary multiplication
View Answer

Answer: c
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 ___________
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.

11. Convert binary number into gray code: 100101.
a) 101101
b) 001110
c) 110111
d) 111001
View Answer

Answer: c
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.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.