A colonoscopy allows a doctor to look inside the large intestine for early signs of cancer, ulcers and other abnormalities.