If we had makes and model numbers we could be specific
Optical is always digital.
A single RCA jack would be digital but two RCA (left and right) would be analog.
Digital audio output would be fixed level. Analog might be fixed or variable (check the cable box menu). This means you might not be able to use the TV remote to adjust volume.