Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Hamming Code and Information Theory Quiz

Total questions: 53

Worksheet time: 27mins

Name
Class
Date
1.

Specify the error position in the string "1001110", if the initial string was encoded with Hamming (7,4) code using the following structure (i1, i2, i3, i4, r1, r2, r3)

a)

r1

b)

no error

c)

r2

d)

i4

2.

Specify the error position in the string "1001111", if the initial string was encoded with Hamming (7,4) code using the following structure (i1, i2, i3, i4, r1, r2, r3)

a)

r1

b)

r3

c)

r2

d)

i4

3.

Specify the error position in the string "1011110", if the initial string was encoded with Hamming (7,4) code using the following structure (i1, i2, i3, i4, r1, r2, r3)

a)

i1

b)

i3

c)

i2

d)

i4

4.

Specify the error position in the string "1101110", if the initial string was encoded with Hamming (7,4) code using the following structure (i1, i2, i3, i4, r1, r2, r3)

a)

i1

b)

i2

c)

i3

d)

i4

5.

Specify the formula to find the amount of information if events have different probabilities.

a)

Hartley's formula

b)

Shannon's formula

c)

Fano's formula

d)

Bayes' formula

6.

Specify the formula to find the amount of information if events have the same probabilities.

a)

Shannon's formula

b)

Hartley's formula

c)

Fano's formula

d)

Bayes' formula

7.

Specify the right formula if dmin is Hamming distance, s - number of correctable errors and r - number of detecteable errors.

a)

dmin>= s+r+1

b)

dmin>= 2s+r+1

c)

dmin>= s+2r+1

d)

dmin>= s+r+2

8.

Suppose the letters a, b, c, d, e, f have probabilities 1/2, 1/4, 1/8, 1/16, 1/32, 1/32 respectively. Which of the following is the Huffman code for the letter a, b, c, d, e, f?

a)

11, 10, 011, 010, 001, 000

b)

0, 10, 110, 1110, 11110, 11111

c)

11, 10, 01, 001, 0001, 0000

d)

110, 100, 010, 000, 001, 111

9.

Suppose the letters a, b, c, d, e, f have probabilities 1/2, 1/4, 1/8, 1/16, 1/32, 1/32 respectively. What is the average length q of the Huffman code?

a)

3,0

b)

1,9

c)

2,7

d)

4,3

10.

The amount of information in the message is 120 bits. Calculate the length of this message, which is written by characters of 16-character alphabet.

a)

30

b)

480

c)

120

d)

130

11.

The amount of information in the message is 60 bits. Calculate the length of this message, which is written by characters of 4-character alphabet.

a)

30

b)

60

c)

15

d)

510

12.

The basic idea behind Shannon-Fano coding is to

a)

compress data by using more bits to encode more frequently occuring characters

b)

compress data by using fewer bits to encode more frequently occuring characters

c)

compress data by using fewer bits to encode fewer frequently occuring characters

d)

expand data by using fewer bits to encode more frequently occuring characters

13.

The efficiency of the language is 0,25 and its I average is 1 bit. Calculate the number of letters in this language's alphabet?

a)

32

b)

16

c)

8

d)

64

14.

The first code combination is 0000 and the Hamming distance of this code equals 4. Choose the second combination.

a)

1111

b)

1011

c)

0011

d)

0000

15.

The Hamming code is a method of _______.

a)

Error control coding

b)

Optimal coding

c)

None of the above

16.

The Hamming distance between "client" and "server" is

a)

0

b)

1

c)

6

d)

impossible to detect

17.

The Hamming distance between "make" and "made" is

a)

4

b)

3

c)

1

d)

impossible to detect

18.

The Hamming distance between "push" and "pull" is

a)

0

b)

4

c)

2

d)

impossible to detect

19.

The Hamming distance between "starting" and "finishing" is

a)

4

b)

3

c)

impossible to detect

d)

5

20.

The Hamming distance between 001111 and 010011 is

a)

1

b)

2

c)

3

d)

4

21.

The Hamming distance between 010111 and 010011 is

a)

2

b)

3

c)

1

d)

4

22.

The Hamming distance between 011111 and 010011 is

a)

1

b)

3

c)

2

d)

4

23.

The Hamming distance between 101001 and 010011 is

a)

1

b)

2

c)

4

d)

3

24.

The length of the message is 16 symbols and the message's alphabet consists of 32 symbols. Find the amount of information in this message.

a)

80

b)

16

c)

64

d)

32

25.

The length of the message is 6 symbols and the message's alphabet consists of 32 symbols. Find the amount of information in this message.

a)

30

b)

6

c)

32

d)

24

26.

The redundancy of the language is 0,75 and its I average is 1 bit. Calculate the number of letters in this language's alphabet?

a)

32

b)

16

c)

8

d)

64

27.

The string was encoded with Hamming (7,4) code using the structure (i1, i2, i3, i4, r1, r2, r3). After a channel the error syndrome is 000. Specify the position of the error.

a)

i1

b)

r1

c)

no error

d)

r3

28.

The string was encoded with Hamming (7,4) code using the structure (i1, i2, i3, i4, r1, r2, r3). After a channel the error syndrome is 001. Specify the position of the error.

