Multiple choice technology programming languages

What is a /dev/zero device in Linux?

  1. A dummy device to represent memory

  2. A dummy device to represent the processor

  3. A dummy device to provide infinite number of zeros

  4. None

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

The /dev/zero device file returns an infinite stream of null bytes (zeros) when read. It is commonly used for initializing data, creating zero-filled files, or testing programs that handle null data.