Table of Contents
- 1 What is an advantage of encoding a decimal number in BCD rather than in straight binary What is a disadvantage?
- 2 What is BCD and why is it used?
- 3 What are disadvantages of BCD code?
- 4 What is the disadvantage of the straight binary code?
- 5 Is BCD a weighted code?
- 6 How many bits does a computer program use to represent integers?
- 7 Is Unicode widely used in modern software?
What is an advantage of encoding a decimal number in BCD rather than in straight binary What is a disadvantage?
The main advantage of binary coded decimal is that it allows easy conversion between decimal (base-10) and binary (base-2) form. However, the disadvantage is that BCD code is wasteful as the states between 1010 (decimal 10), and 1111 (decimal 15) are not used.
What is BCD and why is it used?
In computing and electronic systems, binary-coded decimal (BCD) is a class of binary encodings of decimal numbers where each digit is represented by a fixed number of bits, usually four or eight. Sometimes, special bit patterns are used for a sign or other indications (e.g. error or overflow).
What is the difference between BCD and binary?
This is the main difference between Binary number and binary coded decimal. For 0 to 9 decimal numbers both binary and BCD is equal but when decimal number is more than one bit BCD differs from binary….BCD or Binary Coded Decimal | BCD Conversion Addition Subtraction.
Decimal number | Binary number | Binary Coded Decimal(BCD) |
---|---|---|
8 | 1000 | 1000 |
9 | 1001 | 1001 |
10 | 1010 | 0001 0000 |
11 | 1011 | 0001 0001 |
Is Binary Coded Decimal still used?
BCD is still used primarily in scientific, financial and graphic calculators. It is also used in all mainframes. There is an important reason to use BCD instead of pure binary representations. Binary floating point has no exact representation for numbers like 0.2.
What are disadvantages of BCD code?
Disadvantages of BCD Codes
- The addition and subtraction of BCD have different rules.
- The BCD arithmetic is little more complicated.
- BCD needs more number of bits than binary to represent the decimal number. So BCD is less efficient than binary.
What is the disadvantage of the straight binary code?
The main disadvantages are around human usability : Difficult for most people to read. takes a lot of digits to represent any reasonable number (for instance up to 99 million takes 8 digits in Decimal and 27 digits in Binary).
What was the main function of BCD when IBM first created it?
With the introduction of the IBM card in 1928, IBM created a code capable of representing alphanumeric information, later adopted by other manufacturers. This code represents the numbers 0-9 by a single punch, and uses multiple punches for upper-case letters and special characters.
What is a BCD code what are its advantages and disadvantages?
Answer: BCD means Binary coded decimal, its advantage is it can represent decimal numbers in the form of binary value says (0000-0 to 1001-9). Binary codes are divided into weighted binary code and non weighted binary code.
Is BCD a weighted code?
BCD Code. BCD code or Binary coded Decimal codes. It is a numeric weighted binary codes, where every digit of a decimal number is expressed by a separate group of 4-bits. There are various BCD codes like 8421, 2421, 5211, etc.
How many bits does a computer program use to represent integers?
A computer program uses 3 bits to represent integers. When the program adds the decimal (base 10) numbers 5 and 3, the result is 0. Which of the following is the best explanation for the result? a. An overflow error occurred. sorted list.
How does an online store use 6-bit binary sequences?
An online store uses 6-bit binary sequences to identify each unique item for sale. The store plans to increase the number of items it sells and is considering using 7-bit binary sequences. Which of the following best describes the result of using 7-bit sequences instead of 6- bit sequences?
Which statement creates an int object whose value is 1333?
The statement b = 99 creates an int object whose value is 99; it then binds the variable b to this new int object. The statement c = a + b creates the int object whose value is 1333 as the sum of the value of the int object bound to a and the value of the int object bound to b; it then binds the variable c to the new int object.
Is Unicode widely used in modern software?
Unicode is widely supported in modern software, including most OSs and word-processing applications. a. True b. False