🎓 BookMCQ
← Back to 31. Cryptography and Network Security

📝 Asymmetric key encryption RSA (47 MCQs)

📖 From Data Communication and Networks • 31. Cryptography and Network Security • 47 questions available

What is Asymmetric key encryption RSA?

Asymmetric key encryption uses a pair of mathematically linked keys—a public key for encryption and a private key for decryption—with RSA being a foundational algorithm that enables secure key exchange and digital signatures without sharing secret keys over insecure channels.

16
Easy
18
Medium
13
Hard

📝 All Asymmetric key encryption RSA MCQs

Q1. What is the initial size of the dictionary for an alphabet consisting of 256 symbols?

A.256 ✅
B.128
C.512
D.1024
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The dictionary is initialized with one entry for each possible character in the message, so for an alphabet of 256 symbols the initial size is 256 entries. This follows directly from the LZW initialization rule, making the answer 256.

Q2. During LZW encoding, which operation occurs when the concatenation of the current string S and the next character is not found in the dictionary?

A.Add S+char to the dictionary, output code for S, and reset S to char
B.Replace the last entry in the dictionary with S+char ✅
C.Output the code for S+char directly
D.Ignore the new character and continue scanning
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: When S+char is absent, the algorithm adds the new sequence to the dictionary, emits the code for the longest known sequence S, and restarts S with the new character. This three‑step process is essential to LZW encoding.

Q3. In the LZW example with alphabet {A,B}, what is the first code emitted for the message \BAAB...\?

A.100
B.101
C.110 ✅
D.111
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The first unmatched concatenation occurs after reading \B\ followed by \A\ (forming \BA\), which is not yet in the dictionary. The algorithm outputs the code for the longest known sequence \B\, whose code in the example is 110.

Q4. If the dictionary reaches its maximum size of 4096 entries, what is the typical action taken by most LZW implementations?

A.Reset the dictionary to initial state ✅
B.Stop encoding further characters
C.Continue without adding new entries
D.Increase the code length dynamically
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Most implementations reset the dictionary when the maximum size (often 2^12 = 4096) is reached, allowing the algorithm to reuse code space and avoid overflow. This reset preserves synchronization between encoder and decoder.

Q5. Which of the following best describes why LZW does not need to transmit the dictionary to the receiver?

A.Both sides build the same dictionary dynamically
B.The dictionary is fixed and known beforehand
C.The dictionary is embedded in the header of the file
D.A separate control channel sends the dictionary updates ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Although the dictionary is built dynamically, the encoder and decoder follow identical deterministic rules; therefore they stay synchronized without explicit transmission. The receiver reconstructs entries exactly as the encoder does.

Q6. If a message contains a long repetitive pattern, how does LZW’s dictionary growth affect compression ratio compared to a static Huffman code?

A.LZW will likely achieve better compression because the dictionary captures long repeated substrings ✅
B.LZW will perform worse because dictionary entries consume extra bits
C.Both achieve the same ratio because they encode symbols similarly
D.Static Huffman always outperforms LZW on repetitive data
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: LZW dynamically adds longer repeated substrings as single codes, reducing the number of symbols needed for long patterns, whereas static Huffman can only assign shorter codes to individual symbols, making LZW more efficient for such data.

Q7. Suppose during encoding the concatenation S+char is always found in the dictionary. What can be inferred about the message structure?

A.The message consists of a single repeated character
B.The message contains only previously unseen substrings
C.The dictionary will never grow beyond its initial size ✅
D.The encoder will output only the initial character codes
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: If S+char is always present, the encoder never adds new entries, implying that every possible substring already exists in the dictionary. This can only happen if the message uses only patterns already represented, preventing dictionary expansion.

Q8. In LZW decoding, why is it necessary for the decoder to add the same new entry to its dictionary at the same point as the encoder?

