Generally, passive devices have no functional gain or control over voltage or current, their controlling function is basically linear as in the case of a resistor. Active devices on the other hand has the ability to electrically control electron flow to manipulate and transform a signal's properties. For a circuit to be considered electronic, it must contain at least one active device.
Diodes and Zeners
A diode, by definition, is a two-terminal non-linear device that works on the p-n junction principle that exhibits forward and reverse biasing characteristics. There are many types of diodes, from the common rectifier to the varactor, the light-emitting to the photo-laser, and the step recovery to the zener, etc.
So what is the difference between a diode and a zener?
While a diode operates on the forward voltage region and may suffer catastrophic failure if subjected to voltages that exceed its reverse breakdown limit, the zener can safely operate on the reverse voltage region. In other words, while a diode conducts current in only one direction, a zener, by virtue of its heavy narrow junction doping, can conduct current in both directions with the ability to maintain a stable voltage in the reverse bias condition. This makes the zener ideal for applications such as voltage references in comparator circuits and voltage stabilizers in low-current circuits.
As you'd probably realized by now, unlike the axial-lead diodes, SMD packages can contain more than one diode per package type, such as the BAV99 example just mentioned. Things can get really tricky, however, when you work on PCBs with many of these SMD type components present, so it's good to download a copy of the SMD Codebook and keep it handy for quick reference.
Ps: While there are many editions of free SMD Codebook online, readers who buy my book will get a copy of the SMD Code Reference Book, which contains over 500 pages listing of more than 23,000 SMD type component markings.