Hamming Codes MCQ Quiz in मल्याळम - Objective Question with Answer for Hamming Codes - സൗജന്യ PDF ഡൗൺലോഡ് ചെയ്യുക

Last updated on Mar 17, 2025

നേടുക Hamming Codes ഉത്തരങ്ങളും വിശദമായ പരിഹാരങ്ങളുമുള്ള മൾട്ടിപ്പിൾ ചോയ്സ് ചോദ്യങ്ങൾ (MCQ ക്വിസ്). ഇവ സൗജന്യമായി ഡൗൺലോഡ് ചെയ്യുക Hamming Codes MCQ ക്വിസ് പിഡിഎഫ്, ബാങ്കിംഗ്, എസ്എസ്‌സി, റെയിൽവേ, യുപിഎസ്‌സി, സ്റ്റേറ്റ് പിഎസ്‌സി തുടങ്ങിയ നിങ്ങളുടെ വരാനിരിക്കുന്ന പരീക്ഷകൾക്കായി തയ്യാറെടുക്കുക

Latest Hamming Codes MCQ Objective Questions

Top Hamming Codes MCQ Objective Questions

Hamming Codes Question 1:

To guarantee correction of upto 5 errors in all cases, the minimum Hamming distance in a block code must be ______.

  1. 11
  2. 6
  3. 5
  4. 2
  5. 10

Answer (Detailed Solution Below)

Option 1 : 11

Hamming Codes Question 1 Detailed Solution

Concept:

Hamming distance between two words of the same size is the number of differences between the corresponding bits. It can be calculated by applying the XOR operation.

Formula:

To guarantee the correction of up to s errors in all cases, the hamming distance in a block code must be d ≥ 2s + 1

Let hamming distance be minimum

∴ dmin = 2s + 1

Calculation

number of errors = s = 5.

∴ dmin = 2(5) + 1 = 11

Important Point:

Minimum Hamming distance is the smallest hamming distance between all possible pairs in a set of words. There are three parameters in this: codeword size, data word size, and minimum Hamming distance. When a codeword is corrupted during transmission, the hamming distance between sent and the received codeword is the number of bits affected by the error.

Hamming Codes Question 2:

A seven-bit Hamming code is received as 1111101. What is the correct code?

  1. 1101111
  2. 1011111
  3. 1111111
  4. 1111011

Answer (Detailed Solution Below)

Option 3 : 1111111

Hamming Codes Question 2 Detailed Solution

Hamming code is used to detect errors. Here the codeword belongs to even parity, So when the data word and the parity bits in check word is even then there is no error.

∴ P1 P2 D3 P4 D5 D6 D7

    1   1   1   1   1   1   1

C1 = (1, 3, 5, 7)

     =  1 1 1 1 (Even number of 1's, So no error)

C2 = (2, 3, 6, 7)

    = 1 1 0 1 (Odd number of 1's, So error present)

C2 = (4, 5, 6, 7)

    = 1 1 0 1 (Odd number of 1's, So error present)

∴ Check word C = C4 C2 C1

= 1 1 0 = Decimal 6

Hence error is present at 6th position.

So, New code = 1 1 1 1 1 1 1

Hamming Codes Question 3:

The parity check matrix of a (7, 4) linear block code is given as

\(\left[ H \right]=\left[ \begin{matrix} 1 & 1 & 1 & 0 & 1 & 0 & 0 \\ 1 & 0 & 0 & 1 & 0 & 1 & 0 \\ 1 & 0 & 1 & 1 & 0 & 0 & 1 \\ \end{matrix} \right]\)  the number of errors that can be detected is ____.

Answer (Detailed Solution Below) 2

Hamming Codes Question 3 Detailed Solution

Concept:

General form of parity check matrix is:

[H] = [PT In-k]

Generator matrix

[G] = [Ik P]

The standard steps to be followed are

1) Find generator matrix

2) List all code words

3) Find minimum hamming distance

Then use the relation

dmin ≥ s + 1

