Colonoscopy is a test that allows your doctor to look at the inner lining of your large intestine (rectum and colon). He or she uses a thin, flexible tube called a colonoscope to look at the colon. A colonoscopy helps find ulcers, colon polyps, tumors, and areas of inflammation or bleeding.