A.To maintain synchronization of code meanings ✅
B.To reduce the size of the transmitted data
C.To allow error detection
D.To enable parallel processing
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The decoder must mirror the encoder’s dictionary updates exactly; otherwise, subsequent codes would reference different entries, causing a cascade of errors. Synchronized dictionary growth ensures both sides interpret each code identically.

Q9. If the code length is increased from 9 bits to 10 bits after the dictionary reaches 512 entries, what is the immediate effect on the compression ratio for the next 100 symbols?

A.It marginally decreases compression because of larger codes ✅
B.It improves compression because more symbols can be represented
C.It has no effect until the dictionary grows further
D.It causes the decoder to misinterpret earlier codes
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Increasing code length adds one extra bit to each emitted code, which slightly reduces the compression ratio until the longer codes are justified by a larger dictionary. The immediate effect is a modest increase in transmitted size per symbol.

Q10. When the encoder encounters a character that forms a new two‑character sequence not yet in the dictionary, what must happen before the next character is processed?

A.Emit the code for the first character and add the new two‑character sequence ✅
B.Skip emitting any code until the sequence appears again
C.Emit the code for the new sequence directly
D.Replace the first character with a placeholder
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The algorithm outputs the code for the longest known sequence (the first character), adds the new two‑character sequence to the dictionary, and then starts a new string with the second character.

Q11. If an LZW‑encoded stream is corrupted such that a single code is altered, what is the most likely outcome during decoding?

A.Only the corresponding substring is wrong, then decoding resynchronizes ✅
B.The entire remainder of the message becomes unreadable
C.The decoder will detect and correct the error automatically
D.The error propagates but stops after two codes
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: A single erroneous code will produce an incorrect substring, but because dictionary updates continue deterministically, the decoder can re‑synchronize after that point, limiting the impact to a localized region.

Q12. Compare LZW with Run‑Length Encoding (RLE) for a file consisting of alternating characters \ABABAB...\. Which statement is accurate?

A.LZW will likely produce larger output than RLE
B.RLE will compress better because of the alternating pattern
C.Both produce similar sizes because the pattern lacks long runs ✅
D.LZW will outperform RLE due to dictionary reuse
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: The alternating pattern does not contain long runs, so RLE cannot compress effectively, and LZW cannot create long dictionary entries either. Consequently, both methods yield sizes close to the original, making their performance comparable.

Q13. Evaluate the impact of initializing the dictionary with only a subset of the alphabet (e.g., omitting rarely used symbols). How does this affect encoding of messages containing those omitted symbols?

A.The encoder will treat omitted symbols as errors and stop
B.The omitted symbols will be encoded using a fallback mechanism, increasing code length
C.The dictionary will dynamically add those symbols, but initial codes may be longer ✅
D.The omission has no effect because the algorithm adds missing symbols automatically
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: If the initial dictionary lacks certain symbols, the encoder will add them the first time they appear, but the initial codes for those symbols will be longer than if they had been present from the start, slightly reducing compression efficiency.

Q14. Differentiate the effect of using a fixed‑size code (e.g., 12 bits) versus a variable‑size code that grows with the dictionary. Which scenario yields better compression for very large texts?

A.Fixed‑size code always yields better compression
B.Variable‑size code adapts and usually provides better compression ✅
C.Both approaches give identical results for large texts
D.Variable‑size code is worse because of overhead
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A variable‑size code expands only when needed, keeping early codes short and reducing overhead for early portions of the text. For large texts, this adaptive behavior typically outperforms a static 12‑bit code that may be unnecessarily large for early dictionary entries.

Q15. In a scenario where two separate LZW encoders compress the same data but start with different initial dictionaries, what is the most likely result when attempting to decode one stream with the other's decoder?

A.Successful decoding with minor quality loss
B.Complete failure due to mismatched code meanings ✅
C.Partial decoding that stops at the first mismatch
D.Decoding succeeds because the dictionaries converge quickly
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Since the initial dictionaries differ, the first code values will reference different strings, causing immediate misinterpretation. Without identical starting dictionaries, the decoder cannot correctly reconstruct the original data.

