wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Вопросы по теории кодирования

Total questions: 58

Worksheet time: 32mins

Name
Class
Date
1.

... является мерой неопределенности

a)

Кодирование

b)

Энтропия

c)

Информация

d)

Избыточность

2.

Избыточность кода S = ...

a)

1 - lavr/Imax

b)

lavr/Imax

c)

1 + lavr/Imax

d)

Imax/lavr

3.

Средняя длина кодовых слов qavr = ...

a)

∑ (pi*qi)

b)

∑ (pi/qi)

c)

∑pi / n

d)

∑qi / n

4.

6. Эффективность кода E = ...

a)

lavr/Imax

b)

Imax/lavr

c)

lavr*Imax

d)

Imax-lavr

5.

ASCII code is a

a)

Variable length code

b)

Fixed length code

c)

Error-correction code

d)

None of the given

6.

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)

7.

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)

8.

By the Chain rule H(X,Y) = H(Y|X) + ...

a)

H(X)

b)

H(Y)

c)

H(Y|X)

d)

H(X|Y)

9.

By the Hartley's formula the amount of information I = ...

(a)  

10.

By the Hartley's formula the entropy H = ...

a)

H = - Σ(pi*log pi)

b)

H = - Σ (log pi)

c)

H = log m

d)

H = - Σ (pi/log pi)

11.

By the property of joint entropy H(X,Y) <= ...

a)

H(X)

b)

H(Y)

c)

H(X) + H(Y)

d)

None of the given

12.

By the property of joint entropy H(X,Y) ...

a)

H(X,Y) >= H(X) and H(X,Y) <= H(Y)

b)

H(X,Y) <= H(X) and H(X,Y) >= H(Y)

c)

H(X,Y) >= H(X) and H(X,Y) >= H(Y)

d)

H(X,Y) >= H(X) + H(Y)

13.

By the Shannon's formula the amount of information I = ...

a)

H = - n * Σ(pi*log pi)

b)

H = - n * Σ (log pi)

c)

H = - n * Σ pi

d)

H = - n * Σ (pi/log pi)

14.

By the Shannon's formula the entropy H = ...

a)

H = - Σ(pi*log pi)

b)

H = - Σ (log pi)

15.

Choose an example of block code

a)

Shannon-Fano code

b)

Huffman code

c)

Hamming code

d)

None of the given

16.

Choose conditions of an optimal coding (p – probability, l – length of a code word)

a)

pi < pj and li<=lj

b)

pi > pj and li<=lj

c)

pi > pj and li>=lj

d)

none of the given

17.

Choose the formula to create the Hamming code

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)

18.

Choose the formula to determine the number N of possible messages with length n if the message source alphabet consists of m characters, each of which can be an element of the message.

a)

N = mn

b)

N = mn

c)

N = m*n

d)

N = log m

19.

Code rate R (k information bits and n total bits) is defined as

a)

k = n/R

b)

R = k * n

c)

R = k/n

d)

R = n/k

20.

Conditional entropy H(Y|X) lies between

a)

- H(Y) and 0

b)

0 and H(Y)

c)

- H(Y) and H(Y)

d)

0 and 1

21.

Convert the message into a signal suitable for transmission over the channel of communication, referred to as ...

a)

Encoding

b)

Decoding

c)

Entropy

d)

Redundancy

22.

For Hamming distance dmin and r errors in the received word, the condition to be able to detect the errors is

a)

dmin>= r+1

b)

dmin>= 2r+1

c)

dmin>= 2r+2

d)

dmin>= r+2

23.

For Hamming distance dmin and s errors in the received word, the condition to be able to correct the errors is

a)

dmin>= s+1

b)

dmin>= 2s+1

c)

dmin>= 2s+2

d)

dmin>= s+2

24.

Hamming distance can easily be found with ...

a)

XNOR operation

b)

XOR operation

c)

OR operation

25.

Как шум влияет на данные?

a)

изменяет только 0 на 1

b)

изменяет только 1 на 0

c)

изменяет 0 на 1 и 1 на 0

d)

ни одно из вышеуказанных

26.

Какая буква получит самый короткий код после кодирования Хаффмана слова «bbaacccabaac»?

a)

a

b)

b

c)

c

d)

ни одна

27.

Если k — количество бит до кодирования Хэмминга, а n — количество бит после кодирования Хэмминга, то

a)

k > n

b)

k < n

c)

k = n

d)

k = 1/2 n

28.

В цифровой системе связи, чем меньше скорость кода, тем ... избыточных бит.

a)

меньше

b)

равно

c)

больше

d)

непредсказуемо

29.

Основная идея кодов управления ошибками:

a)

добавить некоторую избыточность

b)

удалить некоторую избыточность

c)

удвоить все биты

30.

Noise affects ...

a)

information source

b)

receiver

c)

channel

d)

transmitter

31.

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

32.

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

33.

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

34.

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

35.

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

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.

What is the first step of Shannon-Fano algorithm?

