Oscilloscopes are time-domain instruments, but because they digitize waveforms, oscilloscopes can process time-domain signals into the frequency domain. The FFT (Fast Fourier Transform), spectrum ...
Now, the thing to remember is that we are using a CD4512 chip, whose truth table is shown below. The important thing to note here is that, in addition to the three multiplexer select controls, A, B, ...