Q16. Assess why LZW is considered a lossless compression method, yet it can be less efficient than entropy‑based methods for highly random data. Which explanation is correct?

A.LZW adds overhead for dictionary entries, which harms random data compression ✅
B.LZW uses probabilistic models that fail on random data
C.Entropy methods cannot handle random data, making LZW superior
D.LZW always outperforms entropy methods regardless of data randomness
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: LZW builds a dictionary of repeated patterns; when data lacks repetition, the algorithm spends bits adding seldom‑used entries, leading to overhead that outweighs any compression benefit, whereas entropy coders adapt to symbol probabilities and handle randomness more efficiently.

Q17. Apply the LZW principle to compress a sequence of IPv4 addresses that share common prefixes. Which step of the algorithm most directly exploits the shared prefix?

A.Initializing the dictionary with the full address space
B.Adding the concatenated prefix and suffix as a new entry
C.Encoding each address as a single code after the prefix is learned ✅
D.Resetting the dictionary after each address
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: When the prefix becomes a known dictionary entry, subsequent addresses can be represented by a code that references the prefix plus a new suffix, effectively compressing the shared part and only transmitting the differing suffix.

Q18. Synthesize a hybrid scheme that first applies LZW compression and then encrypts the result with a symmetric cipher. What advantage does this ordering provide?

A.Encryption hides the dictionary structure, improving security
B.Compression before encryption reduces the amount of data to encrypt, enhancing efficiency ✅
C.The hybrid scheme prevents dictionary attacks on the encrypted data
D.It allows decryption without needing the original dictionary
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Compressing before encryption reduces the plaintext size, meaning fewer bits are processed by the symmetric cipher, which saves computational resources and bandwidth. Encryption after compression also ensures that the compressed structure is not exposed.

Q19. Explain how the LZW decoding process can reconstruct a dictionary entry that was just added by the encoder, even if the entry references the current code being defined. Which property enables this?

A.The encoder sends a special marker before the new entry
B.LZW uses a look‑ahead buffer that predicts future entries
C.The algorithm permits the use of the previous string plus its first character ✅
D.Decoding does not need to reconstruct the entry until later
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: When the encoder adds a new entry consisting of the previous string plus its first character, the decoder can recreate that entry using the already known previous string and the first character of the current code, ensuring both sides stay synchronized.

Q20. Given a stream of codes produced by LZW, how would you detect a synchronization loss without external checksums?

A.Look for codes that exceed the current dictionary size ✅
B.Count the number of codes and compare to message length
C.Verify that every code maps to a valid ASCII character
D.Check for repeated patterns in the code stream
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: If a code references an index larger than the dictionary size at that point, it indicates that the encoder and decoder have diverged, revealing a synchronization loss.

Q21. Suppose you modify LZW to reset the dictionary every 1000 symbols. How does this affect the algorithm’s ability to compress long‑range repetitions?

A.It improves compression of long‑range repetitions
B.It has no effect on long‑range repetitions
C.It degrades compression because repeated patterns spanning resets cannot be reused ✅
D.It forces the algorithm to use larger code sizes
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Frequent resets discard previously learned long‑range patterns, so any repetition that occurs after a reset must be relearned, reducing the algorithm’s ability to capture and compress distant repetitions.

Q22. Why does LZW require that both encoder and decoder process the input stream in exactly the same order?

A.Because the algorithm uses a shared random seed
B.Because dictionary updates depend on previously emitted codes ✅
C.Because the compression ratio is fixed beforehand
D.Because the output codes are encrypted with a shared key
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Dictionary entries are added based on the sequence of processed symbols; any deviation in order would cause the decoder to construct a different dictionary, leading to mismatched code meanings.

