🎓 BookMCQ
← Back to 31. Cryptography and Network Security

📝 Network security introduction and basics (12 MCQs)

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

What is Network security introduction and basics?

Network security is the practice of protecting computer networks and data from unauthorized access, misuse, or damage by using hardware, software, and policies to ensure safe communication and reliable operation in digital environments.

4
Easy
5
Medium
3
Hard

📝 All Network security introduction and basics MCQs

Q1. When a uniform gray scale is applied to an image, what is the most likely effect on its visual contrast?

A.Contrast is increased uniformly across the image
B.Contrast remains unchanged
C.Contrast is reduced, making the image appear flatter ✅
D.Contrast varies randomly
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: A uniform gray scale assigns the same intensity to all pixels, eliminating variations that create visual depth. Consequently, the image loses the range of light‑to‑dark transitions, producing a flatter appearance. This reduction in intensity differences directly lowers perceived contrast, making details harder to discern.

Q2. Given that the zigzag ordering arranges quantized DCT coefficients from low to high frequency, what inference can be made about its impact on subsequent run‑length encoding?

A.It increases the number of runs of zeros ✅
B.It decreases the number of runs of zeros
C.It has no effect on run‑length encoding
D.It randomizes the coefficient distribution
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Zigzag ordering clusters low‑frequency coefficients (often non‑zero) at the start and high‑frequency coefficients (often zero) toward the end. By concentrating zeros together, the sequence becomes more amenable to run‑length encoding, which compresses long runs of identical symbols—especially zeros—more efficiently.

Q3. If an 8×8 block after quantization contains many zero coefficients, what can be deduced about the expected compression ratio when entropy coding is applied?

A.Compression ratio will be low because zeros are hard to encode
B.Compression ratio will be high because zeros can be represented compactly ✅
C.Compression ratio is independent of zero count
D.Compression ratio will be moderate
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Entropy coding, such as Huffman or arithmetic coding, assigns shorter codes to more frequent symbols. A block rich in zeros makes zeros the most frequent symbol, allowing the coder to allocate very short codewords. This dramatically reduces the bit count, yielding a higher compression ratio compared with blocks containing more varied values.

Q4. Which statement best contrasts a uniform gray scale with a gradient gray scale in terms of pixel intensity distribution?

A.Uniform scale has a single intensity value, gradient scale has a range ✅
B.Uniform scale varies linearly, gradient scale is constant
C.Both have identical distributions
D.Uniform scale uses random intensities
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A uniform gray scale forces every pixel to the same gray level, producing a flat intensity histogram with one dominant value. In contrast, a gradient gray scale assigns a continuum of intensities across the image, generating a spread‑out histogram that reflects the gradual change from dark to light.

Q5. How does increasing the quantization step size in the JPEG quantization matrix affect image quality and file size?

A.Image quality improves and file size increases
B.Image quality degrades while file size decreases ✅
C.Both quality and size remain unchanged
D.Quality degrades but file size increases
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Larger quantization steps coarsen the rounding of DCT coefficients, discarding finer detail and thus lowering visual fidelity. At the same time, more coefficients become zero or small, which compresses more efficiently, reducing the final file size. The trade‑off is a classic quality‑vs‑size relationship in lossy compression.

Q6. Differentiate between lossless and lossy encoding as illustrated by the table where most entries are zero. Which characteristic aligns with lossless compression?

A.Exact reconstruction of original data ✅
B.Discarding high‑frequency components
C.Quantization of coefficients
D.Use of zigzag ordering
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Lossless schemes guarantee that the decompressed output matches the original bit‑by‑bit, meaning no information is removed during encoding. The presence of many zeros merely reflects efficient representation; it does not imply any data loss. In contrast, lossy methods intentionally remove information (e.g., via quantization), which would prevent perfect reconstruction.

Q7. Applying the JPEG compression pipeline, which step directly follows the discrete cosine transform (DCT) of each 8×8 block?

A.Quantization of DCT coefficients ✅
B.Color space conversion
C.Run‑length encoding
D.Entropy coding
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: After the spatial‑domain image is transformed into frequency‑domain coefficients via the DCT, the next operation is quantization. This stage reduces the precision of each coefficient according to a quantization matrix, preparing the data for subsequent entropy coding stages such as run‑length and Huffman encoding.

Q8. Explain the relationship between the number of gray levels available in a display and the human eye's ability to distinguish shades in a smooth gradient.

A.More gray levels always cause visual fatigue
B.Fewer gray levels improve distinction
C.Increasing gray levels enhances smoothness up to a perceptual threshold ✅
D.Gray levels have no impact on perception
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Human vision can discern only a finite number of tonal steps before adjacent shades become indistinguishable. Providing more gray levels than this threshold yields a smoother gradient, reducing banding artifacts. However, beyond a certain point, additional levels offer negligible perceptual benefit because the eye cannot differentiate them.

Q9. To convert an RGB pixel to a grayscale value using the luminance method, which weighted sum is most appropriate?

A.0.3R+0.59G+0.11B0.3R + 0.59G + 0.11B
B.R+G+BR + G + B
C.0.5R+0.5G0.5R + 0.5G
D.0.33R+0.33G+0.33B0.33R + 0.33G + 0.33B
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The luminance method reflects the human eye's sensitivity to different colors, weighting green most heavily, followed by red and blue. The standard coefficients 0.30.3, 0.590.59, and 0.110.11 approximate this perceptual response, yielding a grayscale value that preserves brightness relationships more accurately than an unweighted average.

Q10. If the encoding parameter M is set to 160 instead of 0, what logical effect does this have on the encoded bitstream for a block of zeros?

A.The bitstream length increases ✅
B.The bitstream length decreases
C.The bitstream remains unchanged
D.The block is skipped entirely
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: M typically represents a scaling factor or a bias added before entropy coding. Raising M from 0 to 160 introduces additional non‑zero values or larger magnitude symbols, which require more bits to represent. Consequently, the overall length of the encoded bitstream grows compared with the minimal representation when M equals zero.

Q11. Synthesize a complete workflow for preparing a color photograph for web delivery, incorporating color space conversion, down‑sampling, quantization, and compression steps. Which sequence correctly represents this workflow?

A.Quantization → Color space conversion → Down‑sampling → Compression
B.Color space conversion → Down‑sampling → Quantization → Compression ✅
C.Down‑sampling → Compression → Color space conversion → Quantization
D.Compression → Quantization → Down‑sampling → Color space conversion
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The standard pipeline begins by converting the image from RGB to a more web‑friendly color space such as YCbCr, allowing chroma channels to be down‑sampled without noticeable quality loss. After down‑sampling, the DCT and quantization steps reduce precision, and finally entropy coding compresses the data. This order preserves essential visual information while maximizing reduction.

Q12. In image compression terminology, what does the term 'quantization' refer to?

A.Mapping a range of values to a single representative value
B.Reordering coefficients in a zigzag pattern
C.Transforming spatial data to frequency domain
D.Reducing the precision of coefficient values to achieve compression ✅
💡 Difficulty: easy | ✅ Correct: D

📖 Explanation: Quantization is the process of approximating a set of continuous or high‑precision values with a limited set of discrete levels. In compression, this typically means rounding DCT coefficients to coarser values, thereby lowering the amount of information needed to store them and enabling subsequent entropy coding to achieve smaller file sizes.

🔗 Related Topics (MCQs)