Tapeworms consist of flat, segmented segments that look similar to grains of rice. These segments may be visible in the dog's stool or hanging from the dog's anus.