I'm not sure where to start. But you seem to ignore the different between analog and digital. And you think digital means "not using film". It does in the context of calling a camera "digital" instead of "analog". Not while discussing the process of taking a digital picture.
Digital photography has an analog component. A big one. The way the light is directed to the sensor through lenses is not digital, it's about redirecting photons.
Then the sensor registers the light and sends it to a processor that does things with it.
The optical zoom happens optically. It's analog. Even if we're talking about digital photography. It has to do with the way you use lenses to get a different image to the sensor.
All that happens to the image after it gets to the sensor is digital.
I hope now you know enough about this subject to avoid appearing foolish