Multiple choice technology operating systems

4 What is a /dev/zero device in Linux?

  1. 1 A dummy device to represent memory

  2. 2 A dummy device to represent the processor

  3. 3 A dummy device to provide infinite number of zeros

  4. 4 None

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

/dev/zero is a special device file that provides an infinite stream of null (zero) bytes when read. It is commonly used for initializing files with zeros, testing buffer operations, or creating memory dumps. The device always returns zeros and never reaches end-of-file.