# “The Knowledge Library”

#### Knowledge for All, without Barriers…

##### An Initiative by: Kausik Chakraborty.
03/10/2023 5:53 AM

# “The Knowledge Library”

Knowledge for All, without Barriers…

# “The Knowledge Library”

Knowledge for All, without Barriers……….

# The Knowledge Library

### Number Systems & Codes Questions and Answers

1. What is meant by radix (or base) of a number system?

Radix or base of a number system is the number of digits or distinct symbols it uses to represent various numbers.

2. What is a weighted code?

In a weighed code the value of a digit in a 4-bit depends on its position such as in BCD code.

3. What is non-weighted code?

In a non-weighted code, no definite weights are assigned to the four digit position such as in BCD code.

4. What is meant by LSB and MSB?

The right most bit of a binary number is called least-significant bit (LSB) while the left most bit of a binary number is known as the most-significant bit (MSB).

5. What are octal and hexadecimal systems?

The number systems with base (or radix) 8 and 16 are known as octal number system and hexadecimal number system respectively.

6. What is meant by BCD code?

BCD code is a decimal system with each digit encoded in its binary equivalent of 4 digits.

7. What is an excess-3 code?

Excess-3 code is derived from the natural BCD code by adding (0011) to each coded number.

8. Explain why hexadecimal code is widely used in digital systems?

It is very convenient to enter binary data in a digital system using hex code.

9. What is the difference between binary code and BCD?

BCD is not a number system like binary. It is a decimal system with each decimal digit encoded in its binary equivalent. A straight binary code takes the complete decimal number and represents it in binary while the BCD code converts each decimal digit to binary individually.

10. State the disadvantage of a 8-4-2-1 code.

BCD requires more bits than straight binary to represent decimal numbers of more than one digit. This is because BCD does not use all possible 4-bit groups and is, therefore, inefficient.

11. Explain why is an excess-3 code called an unweighted code?

Since no definite weights can be assigned to the four digit positions in an excess-3 code, it is an unweighted code.

12. Explain the use of excess-3 code.

The key feature of the excess-3 code is that it is self-complementing code. It means that 1’s complement of the coded number yields 9’s complementing of the number itself. The self-complementing property makes the ecess-3 code useful in some arithmetic operations, because subtraction can be performed using 9’ complement method and 1’s complement can be easily produced with digital logic circuits by simply inverting each bit.

13. What are the advantages of Gray code?

In Gray code if we go from any one decimal number to the next, only one bit of the Gray code changes. Because of this feature, an amount of switching is minimized and the reliability of the switching systems is improved.

14. What is an alphanumeric code?

The codes used for representing letters of alphabet, punctuation marks and other special characters along with numbers are called alphanumeric codes.

15. Which is the most commonly used code for representing alphanumeric information?

ASCII (American Standard Code for Information Interchange) is the most widely used alphanumeric code. It is a 7-bit code.

Formulas:-
0, 1, 2, 3, —-9. are called digits.
10, 11, 12,—– are called Number.

Natural number (N) :-
Counting numbers are called natural numbers.
Example:- 1, 2, 3,—etc. are all natural numbers. minimum natural number 1 and maximum natural number ∞

Whole numbers (W) :-
All counting numbers together with zero from the set of whole numbers
Example:- 0, 1, 2, 3, 4, —— are whole number.

Integers (Z) :-
All counting numbers, 0 and -ve of counting numbers are called integers.
Example:- -∞———, -3, -2, -1, 0, 1, 2, 3, ——-∞

Rational Numbers (Q) :-
A Rational Number is a real number that can be written as a simple fraction
Example:- {p/q/p,q∈Z}

Irrational NUmbers :-
An Irrational Number is a real number that cannot be written as a simple fraction.
Example:- √

Even numbers :-
A number divisible by 2 is called an even number.
Example:- 0, 2, 4, 6, – – – – – – – – –

Odd numbers :-
A number not divisible by 2 is called an odd number.
Example:- 1, 3, 5, 7, – – – – – –

Composite Numbers :-
Numbers greater than 1 which are not prime, are called composite numbers.
Example:- 4, 6, 8, 9, 10, – – – -. 6 -> 1,2,3,6.

Prime Numbers:-
A number greater than 1 having exactly two factors, namely 1 and itself is called a prime number. Upto 100 prime numbers are:
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 71, 73, 79, 83, 89, 97

Co-prime Numbers:-
Two natural numbers a and b are said to be co-prime if their HCF is 1.
Example:- (21, 44), (4, 9), (2, 3), – – – – –

Twin prime numbers :-
A pair of prime numbers (as 3 and 5 or 11 and 13) differing by two are
called twin prime number.
Example:- The twin pair primes between 1 and 100 are
(3, 5), (5, 7), (11, 13), (17, 19), (29, 31), (41, 43), (59, 61), (71, 73).

Face value:-
Face value is the actual value of the digit.
Example:- In the number 7635, the “7” has a face value of 7, the face value of 3 is 3 and so on

Place value:-
The value of where the digit is in the number, such as units, tens, hundreds, etc.
Example:- In 352, the place value of the 5 is “tens”
Place value of 2 * 1 = 2;
Place value of 5 * 10 = 50;
Place value of 3 * 100 = 300.