wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Information Theory and Coding Worksheet

Total questions: 57

Worksheet time: 29mins

Name
Class
Date
1.

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

a)

none of the given

b)

with errors; without errors

c)

allowable; not allowable

d)

data; parity

2.

ASCII code is a

a)

Fixed length code

b)

Error-correction code

c)

Variable length code

d)

None of the given

3.

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

a)

H(XY)H(X)H(X\mid Y) - H(X)

b)

P(A)P(B)\dfrac{P(A)}{P(B)}

c)

H(XY)+H(Y)H(X\mid Y)+ H(Y)

d)

H(XY)H(X)+H(Y)H(X\mid Y) - H(X) + H(Y)

4.

By the Bayes' theorem ...

a)

P(AB)=[P(BA)][P(A)]×P(B)P(A\mid B) = [P(B\mid A)][P(A)] \times P(B)

b)

P(BA)=P(AandB)P(A)P(B\mid A) = \dfrac{P(A\, \text{and}\, B)}{P(A)}

c)

P(BA)=P(AandB)×P(A)P(B\mid A) = P(A\, \text{and}\, B) \times P(A)

d)

P(AB)=[P(BA)][P(A)]P(B)P(A\mid B) = \dfrac{[P(B\mid A)][P(A)]}{P(B)}

5.

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

a)

H(X)H(X)

b)

H(YX)H(Y\mid X)

c)

H(Y)H(Y)

d)

H(XY)H(X\mid Y)

6.

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

a)

H=(pilogpi)H = - \sum \left(\dfrac{p_i}{\log p_i}\right)

b)

H=(pilogpi)H = - \sum \left(p_i \log p_i\right)

c)

H=(logpi)H = - \sum \left(\log p_i\right)

d)

H=logmH = \log m

7.

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

a)

H(X)+H(Y)H(X) + H(Y)

b)

H(Y)H(Y)

c)

None of the given

d)

H(X)H(X)

8.

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

a)

H(X,Y)H(X)H(X,Y) \ge H(X) and H(X,Y)H(Y)H(X,Y) \ge H(Y)

b)

H(X,Y)H(X)H(X,Y) \le H(X) and H(X,Y)H(Y)H(X,Y) \ge H(Y)

c)

H(X,Y)H(X)H(X,Y) \ge H(X) and H(X,Y)H(Y)H(X,Y) \le H(Y)

d)

H(X,Y)H(X)+H(Y)H(X,Y) \ge H(X) + H(Y)

9.

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

a)

H=n(pilogpi)H = - n \cdot \sum \left(p_i \log p_i\right)

b)

H=n(logpi)H = - n \cdot \sum \left(\log p_i\right)

c)

H=npiH = - n \cdot \sum p_i

d)

H=n(pilogpi)H = - n \cdot \sum \left(\dfrac{p_i}{\log p_i}\right)

10.

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

a)

H=piH = - \sum p_i

b)

H=(logpi)H = - \sum (\log p_i)

c)

H=(pilogpi)H = - \sum \left(\dfrac{p_i}{\log p_i}\right)

d)

H=(pilogpi)H = - \sum \left(p_i \log p_i\right)

11.

Conditional entropy H(Y|X) lies between

a)

0 and H(Y)

b)

- H(Y) and H(Y)

c)

- H(Y) and 0

d)

0 and 1

12.

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

a)

Redundancy

b)

Decoding

c)

Encoding

d)

Entropy

13.

Hamming distance can easily be found with ...

a)

XOR operation

b)

OR operation

c)

XNOR operation

d)

AND operation

14.

Noise affects ...

a)

Transmitter

b)

Receiver

c)

information source

d)

channel

15.

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

a)

error correction

b)

lossless data compression

c)

lossy data compression

d)

error detection

16.

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

a)

Fano's formula

b)

Hartley's formula

c)

Bayes' formula

d)

Shannon's formula

17.

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

a)

Fano's formula

b)

Shannon's formula

c)

Bayes' formula

d)

Hartley's formula

18.

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

a)

110, 100, 010, 000, 001, 111

b)

11, 10, 01, 001, 0000

c)

0, 10, 110, 1110, 11110, 11111

d)

11, 10, 011, 010, 001, 000

19.

The basic idea behind Shannon-Fano coding is to

a)

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

b)

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

c)

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

d)

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

20.

The Hamming code is a method of ______.

a)

Optimal coding

b)

Error control coding

c)

None of the above

d)

All of the above

21.

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

a)

4

b)

1

c)

3

d)

impossible to detect

22.

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

a)

0

b)

4

c)

2

d)

impossible to detect

23.

What is the first step of Shannon-Fano algorithm?

a)

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

b)

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

24.

What is the sample space of one dice roll?

a)

{1,3,5}

b)

{2,4,6}

c)

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

d)

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

25.

The study of encryption and decryption techniques

a)

Cryptanalysis

b)

Cryptography

c)

Cryptology

d)

Information theory

26.

According to Kerckhoff's Principle, which part of a cryptographic system must remain secret to ensure security?

a)

The key

b)

The coding scheme

c)

The communication protocol

d)

The encryption algorithm

27.

What is another name for Kerckhoff's Principle

a)

The Interaction Routine

b)

Information Asymmetry

c)

Advanced Persistent Threat

d)

Shannon's Maxim

28.

Which of the following is typically known by an attacker under Kerckhoff's Principle?

a)

The plaintext message before encryption

b)

The key length and how the key is used

c)

The specific value of the secret key

d)

The password to Bob's private computer

29.

In contrast to Kerckhoffs' principle, what does the 'Security by Obscurity' approach primarily rely on?

a)

Publicly available descriptions of proprietary protocols.

b)

The strength and length of a secret key.

c)

The attacker's lack of knowledge regarding the algorithm or system execution.

d)

The use of advanced persistent threats to protect the system.

30.

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

a)

Making the ciphertext look like gibberish to the attacker.

b)

Concealing the very presence of a message.

c)

Increasing the mathematical complexity of the encryption.

d)

Sharing the concealment method with the public.

31.

Which of the following is an example of ancient steganography?

a)

Using the Caesar Cipher to shift letters.

b)

Sending a message through an encrypted proprietary protocol.

c)

Hiding messages on a messenger's head beneath regrown hair.

d)

Applying Kerckhoffs' principle to open systems.

32.

In the digital context, how can messages be hidden within image files using steganography?

a)

By using the least significant bits of the image or source files.

b)

By deleting the source files entirely.

c)

By increasing the resolution of the image.

d)

By making the description of the protocol publicly available.

33.

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

a)

Encrypt

b)

Plaintext

c)

Key

d)

Cipher

e)

Ciphertext

34.

In Cryptography terminology, the coded message is known as ...

a)

Ciphertext

b)

Encrypt

c)

Key

d)

Plaintext

35.

If a vertex in a graph has no incident edges and is not connected to anything, what is it formally called?

a)

A zero-vertex

b)

A singular vertex

c)

An isolated vertex

d)

A leaf vertex

36.

What is the degree of every vertex in a standard 'cycle' graph?

a)

1

b)

2

c)

3

d)

4

e)

It depends on the number of vertices in the cycle.

37.

If every single vertex in a graph has a degree of exactly 'k', what is the graph called?

a)

A k-incident graph

b)

A k-regular graph

c)

A k-complement graph

d)

A complete graph

38.

How is the 'Complement' of a graph G (denoted as Ĝ) defined?

a)

It is a graph with the same vertices that contains only the isolated vertices of G.

b)

It is a graph where every vertex has a degree of zero.

c)

It is a graph with different vertices but the same number of edges as G.

d)

It is a graph where an edge exists between two vertices if and only if that edge DOES NOT exist in G.

39.

In the context of directed graphs, what is the primary difference between using curly brackets {u, v} and round brackets (u, v) to denote an edge?

a)

Curly brackets denote that the vertices must be connected to themselves, while round brackets do not.

b)

Round brackets are used for social networks, while curly brackets are used for physical maps.

c)

There is no difference; both notations can be used interchangeably in directed graphs.

d)

Curly brackets denote a set where order doesn't matter, while round brackets indicate a specific direction from u to v.

40.

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

a)

u and v are both considered heads of the edge.

b)

u is the head and v is the tail.

c)

u is the tail and v is the head.

d)

u is the origin and v is the incident.

41.

Refer to the diagram showing an undirected graph with vertices v1 through v8 connected by multiple edges. Is this graph connected?

a)

Yes

b)

No

42.

Refer to the diagram showing an undirected graph with vertices v1 through v8. How many connected components does this graph have?

a)

2

b)

8

c)

4

d)

1

e)

3

43.

Refer to the diagram showing an undirected graph with vertices v1 through v8. Is there a path from v1 to v6?

a)

Yes

b)

No

44.

Refer to the two diagrams, each showing an undirected graph with six labeled vertices v1–v6. Are these graphs complement?

a)

Yes

b)

No

45.

Refer to the weighted graph with vertices v1 through v8 shown. What is the distance (the weight of the shortest path) from v1 to v6?

a)

13

b)

6

c)

11

d)

9

e)

8

46.

Refer to the graph with vertices v1, v2, v3, v4 arranged in a square with edges v2–v3, v2–v1, v1–v4, v3–v4, and a diagonal edge v1–v3. Is it complete graph?

a)

No

b)

Yes

47.

Refer to the graph with vertices v1–v6 where v1–v2–v3–v4–v5–v1 forms a cycle and v6 is a leaf attached to v5. Is this a tree?

a)

No

b)

Yes

48.

Refer to the three-vertex graph with vertices v1, v2, v3 where each pair of vertices is connected by an edge. This graph is –

a)

a tree

b)

complete

c)

bipartite

d)

a cycle

49.

Refer to the star graph with one central vertex connected to six outer vertices and no edges among the outer vertices. This graph is

a)

a tree

b)

complete

c)

bipartite

d)

a cycle

e)

a path

50.

Refer to the labeled graph with vertices A, B, C, D, E, F and edges A–F, A–C, C–B, C–D, and D–E, with no other edges. This graph is

a)

a tree

b)

it’s not a graph

c)

a cycle

d)

a vertix

51.

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

a)

Summarizing course notes

b)

Brainstorming project ideas

c)

Formatting citations

d)

Entering another person’s personal details

52.

What is defined as a group of objects

a)

Union

b)

Complement

c)

Set

d)

Subset

e)

Partition

53.

Set A and Set B are given. The term which includes objects in the set A, objects in the set B and objects in both sets A and B.

a)

Intersection

b)

Union

c)

Negation

d)

Group

54.

A shorthand way of saying A and B.

a)

A/BA/B

b)

ABA\cup B

c)

Ab

d)

ABA\cap B

e)

ABA*B

55.

A shorthand way of saying when set A does not occur

a)

Complement

b)

A-

c)

-A

d)

Union

e)

Intersection

56.

There are three closed doors. A car has been placed behind one of the doors at random; there are goats behind the other two doors (assume that you prefer the car to the goat). You pick a door; say, for the purpose of this example, you pick Door 1. Host, who knows where the car is, then opens up Door 2 to reveal a goat (importantly, Host will always open a door with a goat, and if you pick the door with the car so that the other two doors have goats behind them, he will select one of the goat doors to open with equal probabilities). He then offers you the option to stay with Door 1 or switch to Door 3. Should you switch doors? What does this problem refer to?

a)

Bayes’ theorem

b)

The Birthday Problem

c)

Gambler’s Ruin

d)

Conditional Probability

e)

Monty Hall problem

57.

Measure of information

a)

Byte

b)

Second

c)

Kilobyte

d)

Bit

e)

Meter