wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Инфо Теория 14бет-27 бет

Total questions: 86

Worksheet time: 43mins

Name
Class
Date
1.

Shannon-Fano and Huffman codes are an encoding algorithms used for

a)

lossy data compression

b)

lossless data compression

c)

error correction

d)

error detection

2.

Specify parts of the receiver side

a)

Source encoder, channel encoder, digital modulator

b)

Source decoder, channel decoder, digital demodulator

c)

Source decoder, channel encoder, digital modulator

d)

Source encoder, channel decoder, digital modulator

3.

Specify parts of the transmitter side

a)

Source decoder, channel decoder, digital demodulator

b)

Source encoder, channel encoder, digital modulator

c)

Source decoder, channel encoder, digital modulator

d)

Source encoder, channel decoder, digital modulator

4.

Specify the case when entropy is maximum

a)

p1=0,5 and p2=0,5

b)

p1=1 and p2=0

c)

p1=0 and p2=1

d)

p1=0,9 and p2=0,1

5.

Specify the error position in the string "0000110", 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)

i4

d)

i5

6.

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

a)

i4

b)

i1

c)

i2

d)

r2

7.

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

a)

r2

b)

r1

c)

r3

d)

i3

8.

Specify the error position in the string "0101011", 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)

r2

d)

r1

9.

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

a)

r3

b)

r2

c)

i2

d)

i3

10.

Specify the error position in the string "0101111", 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)

i4

c)

i3

d)

r2

11.

Specify the error position in the string "0110000", 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

12.

Specify the error position in the string "1010011", 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)

r4

13.

Specify the formula to calculate numbers of k and n bits to create the Hamming

a)

n, k) = (2r

- 1, 2r

- 1 - r)

b)

n, k) = (2r, 2r - 1 - r)

c)

n, k) = (2r - 1, 2r - r)

d)

n, k) = (2r - 1, 2r - 1 + r)

14.

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

15.

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

16.

Specify the most effective type of code when an alphabet consists of 2 symbols with probabilities p(x1) = 0,05 and p(x2) = 0,95.

a)

ASCII code

b)

Shannon-Fano's code

c)

Shannon-Fano's code by blocks

d)

Hartley's code

17.

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

a)

dmin>= s+r+1

b)

dmin>= ssff

c)

dmin>= s+15

d)

dmin>= s+r+Ul

18.

Specify two types of error control algorithms

a)

block and linear

b)

linear and nonlinear

c)

block and convolution

d)

none of the given

19.

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

20.

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

21.

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)

30

22.

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

23.

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

24.

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)

31

b)

16

c)

8

d)

64

25.

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

a)

0

b)

1

c)

6

d)

impossible to detect

26.

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

a)

4

b)

3

c)

1

d)

impossible to detect

27.

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

a)

0

b)

4

c)

2

d)

impossible to detect

28.

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

a)

4

b)

3

c)

impossible to detect

d)

2

29.

The Hamming distance between 001111 and 010011 is

a)

1

b)

2

c)

3

d)

4

30.

The Hamming distance between 010111 and 010011 is

a)

2

b)

3

c)

1

d)

4

31.

The Hamming distance between 011111 and 010011 is

a)

1

b)

3

c)

2

d)

4

32.

The Hamming distance between 101001 and 010011 is

a)

1

b)

2

c)

4

d)

3

33.

The Hamming distance between two strings with equal length is ...

a)

the number of positions at which the corresponding symbols are different

b)

the number of identical symbols in the first string

c)

the number of positions at which the corresponding symbols are equal

d)

the number of identical symbols in the second string

34.

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)

79

c)

16

d)

8

35.

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

36.

The number of digits by which any two binary sequences differ is called the ...

a)

Hamming weight

b)

Hamming distance

c)

Hamming code

d)

Hamming length

37.

The prefix code is also known as ...

a)

block code

uniquely dec

b)

uniquely decodable code

c)

convolutional code

d)

parity bit

38.

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)

2

39.

The string was encoded with Hamming (15,11) code using the transformation matrix. Specify numbers of positions of the parity bits.

a)

12,13,14,15

b)

1,2,3,4

c)

1,2,4,8

d)

2,3,4,5

40.

The string was encoded with Hamming (31,26) code using the transformation matrix. Specify numbers of positions of the parity bits.

a)

27,28,29,30,31

b)

1,2,3,4,5

c)

1,2,4,8,16

d)

2,3,4,5,6

41.

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)

r2

42.

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

43.

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

44.

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)

I2

b)

i4

c)

R3

d)

R2

45.

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)

r3

46.

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

47.

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)

i3

b)

i4

c)

i2

d)

r2

48.

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)

i4

49.

The string was encoded with Hamming (7,4) code using the transformation matrix. Specify numbers of positions of the parity bits.

a)

5,6,7

b)

1,2,3

c)

1,2,4

d)

2,3,4

50.

What is the probability of getting a sum 9 from two throws of dice.

a)

1/3

b)

1/9

c)

1/12

d)

2/9

51.

When data is compressed, the goal is to reduce