Q23. If an LZW encoder encounters a sequence where the next character repeats the previous one (e.g., \AA\), what is the most likely immediate effect on the dictionary?

A.A new entry for \AA\ is added ✅
B.The existing entry for \A\ is replaced
C.No new entry is added because \A\ already exists
D.The encoder skips the repeated character
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: When the concatenation of the current string and the next character is not present, the algorithm adds that new concatenated sequence as a dictionary entry, so \AA\ would be inserted as a new code.

Q24. In a scenario where the dictionary reaches its maximum size and the encoder continues without resetting, what type of error is most likely to occur?

A.Dictionary overflow causing undefined codes
B.Loss of synchronization between encoder and decoder ✅
C.Increased compression ratio beyond theoretical limits
D.No error; the algorithm simply stops adding entries
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: If the dictionary cannot grow further, the encoder will stop adding new entries but will continue emitting codes. The decoder, expecting potential new entries, may misinterpret subsequent codes, leading to synchronization loss.

Q25. Assume the initial dictionary contains only the characters '0' and '1'. When encoding the binary string \001001\, which of the following codes will be emitted first?

A.Code for \0\ ✅
B.Code for \00\
C.Code for \001\
D.Code for \0010\
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The first character read is \0\, and the concatenation \00\ is not yet in the dictionary, so the encoder outputs the code for the longest known sequence, which is just \0\.

Q26. If during decoding a code refers to an entry that has just been added in the same step, how does the decoder resolve the reference?

A.It uses the previous entry plus its first character ✅
B.It treats the code as undefined and aborts
C.It waits for the next code to clarify
D.It substitutes a default placeholder
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: LZW specifies that when a code references the entry being defined, the decoder can reconstruct it by appending the first character of the previous entry to itself, ensuring the new entry can be generated without ambiguity.

Q27. Compare the memory requirements of LZW versus Huffman coding for a large alphabet of 1024 symbols. Which statement is correct?

A.LZW needs more memory because it stores a growing dictionary ✅
B.Huffman needs more memory due to the tree structure
C.Both require similar memory footprints
D.LZW uses less memory because it discards the dictionary after encoding
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: LZW’s dictionary expands with each new unique substring, potentially reaching many thousands of entries, whereas Huffman only stores a static tree based on symbol frequencies. For a large alphabet, the dynamic dictionary of LZW generally consumes more memory.

Q28. Evaluate why LZW is less suitable for real‑time streaming of high‑resolution video compared to arithmetic coding. Which factor is most critical?

A.LZW’s dictionary update latency ✅
B.Arithmetic coding’s inability to handle large alphabets
C.LZW’s requirement for pre‑known dictionaries
D.Arithmetic coding’s higher computational complexity
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: In real‑time video, latency is crucial; LZW must constantly update and search its dictionary, which can introduce delays, whereas arithmetic coding processes symbols sequentially with predictable computational cost, making it more appropriate for low‑latency streaming.

Q29. Differentiate the effect of using a larger initial code length (e.g., 10 bits) versus a smaller one (e.g., 8 bits) on the early compression ratio of short texts. Which outcome is expected?

A.Larger initial code length reduces early compression efficiency ✅
B.Smaller initial code length worsens compression for short texts
C.Both have identical impact on short texts
D.Larger code length improves compression regardless of text length
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Starting with a larger code length means each emitted symbol consumes more bits, which hurts compression on short inputs where few dictionary entries are created to offset the overhead.

Q30. Suppose two LZW encoders compress the same text but one uses a reset threshold of 500 entries while the other uses 2000 entries. Which encoder is likely to achieve higher overall compression for a highly repetitive file?

A.The encoder with the 500‑entry threshold
B.The encoder with the 2000‑entry threshold ✅
C.Both achieve identical compression
D.Neither can compress repetitive files effectively
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: A higher reset threshold allows the dictionary to grow larger, capturing more long repeated patterns before resetting. For highly repetitive data, retaining those entries yields better compression than frequent resets that discard useful patterns.