4 lines
38.

Каково расстояние Хэмминга между двумя строками одинаковой длины?

a)

количество позиций, в которых соответствующие символы различаются

b)

количество позиций, в которых соответствующие символы совпадают

c)

количество одинаковых символов в первой строке

d)

количество одинаковых символов во второй строке

39.

Каково значение числа "2" в формуле I = n*log2m?

a)

Двоичная система счисления

b)

Длина сообщения равна 2

c)

Не имеет значения

d)

Информация измеряется в нитах

40.

Когда основание логарифма равно 10, то единицей измерения информации является

a)

байты

b)

диты

c)

ниты

d)

биты

41.

Когда основание логарифма равно 2, то единицей измерения информации является

a)

байты

b)

биты

c)

ниты

d)

диты

42.

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

a)

bytes

b)

nits

c)

dits

d)

bits

43.

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

a)

c

b)

r

c)

d

d)

a

44.

Which of the following codes is uniform?

a)

ASCII

b)

Shannon-Fano

c)

Huffman

d)

None of the given

45.

According to Kerckhoffs’ Principle, which part of a cryptographic system must remain secret to ensure security?

a)

The communication protocol

b)

The encryption algorithm

c)

The key

d)

The coding scheme

46.

In cryptography terminology, the original text is known as ...

a)

Key

b)

Encrypt

c)

Plaintext

d)

Cipher

e)

Ciphertext

47.

The basic idea behind Shannon–Fano coding is to

a)

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

b)

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

c)

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

d)

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

48.

What is the primary focus of steganography compared to general security by obscurity?

a)

Making the ciphertext look like gibberish to the attacker

b)

Sharing the concealment method with the public

c)

Concealing the very presence of a message

d)

Increasing the mathematical complexity of the encryption

49.

What is another name for Kerckhoffs’s Principle?

a)

Advanced Persistent Threat

b)

Information Asymmetry

c)

Shannon’s Maxim

d)

The Interaction Routine

50.

According to Kerckhoffs’ Principle, which part of a cryptographic system must remain secret to ensure security?

a)

The coding scheme

b)

The encryption algorithm

c)

The key

d)

The communication protocol

51.

A shorthand way of saying when set A does not occur

a)

A—

b)

Complement

c)

Intersection

d)

Union

e)

−A

52.

Which of the following is typically known by an attacker under Kerckhoffs’ Principle?

a)

The key length and how the key is used

b)

The plaintext message before encryption

c)

The password to Bob’s private computer

d)

The specific value of the secret key

53.

Which of the following is NOT allowed when using AI tools, regardless of the use level?

a)

Using AI to summarize a long research paper to better understand the core arguments

b)

Using AI to brainstorm initial topics or create a rough outline for a project

c)

Employing AI to check for grammatical errors or to improve the clarity of your original writing

d)

Entering another person’s personal details

54.

An alphabet consist of the letters a, b, c, d, e and f. The probability of occurrence is p(a) = 0.06, p(b) = 0.15, p(c) = 0.4 and p(d) = 0.18, p(e)=0.17, p(f)=0.04. The Huffman code is

a)

c=1,d=000,e=001,b=010,a=0110,f=0111

b)

c=0,d=111,e=110,b=101,a=1001,f=1000

c)

c=1,d=01,e=001,b=0000,a=00010,f=00011

d)

c=1,d=01,e=001,b=000,a=0010,f=00011

e)

c=0,d=101,e=110,b=101,a=1000,f=1001

55.

If a directed edge is drawn from vertex u to vertex v, how are the roles of u and v formally described?

a)

u is the tail and v is the head

b)

u is the origin and v is the incident

c)

u and v are both considered heads of the edge

d)

u is the head and v is the tail

56.

The Hamming distance between “make” and “made” is

(a)  

57.

В контексте ориентированных графов, каково основное различие между использованием фигурных скобок {u, v} и круглых скобок (u, v) для обозначения ребра?

a)

Разницы нет; обе нотации могут использоваться взаимозаменяемо в ориентированных графах.

b)

Фигурные скобки обозначают множество, в котором порядок не важен, в то время как круглые скобки указывают на конкретное направление от u к v.

c)

Круглые скобки используются для социальных сетей, а фигурные скобки — для физических карт.

d)

Фигурные скобки обозначают, что вершины должны быть соединены сами с собой, а круглые скобки — нет.

58.

Пусть буквы a, b, c, d, e, f имеют вероятности 1/2, 1/4, 1/8, 1/16, 1/32, 1/32 соответственно. Какой из следующих вариантов является кодом Хаффмана для букв a, b, c, d, e, f?

a)

a: 1, b: 01, c: 001, d: 0001, e: 00001, f: 00000

b)

a: 0, b: 10, c: 110, d: 1110, e: 11110, f: 11111

c)

a: 00, b: 01, c: 10, d: 110, e: 1110, f: 1111

d)

a: 1, b: 00, c: 010, d: 0110, e: 01110, f: 01111