One way you could tell the difference is to connect a battery and light w/ the capacitor and then the resistor in series. The resistor will only dim the light, while the capacitor will stop the light all together. Capacitors do not allow dc current through, only ac.