Q31. Synthesize an approach to combine LZW with a block cipher in a way that prevents known‑plaintext attacks on the compressed data. Which strategy is most secure?

A.Encrypt each LZW code individually with a random IV
B.Compress first, then apply a block cipher in CBC mode with a secret key
C.Apply the block cipher before compression ✅
D.Use a stream cipher on the original plaintext before LZW
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Encrypting the plaintext before compression obscures patterns that could be exploited in known‑plaintext attacks, ensuring that the subsequent LZW process works on ciphertext that appears random, thereby enhancing security.

Q32. Explain why LZW can be considered a universal lossless compressor for any finite alphabet. Which principle supports this claim?

A.It adapts to any input by building a dictionary of substrings ✅
B.It uses a fixed code table that works for all alphabets
C.It relies on probabilistic models of symbol frequencies
D.It requires prior knowledge of the data distribution
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: LZW’s ability to dynamically generate entries for any observed substring means it can compress any finite alphabet without pre‑knowledge, embodying the universal property of lossless compressors.

Q33. If you were to design a variant of LZW that limits dictionary entries to a maximum length of 4 characters, how would this affect compression of long repetitive strings?

A.Compression would improve because shorter entries are faster to lookup
B.Compression would degrade because longer repeats cannot be represented as single codes ✅
C.There would be no effect on compression ratio
D.The algorithm would switch to Huffman coding for longer strings
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Restricting entry length prevents the dictionary from storing longer repeated substrings, forcing the encoder to emit multiple shorter codes for what could have been a single entry, thereby reducing compression efficiency for long repetitions.

Q34. If during encoding the next character causes the concatenated string to exceed the current dictionary size limit, what must the encoder do before adding the new entry?

A.Reset the dictionary and start over
B.Increase the code length to accommodate the new entry ✅
C.Skip adding the entry and continue processing
D.Emit a special overflow code
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: When the dictionary is full, the encoder typically expands the code width (e.g., from 9 to 10 bits) to allow additional entries, ensuring that new substrings can still be added without resetting.

Q35. Consider a scenario where the encoder and decoder start with identical dictionaries but the decoder receives a corrupted code that maps to an out‑of‑range index. What is the most likely immediate result?

A.The decoder will halt with an error ✅
B.The decoder will guess the intended symbol and continue
C.The decoder will automatically correct the code using parity
D.The decoder will ignore the corrupted code and resume
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: An out‑of‑range index indicates that the decoder cannot resolve the code to any known dictionary entry, causing it to raise an error or abort processing because it cannot safely continue.

Q36. If an LZW encoder processes a message where every new character is unique, what will be the size of the dictionary after encoding the entire message of length N?

A.N + |alphabet| entries ✅
B.2N entries
C.|alphabet| entries only
D.N × |alphabet| entries
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Each new unique character creates a new entry (the concatenation of the previous string and the new character). Starting with the alphabet size entries, the dictionary grows by one for each of the N characters, resulting in |alphabet| + N entries.

Q37. When the LZW decoder receives a code that equals the next available dictionary index, what special case does the algorithm handle?

A.It treats the code as a repeat of the previous string plus its first character ✅
B.It discards the code as invalid
C.It substitutes the code with the most recent dictionary entry
D.It resets the dictionary to initial state
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: This situation occurs when the encoder emits a code for a string that is being defined simultaneously. The decoder reconstructs the string by appending the first character of the previous entry to the previous entry itself.

Q38. Compare the effect on compression ratio when using LZW on English text versus binary executable data. Which outcome is expected?

A.Higher compression for English text due to repeated words and patterns ✅
B.Higher compression for binary data because of low entropy
C.Similar compression ratios for both types of data
D.LZW cannot compress either type effectively
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: English text contains many repeated substrings (common words, phrases), which LZW can capture efficiently, whereas binary executables often appear more random, limiting the algorithm’s ability to find repeatable patterns.

