If your pet has tapeworms, you may see tiny white segments that look like grains of rice slowly moving around their waste or stuck to their back end. Dogs and cats can become infected with tapeworms by swallowing infected fleas or by hunting rodents and rabbits.