Code Converter

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

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) None of the Mentioned

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 decimal, 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.

4. Code is a symbolic representation of

a) Continuous information

b) Discrete information

c) Decimal information into binary

d) Binary information into decimal

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.

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) None of the Mentioned

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.

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.

8. Why do we use gray codes?

a) To count the no of bits changes

b) To rotate a shaft

c) Error correction

d) None of the Mentioned

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.

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy