📝 Application sensitivity to QoS parameters (10 MCQs)
📖 From Data Communication and Networks • 30. Quality of Service • 10 questions available
What is Application sensitivity to QoS parameters?
Application sensitivity describes how differently various network applications react to changes in network conditions, where real-time audio and video are highly sensitive to delay and jitter but tolerant of some loss, while file transfers are sensitive to packet loss but tolerant of variable delays.
📝 All Application sensitivity to QoS parameters MCQs
Q1. Given the Huffman code set {A:00, B:010, C:011, D:10, E:11}, which of the following statements correctly infers the consequence of the prefix property?
📖 Explanation: Because the code is prefix‑free, once the decoder reads a complete codeword it knows that no longer code can begin with those bits. Therefore the decoder can immediately identify each symbol without needing to look ahead or backtrack, which is the defining consequence of the prefix property.
Q2. Compare the average bit length per symbol for the Huffman code above with a fixed‑length code for five symbols. Which statement best evaluates the compression gain?
📖 Explanation: A fixed‑length code for five symbols requires \\\lceil\\log_2 5\\rceil = 3\ bits per symbol. The Huffman code uses lengths 2,3,3,2,2 bits, giving an average of \(2+3+3+2+2)/5 = 2.4\ bits. The difference of 0.6 bits per symbol represents the compression gain, matching option C.
Q3. In Huffman coding, what term describes a code where no codeword is a prefix of any other codeword?
📖 Explanation: An instantaneous code is one in which no codeword is a prefix of any other, allowing immediate symbol identification as each codeword is received. This property is exactly the definition of the prefix‑free condition used in Huffman coding.
Q4. If a message consisting of the sequence A‑B‑C‑D‑E is encoded using the given Huffman code, and the receiver decodes the bitstream 0010011, which inference about the original sequence is correct?
📖 Explanation: Parsing 0010011 using the given code: 00 → A, remaining 10011; 10 → D, remaining 011; 011 → C. The decoder thus recovers the sequence A‑D‑C. No other parsing is possible because the prefix property guarantees unique segmentation, so option B is correct.
Q5. Evaluate the impact on average code length if the probability of symbol A doubles while all other symbols keep the same relative probabilities. Which statement best reflects the change?
📖 Explanation: Doubling the probability of A makes it more likely to be assigned a shorter code, but the Huffman tree must be rebuilt to reflect the new frequencies. The average length can either decrease or increase depending on how the tree restructures, so the safest statement is that the effect is uncertain without recomputing the tree.
Q6. Apply the principle of entropy to estimate the theoretical minimum average bits per symbol for the five‑symbol source with probabilities {0.4,0.2,0.2,0.1,0.1}. Which value is closest to the entropy \H = -\\sum p_i \\log_2 p_i\?
📖 Explanation: The entropy is \H = -\\sum p_i\\log_2 p_i = -(0.4\\log_2 0.4 + 2\\cdot0.2\\log_2 0.2 + 2\\cdot0.1\\log_2 0.1) \\approx 2.12\ bits. Among the options, 2.0 bits is the closest approximation, making option C the best choice.
Q7. Given that no Huffman codeword is a prefix of another, what can be deduced about the decoding process when reading a bitstream sequentially?
📖 Explanation: Because the code is prefix‑free, the decoder can stop as soon as it matches a complete codeword; there is no need for backtracking or extra delimiters. This immediate decision capability is a direct consequence of the prefix property, validating option B.
Q8. Contrast the compression ratio achieved by the Huffman code with that of a naive fixed‑length code for a large text where symbol frequencies follow a Zipf distribution. Which analysis is most accurate?
📖 Explanation: Zipf‑like frequencies give a few very common symbols and many rare ones. Huffman assigns short codes to the frequent symbols and longer codes to the rare ones, often cutting the average bits per symbol roughly in half compared with a uniform 3‑bit fixed length for five symbols. Hence option B accurately reflects the typical improvement.
Q9. Synthesize a method to extend the given Huffman code to support an additional symbol F with probability 0.05, while preserving the prefix property. Which of the following steps correctly describes the process?
📖 Explanation: To add a new symbol F with probability 0.05, the standard procedure is to combine F with the current least probable symbol (the one with the smallest weight) and rebuild the Huffman tree. This maintains the optimal prefix property while incorporating the new symbol, which corresponds to option B.
Q10. If the Huffman coding tree for the five symbols is altered by swapping the positions of symbols D and E in the tree, how does this affect the average code length and why?
📖 Explanation: Swapping two leaf nodes that reside at the same depth does not alter the depth of any symbol; therefore the total weighted path length, i.e., the average code length, stays the same. The probabilities of D and E are unchanged, so option A correctly describes the effect.