s = No of error that can be detected

dmin = Minimum hamming distance for the code

Calculations:

For (7, 4) code data bits = 4

\(\left[ H \right]=\left[ {{P}^{T}}{{I}_{n-k}} \right]\)

\(\left[ {{P}^{T}} \right]=\left[ \begin{matrix} 1 & 1 & 1 & 0 \\ 1 & 1 & 0 & 1 \\ 1 & 0 & 1 & 1 \\ \end{matrix} \right]\)

\(\left[ P \right]=\left[ \begin{matrix} 1 & 1 & 1 \\ 1 & 1 & 0 \\ 1 & 0 & 1 \\ 0 & 1 & 1 \\ \end{matrix} \right]\)

Generator matrix

G = [Ik P]

\(=\left[ \begin{matrix} 1 & 0 & 0 & 0 & 1 & 1 & 1 \\ 0 & 1 & 0 & 0 & 1 & 1 & 0 \\ 0 & 0 & 1 & 0 & 1 & 0 & 1 \\ 0 & 0 & 0 & 1 & 0 & 1 & 1 \\ \end{matrix} \right]\)

Code words \(=\left[ {{b}_{0}},{{b}_{1}},{{b}_{2}},{{b}_{3}} \right]\left[ \begin{matrix} 1 & 0 & 0 & 0 & 1 & 1 & 1 \\ 0 & 1 & 0 & 0 & 1 & 1 & 0 \\ 0 & 0 & 1 & 0 & 1 & 0 & 1 \\ 0 & 0 & 0 & 1 & 0 & 1 & 1 \\ \end{matrix} \right]\)

b0

b1

b2

b3

Code word

Hamming distance

0

0

0

0

00000000

0

0

0

0

1

0001011

3

0

0

1

0

0010101

3

0

0

1

1

0011110

4

0

1

0

0

0100110

3

0

1

0

1

0101101

4

0

1

1

0

0110011

4

0

1

1

1

0111000

3

1

0

0

0

1000111

4

1

0

0

1

1001100

3

1

0

1

0

1010010

3

1

0

1

1

1011001

4

1

1

0

0

1100001

3

1

1

0

1

1101010

4

1

1

1

0

1110100

4

1

1

1

1

1111111

7

 

Minimum harming distance = 3

dmin ≥ t + 1

3 ≥ t + 1

t ≤ 2

Hence, maximum 2 errors can be detected

Hamming Codes Question 4:

Consider a single error correcting  (7, 4) cyclic code with generator matrix g(x) = x3 + x2 + 1. What will be the transmitted data if received vector is 1101101 ?

  1. 1100
  2. 1010
  3. 0001
  4. 1110

Answer (Detailed Solution Below)

Option 1 : 1100

Hamming Codes Question 4 Detailed Solution

generator matrix g(x) = x3 + x2 + 1  = (1101)

message = 1101101

Pad the message single with the number of zeroes equal to highest degree of the generator matrix (3)

New message signal 1101101000

Now,

quesImage611

Hence the CRC code is 0110

Hamming Codes Question 5:

The Hamming distance between two code words 1100101 and 1010011 is_______

Answer (Detailed Solution Below) 4

Hamming Codes Question 5 Detailed Solution

The Hamming distance between two code words is the number of bits locations in which their elements differ.

Communications 1

The distance is 4 bits

Hamming Codes Question 6:

Hamming distance between 001111 and 010011 is _____.

  1. 1
  2. 2
  3. 3
  4. 4

Answer (Detailed Solution Below)

Option 3 : 3

Hamming Codes Question 6 Detailed Solution

Concept:

Hamming distance is for comparing two binary data strings. Hamming distance is the number of bit positions in which the two bits are different.

Explanation:

    001111

⊕ 010011

____________

    0 11100

The number of 1's is equal to Hamming distance and hence it is 3.

Tips and Tricks:

There is a change at 3rd, 4th and 5th bit from LSB and hence Hamming distance is 3.

Note:

⊕ → XOR

Hamming Codes Question 7:

The minimum distance required for a linear block code to achieve a guaranteed correction of up to 5 errors is

  1. 6
  2. 5
  3. 11
  4. 10

Answer (Detailed Solution Below)

Option 3 : 11

Hamming Codes Question 7 Detailed Solution

Concept:

Hamming distance between two words of the same size is the number of differences between the corresponding bits. It can be calculated by applying the XOR operation.

Formula:

To guarantee the correction of up to s errors in all cases, the hamming distance in a block code must be d ≥ 2s + 1

Let hamming distance be minimum

∴ dmin = 2s + 1

Calculation

number of errors = s = 5.

∴ dmin = 2(5) + 1 = 11

Important Point:

Minimum Hamming distance is the smallest hamming distance between all possible pairs in a set of words. There are three parameters in this: codeword size, data word size, and minimum Hamming distance. When a codeword is corrupted during transmission, the hamming distance between sent and the received codeword is the number of bits affected by the error.

Hamming Codes Question 8:

In a Hamming (7, 4) code, how many bits are used for the message and how many are used for error correction? 

  1. 4 bits for message, 3 bits for error correction 
  2. 7 bits for message, 4 bits for error correction
  3. 4 bits for message, 7 bits for error correction 
  4. 3 bits for message, 4 bits for error correction

Answer (Detailed Solution Below)

Option 1 : 4 bits for message, 3 bits for error correction 

Hamming Codes Question 8 Detailed Solution

The correct option is 1

Solution

Let's break down Hamming codes and the (7,4) example:

  • Hamming Codes: These are a type of error-correcting code used in digital communication to detect and correct errors that might occur during transmission. They work by adding extra parity bits to the data.

  • (n, k) Notation: Hamming codes are often represented as (n, k), where:

    • 'n' is the total length of the encoded message (including data bits and parity bits).
    • 'k' is the length of the original message (the data bits).
  • (7, 4) Hamming Code: In your specific case, (7, 4) means:

    • n = 7: Each codeword has 7 bits in total.
    • k = 4: The original message you're encoding is 4 bits long.
  • Parity Bits: The difference between 'n' and 'k' (n - k) gives you the number of parity bits. These parity bits are calculated based on the data bits and are used for error detection and correction. In the (7, 4) code, you have 7 - 4 = 3 parity bits.

Hamming Codes Question 9:

In a Hamming code for transmitting a data of 7 bit, how many parity bits are used ?

  1. one
  2. two
  3. three
  4. four

Answer (Detailed Solution Below)

Option 4 : four

Hamming Codes Question 9 Detailed Solution

For a 7-bit data, we need 4 parity bits.

To determine the number of parity bits required, we use the formula:

2r >= m + r + 1

Where:

  • r = number of parity bits
  • m = number of data bits

In this case, m = 7.

So, we need to find the smallest value of r that satisfies the equation:

2r >= 7 + r + 1

By trying different values for r, we find that r = 4 satisfies the equation.

Therefore, we need 4 parity bits for a 7-bit data in a Hamming code.

Hamming Codes Question 10:

The convolution code is not represented by a -

  1. State Diagram
  2. Trellis Diagram
  3. Tree Diagram
  4. Linear matrix

Answer (Detailed Solution Below)

Option 4 : Linear matrix

Hamming Codes Question 10 Detailed Solution

Solution

Convolution codes

  • Convolution codes are generally error-detecting codes 
  • They are comprised of parity bits with the message bits
  • In convolution coding, k number of message bits are encoded continuously with m number of parity bits to have an overall sequence of n bits
  • Linear matrix is not used to represent convolution code

The convolution code is generally represented by

  • State diagram
  • Logic tables
  • Tree diagram
  • Trellis diagram
  • Generator polynomial 
  • Generator matrix

Hence the correct option is 4

 

Get Free Access Now
Hot Links: teen patti master king teen patti casino download teen patti game paisa wala master teen patti teen patti royal - 3 patti