Q39. Evaluate why increasing the maximum dictionary size beyond a certain point (e.g., from 4096 to 8192 entries) yields diminishing returns for typical text files. Which factor explains this phenomenon?

A.The majority of useful substrings are already captured within the smaller dictionary ✅
B.Larger dictionaries cause more frequent resets
C.The code length grows too quickly, offsetting any gains
D.Text files have a fixed maximum entropy that limits compression
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Most common substrings in typical text are already represented once the dictionary reaches a moderate size. Adding more entries captures increasingly rare patterns, providing little additional compression while increasing code length and overhead.

Q40. In a modified LZW algorithm that uses a sliding window to limit dictionary growth, what trade‑off is introduced?

A.Improved compression at the cost of higher latency
B.Reduced memory usage but potential loss of long‑range pattern compression ✅
C.Increased security against dictionary attacks
D.Simpler implementation but slower processing
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: A sliding window discards older entries to keep memory bounded, which saves space but prevents the algorithm from reusing patterns that occur beyond the window, thereby sacrificing compression of long‑range repetitions.

Q41. Apply LZW to compress a DNA sequence consisting of the alphabet {A,C,G,T}. Which characteristic of DNA makes LZW particularly effective?

A.High frequency of short repeats and motifs ✅
B.Uniform distribution of nucleotides
C.Lack of any repeated substrings
D.Fixed length of each codon
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: DNA often contains recurring motifs and short repeated subsequences (e.g., tandem repeats), which LZW can capture as dictionary entries, leading to effective compression.

Q42. Synthesize a method to detect whether a given compressed file was produced by LZW without external metadata. Which heuristic is most reliable?

A.Check for the presence of decreasing code lengths
B.Search for code values that match the initial alphabet size plus offsets ✅
C.Look for repeated patterns of the same code
D.Verify that the first few codes are within the initial dictionary range
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: LZW codes start at the size of the initial alphabet and then increase as new entries are added. Observing a sequence of codes that incrementally exceed the initial alphabet size suggests the progressive dictionary growth characteristic of LZW.

Q43. Explain why LZW cannot be directly applied to encrypt data without first compressing it, focusing on the relationship between compression and security. Which statement is accurate?

A.Compression removes redundancy, making patterns less visible to attackers ✅
B.Compression adds randomness, which weakens encryption
C.Encryption requires data to be in a fixed‑size block, which LZW does not provide
D.LZW already provides sufficient security, so encryption is unnecessary
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: By eliminating predictable repetitions, LZW reduces the amount of exploitable structure in the plaintext, thereby making subsequent encryption more resistant to attacks that rely on known patterns.

Q44. What does LZW stand for?

A.Lempel‑Ziv‑Welch ✅
B.Linear‑Zero‑Width
C.Large‑Zero‑Window
D.LOCAL‑ZIP‑WARP
💡 Difficulty: easy | ✅ Correct: A

Q45. Which step initializes the string S in the LZW encoding pseudocode?

A.Reading the first character of the message ✅
B.Creating an empty dictionary
C.Setting the code length to 9 bits
D.RESETTING THE DICTIONARY TO EMPTY
💡 Difficulty: easy | ✅ Correct: A

Q46. In the LZW encoding process, what is the purpose of the variable 'char'?

A.It holds the next input character to be examined ✅
B.It stores the current dictionary size
C.It indicates the code length used
D.IT FLAGS WHEN TO RESET THE DICTIONARY
💡 Difficulty: easy | ✅ Correct: A

Q47. When the concatenation S+char is found in the dictionary, what action is taken?

A.S is updated to S+char ✅
B.The code for S is emitted
C.A new dictionary entry is added
D.THE DICTIONARY IS RESET
💡 Difficulty: medium | ✅ Correct: A

🔗 Related Topics (MCQs)