a)

noise

b)

redundancy

c)

channel capacity

d)

none of the given

52.

When data is compressed, the goal is to reduce

a)

noise

b)

channel capacity

c)

redundancy

d)

none of the given

53.

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

a)

bytes

b)

dits

c)

nits

d)

bits

54.

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

a)

bytes

b)

bits

c)

nits

d)

dits

55.

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

a)

bytes

b)

nits

c)

dits

d)

bits

56.

Which block or device does the data compression?

a)

Channel encoder

b)

Source encoder

c)

Modulator

d)

None of the given

57.

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

a)

c

b)

r

c)

a

d)

d

58.

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

59.

Which of the following codes has the highest code rate? code rate is constant for all of the Hamming codes

a)

Hamming (31,26)

b)

Hamming (15,11)

c)

Hamming (7,4)

60.

Which of the following codes has the highest redundancy? redundancy is constant for all of the Hamming codes

a)

Hamming (7,4)

b)

Hamming (15,11)

c)

Hamming (31,26)

61.

Which of the following codes is non-uniform?

a)

Shannon-Fano

b)

ASCII

c)

Hamming

d)

None of the given

62.

Which of the following codes is prefix?

a)

0, 111, 10

b)

0,101,11

c)

11,000,10

d)

0,011,11

63.

Which of the following codes is prefix?

a)

0, 01, 11

b)

0, 10, 11

c)

0, 10, 1

d)

0, 01, 001

64.

Which of the following codes is uniform?

a)

ASCII

b)

Shannon-Fano

c)

Huffman

d)

None of the given

65.

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

66.

Which of the following indicate(s) an error in a received combination?

a)

Parity bits

b)

Error syndrome

c)

Data bits

d)

None of the given

67.

Which of the following is a part the channel coding?

a)

Huffman code

b)

Hamming code

c)

Shannon-Fano code

d)

RLE code

68.

Which of the following is a part the source coding?

a)

Hamming code

b)

Huffman code

c)

Error-correcting code

d)

Convolutional code

69.

Which of the following is not a correct statement about a probability.

a)

It must have a value between 0 and 1

b)

It is the collection of several experiments

c)

A value near 0 means that the event is not likely to occur/happens

d)

It can be reported as a decimal or a fraction

70.

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)

b

d)

d

71.

______ indicate(s) an error in a received combination.

a)

Parity bits

b)

Error syndrome

c)

Data bits

d)

None of the given

72.

... is a measure of uncertainty

a)

Encoding

b)

Entropy

c)

Information

d)

Redundancy

73.

A code has two allowable combinations 101 and 010. Not for the error combination 001?

a)

101

b)

110

c)

No error

d)

011

74.

A code has two allowable combinations 101 and 010. What is the allowable combination for the error combination 100?

a)

101

b)

010

c)

100

d)

None

75.

A code has two allowable combinations 101 and 010. What is the allowable combination for the error combination 000?

a)

010

b)

101

c)

000

d)

None

76.

A code has two allowable combinations 101 and 010. What is the allowable combination for the error combination 111?

a)

101

b)

010

c)

100

d)

None

77.

A code has two allowable combinations 101 and 010. What is the allowable combination for the error combination 011?

a)

010

b)

100

c)

111

d)

none

78.

A code has two allowable combinations 101 and 010. What is the allowable combination for the error

combination 110?

a)

010

b)

101

c)

111

d)

None

79.

A codeword of the Hamming code consists of ________ and ________ bits.

a)

data; parity

b)

with errors; without errors

c)

allowable; not allowable

d)

none of the given

80.

A Huffman code is a = 1, b = 000, c = 001, d = 01. Probabilities are p(a) = 0.4, p(b) = 0.1, p(c) = 0.2, p(d) = 0.3. The average length of codewords q is

a)

2.1 bit

b)

1.9 bit

c)

2.0 bit

d)

8.0 bit

81.

A redundancy of a code S = ...

a)

1 - Iavr/Imax

b)

Iavr/Imax

c)

1 + Iavr/Imax

d)

Imax/Iavr

82.

An average length of codewords qavr = ...

a)

∑ (pi*qi)

b)

∑ (pi/qi)

c)

∑pi / n

83.

An efficiency of a code E = ...

a)

Iavr/Imax

b)

Imax/Iavr

c)

Iavr/100

d)

Imax - Iavrprefix

84.

ASCII code is a

a)

Variable length code

b)

Fixed length code

c)

Error-correction code

d)

None of the given

85.

By the Bayes' rule for conditional entropy H(Y|X) = ...

a)

H(X|Y) - H(X) + H(Y)

b)

P(A)] /P(B)

c)

H(X|Y) - H(X)

d)

H(X|Y)+ H(Y)

86.

By the Bayes' theorem ...

a)

P(B|A) = P(A and B)/P(A)

b)

P(A|B) = [P(B|A)][P(A)] /P(B)

c)

P(B|A) = P(A and B)*P(A)

d)

P(A|B) = [P(B|A)][P(A)] * P(B)