a)

i1

b)

r1

c)

r3

d)

no error

29.

The string was encoded with Hamming (7,4) code using the structure (i1, i2, i3, i4, r1, r2, r3). After a channel the error syndrome is 001. Specify the position of the error.

a)

i1

b)

r1

c)

r3

d)

no error

30.

The string was encoded with Hamming (7,4) code using the structure (i1, i2, i3, i4, r1, r2, r3). After a channel the error syndrome is 010. Specify the position of the error.

a)

r3

b)

r1

c)

r2

d)

i2

31.

The string was encoded with Hamming (7,4) code using the structure (i1, i2, i3, i4, r1, r2, r3). After a channel the error syndrome is 011. Specify the position of the error.

a)

r4

b)

i1

c)

i4

d)

r1

32.

The string was encoded with Hamming (7,4) code using the structure (i1, i2, i3, i4, r1, r2, r3). After a channel the error syndrome is 100. Specify the position of the error.

a)

r3

b)

i1

c)

r1

d)

r2

33.

The string was encoded with Hamming (7,4) code using the structure (i1, i2, i3, i4, r1, r2, r3). After a channel the error syndrome is 101. Specify the position of the error.

a)

no error

b)

r1

c)

i1

d)

i2

34.

The string was encoded with Hamming (7,4) code using the structure (i1, i2, i3, i4, r1, r2, r3). After a channel the error syndrome is 110. Specify the position of the error.

a)

i4

b)

r3

c)

i3

d)

i1

35.

The string was encoded with Hamming (7,4) code using the structure (i1, i2, i3, i4, r1, r2, r3). After a channel the error syndrome is 111. Specify the position of the error.

a)

i4

b)

r2

c)

i2

d)

no error

36.

This is the method for data processing for reducing errors during transmission via channel with noise.

a)

Error Correction code

b)

Uniform code

c)

Non-uniform code

d)

Optimal code

37.

We can divide coding schemes into two broad categories: ________ and ______coding.

a)

block; linear

b)

linear; nonlinear

c)

block; convolution

d)

none of the given

38.

What is the first step of Shannon-Fano algorithm?

a)

Characters of the original alphabet are setted in descending order of probability.

b)

Letters divided to the two subsets so that the overall probability of these subsets were about equal.

c)

For all characters (letters) of the top subset assign a code element 1, and for characters of the lower subset the 0 code.

d)

For all characters (letters) of the top subset assign a code element 0, and for characters of the lower subset the 1 code.

39.

What is the Hamming distance between two strings of equal length?

a)

the number of positions at which the corresponding symbols are different

b)

the number of positions at which the corresponding symbols are equal

c)

the number of identical symbols in the first string

d)

the number of identical symbols in the second string

40.

What is the meaning of number “2” in the formula I = n*log2m?

a)

Binary number system

b)

Message length equals to 2

c)

It hasn’t any meaning

d)

Information is measured in nits

41.

What is the sample space of one dice roll?

a)

{1,2,3,4,5,6}

b)

{1,3,5}

c)

{2,4,6}

d)

{1,2,3,4,5,6,7,8,9,10,11,12}

42.

When the base of the logarithm is 10, then the unit of measure of information is

a)

bytes

b)

dits

c)

nits

d)

bits

43.

When the base of the logarithm is 2, then the unit of measure of information is

a)

bytes

b)

bits

c)

nits

d)

dits

44.

When the base of the logarithm is e, then the unit of measure of information is

a)

bytes

b)

nits

c)

dits

d)

bits

45.

Which letter will get the shortest codeword after Huffman coding of the word "abracadabra"?

a)

c

b)

r

c)

d

d)

a

46.

Which of the following codes can be the Huffman code for the letters a,b,c,d,e?

a)

10,011,11,001,010

b)

0,10,110,1110,1111

c)

10,01,0001,100,1010

d)

100,110,001,000,010

47.

Which of the following codes has the highest code rate?

a)

code rate is constant for all of the Hamming codes

b)

Hamming (31,26)

c)

Hamming (15,11)

d)

Hamming (7,4)

48.

Which of the following codes has the highest redundancy?

a)

redundancy is constant for all of the Hamming codes

b)

Hamming (7,4)

c)

Hamming (15,11)

d)

Hamming (31,26)

49.

Which of the following codes is prefix?

a)

0, 111, 11

b)

0, 111, 10

c)

0, 101, 10

d)

00, 10, 101

50.

Which of the following codes is prefix?

a)

0, 01, 11

b)

0, 10, 11

c)

0, 10, 1

d)

0, 01, 001

51.

Which of the following codes is uniform?

a)

ASCII

b)

Shannon-Fano

c)

Huffman

d)

None of the given

52.

Which of the following codes is uniform?

a)

10,011,11,001,010

b)

0,10,110,1110,1111

c)

10,01,0001,100,1010

d)

100,110,001,000,010

53.

Which of the following symbols will get the shortest codeword after Shannon-Fano coding if probabilities are p(a) = 0.05, p(b) = 0.6, p(c) = 0.2 and p(d) = 0.15?

a)

c

b)

a

c)

d

d)

b