Electronics and Communication Engineering (ECE) Exam  >  Electronics and Communication Engineering (ECE) Tests  >  Communication System  >  Test: Hamming codes - Electronics and Communication Engineering (ECE) MCQ

Test: Hamming codes - Electronics and Communication Engineering (ECE) MCQ


Test Description

10 Questions MCQ Test Communication System - Test: Hamming codes

Test: Hamming codes for Electronics and Communication Engineering (ECE) 2024 is part of Communication System preparation. The Test: Hamming codes questions and answers have been prepared according to the Electronics and Communication Engineering (ECE) exam syllabus.The Test: Hamming codes MCQs are made for Electronics and Communication Engineering (ECE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Hamming codes below.
Solutions of Test: Hamming codes questions in English are available as part of our Communication System for Electronics and Communication Engineering (ECE) & Test: Hamming codes solutions in Hindi for Communication System course. Download more important topics, notes, lectures and mock test series for Electronics and Communication Engineering (ECE) Exam by signing up for free. Attempt Test: Hamming codes | 10 questions in 30 minutes | Mock test for Electronics and Communication Engineering (ECE) preparation | Free important questions MCQ to study Communication System for Electronics and Communication Engineering (ECE) Exam | Download free PDF with solutions
Test: Hamming codes - Question 1

The convolution code is not represented by a -

Detailed Solution for Test: Hamming codes - Question 1

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

Test: Hamming codes - Question 2

The representation of 4 bit code 1101 into 7 bit, even parity Hamming code is

Detailed Solution for Test: Hamming codes - Question 2

To represent the 4-bit code 1101 into a 7-bit, even parity Hamming code, we first need to add 3 parity bits to the 4 data bits. The parity bits are chosen so that the total number of 1's in each group of bits (including the parity bit) is even.
Hamming Code:

Given data 1101
i.e. d1 = 1, d2 = 1, d3 = 0, d4 = 1
We can write:
P1 = d1 ⊕ d2 ⊕ d4 = 1 ⊕ 1 ⊕ 1 = 1
P2 = d1 ⊕ d4 ⊕ d3 = 1 ⊕ 1 ⊕ 0 = 0
P3 = d2 ⊕ d4 ⊕ d3 = 1 ⊕ 1 ⊕ 0 = 0
Then transmitted final code is P1 P2 d1 P4 d2 d3 d4 which is 1010101

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Hamming codes - Question 3

What is the hamming distance between the codes '11001011' and ‘10000111'

Detailed Solution for Test: Hamming codes - Question 3

Given code words are: 11001011 and 10000111
Hamming distance can also be calculated by taking XOR of two code words.

The number of 1’s in XOR result is 3
∴ Minimum Hamming distance is 3 only 

Test: Hamming codes - Question 4

Which of the following codes uses a number of parity bits located at certain positions in the codeword and uses the relations between redundancy bits and the data bits?

Detailed Solution for Test: Hamming codes - Question 4

Hamming code:
Hamming codes are linear block codes. The family of (n, k) hamming codes for q ≥ 3 is defined by the following expressions:

1. Number of Block diagrams (n) = 2q – 1
2. Number of message bits (k) = 2q – q – 1
3. Number of Parity bits (q) = (n – k)
Hamming code is a set of error-correction codes that can be used to detect and correct '1' bit errors that can occur when the bitstream is sent through the channel. It can be employed in both burst and signal error correction. 

Test: Hamming codes - Question 5

If one of the code words of a Hamming (7, 4) code is 0001011, which of the following cannot be the valid codeword in the same group?

Detailed Solution for Test: Hamming codes - Question 5

The minimum bits change between any valid Hamming codes is 3.
Analysis:
The change of bits between the given code: 0001011 and option C code: 0011010 is two bits change only.
So 0011010 can’t be a valid Hamming code of the same group.

Test: Hamming codes - Question 6

For a linear block code, it is known that the code can detect 2 error and can correct only 1 error. The minimum hamming distance for the code is ________.

Detailed Solution for Test: Hamming codes - Question 6

Given:
Error detected = 2 = s
Error corrected = 1 = t
From(1),
dmin ≥ 3
From(2),
dmin ≥ 3
We need to find for both correction and detection and hence, 
Using formula (3)
dmin ≥ t + s + 1
dmin ≥ 2 + 1 + 1
dmin = 4

Test: Hamming codes - Question 7

The final code after encoding data bits 1101 into 7-bit even parity Hamming Code is

Detailed Solution for Test: Hamming codes - Question 7

Hamming (7, 4) code: It is a linear error-correcting code that encodes four bits of data into seven bits, by adding three parity bits.
Example: It is used in the Bell-Telephone laboratory, error-prone punch caret reader to detect the error and correct them.
Hamming code:

P1 = d1 ⊕ d2 ⊕ d4
P2 = d1 ⊕ d4 ⊕ d3
P3 = d2 ⊕ d4 ⊕ d3

Given data 1101 i.e.
d1 = 1, d2 = 1, d3 = 0, d4 = 1
We can write:
P1 = d1 ⊕ d2 ⊕ d4 = 1 ⊕ 1 ⊕ 1 = 1
P2 = d1 ⊕ d4 ⊕ d3 = 1 ⊕ 1 ⊕ 0 = 0
P3 = d2 ⊕ d4 ⊕ d3 = 1 ⊕ 1 ⊕ 0 = 0
Then transmitted final code is

i.e. 1010101
Option 3 correct.

Test: Hamming codes - Question 8

A linear Hamming code is used to map 4-bit messages to 7-bit code words. The encoder mapping is linear. If the message 0001 is mapped to the code word 0000111, and the message 0011 is mapped to the code word 1100110, then the message 0010 is mapped to

Detailed Solution for Test: Hamming codes - Question 8
  • A linear code is an error correcting code.
  • Any linear combination of codewords is also a code word.
  • A Hamming code (7, 4) = (n, k) can correct any single bit error. 4-bit data is encoded with 7-bit code-word
  • Hamming distance is the distance between the code-words. 
  • The minimum distance tells us how many errors can be corrected. 


0010 = (0001) ⊕ → EXOR (0011)
To get the code word, Exor the two code words.
(0000111) ⊕ (1100110)
= 1100001

Test: Hamming codes - Question 9

A digital transmission system uses a (7, 4) systematic linear Hamming code for transmitting data over a noisy channel. If three of the message-codeword pairs in this code (mi ; ci), where ci is the codeword corresponding to the ith message mi, are known to be (1 1 0 0 ; 0 1 0 1 1 0 0), (1 1 1 0 ; 0 0 1 1 1 1 0) and (0 1 1 0 ; 1 0 0 0 1 1 0), then which of the following is a valid codeword in this code?

Detailed Solution for Test: Hamming codes - Question 9

Let d = (d1, d2 …. dk)
Codeword C can be written as:


Cd = d1
C2 = d2
C3 = d3

Ck = dk


Note: The parity bits are generated by a linear combination of message bits.
Application:
Given (7, 4) linear Hamming code.
(mi, ci) given are:
(1100 ; 0101100)
(1110 ; 0011110)
(0110 ; 1000110)
Clearly, we can observe that the first 3 bits are parity bits and the last 4 bits are message bits.


Observe when P0, P1, and P2 are one, and write their combination, i.e.
P0 = d0 ⊕ d1 ⊕ d3
P1 = d1 ⊕ d2 ⊕ d3
P2 = d0 ⊕ d1 ⊕ d2
Now checking each of the options:
Option (1): 1011010
Message bits are:


P0 = d0 ⊕ d1 ⊕ d3 = 1
P1 = d1 ⊕ d2 ⊕ d3 = 1
2 = d0 ⊕ d1 ⊕ d2 = 0
So, the codeword is 1101010.
Hence option (1) is invalid codeword.
Option (2): 0110100
Message bits are:


P0 = d0 ⊕ d1 ⊕ d3 = 1
P1 = d1 ⊕ d2 ⊕ d3 = 1
2 = d0 ⊕ d1 ⊕ d2 = 1
So, the valid codeword is 1110100
Hence option (2) is an invalid codeword.
Option (3): 0001011
Message bits are:


P0 = d0 ⊕ d1 ⊕ d3 = 0
P1 = d1 ⊕ d2 ⊕ d3 = 0
P2 = d0 ⊕ d1 ⊕ d2 = 0
So the valid codeword is 0001011
Hence option (3) is a valid codeword.

*Answer can only contain numeric values
Test: Hamming codes - Question 10

Consider a binary channel code in which each code word has a fixed length of 5 bits. The Hamming distance between any pair of distinct code words in this code is at least 2. The maximum number of code words such a code can contain is ________.


Detailed Solution for Test: Hamming codes - Question 10

Concept: Hamming distance gives minimum positions at which the corresponding symbols are different.
Calculation: Fixed length code n = 5
Minimum harming distance d min = 2
Hamming distance gives minimum positions at which the corresponding symbols are different.
The table shows all possible codewords having a minimum hamming distance of 2.

Hence there are 16 such codes where minimum Hamming distance 2 is possible.

14 videos|38 docs|30 tests
Information about Test: Hamming codes Page
In this test you can find the Exam questions for Test: Hamming codes solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Hamming codes, EduRev gives you an ample number of Online tests for practice

Top Courses for Electronics and Communication Engineering (ECE)

14 videos|38 docs|30 tests
Download as PDF

Top Courses for Electronics and Communication Engineering (ECE)