Colonoscopy is a test which allows a physician to look at the inner lining of the large intestine (rectum and colon). A thin, flexible tube called a colonoscope is used to look at the colon. The purpose of a colonoscopy is to identify ulcers, colon polyps, tumors, and any areas of inflammation or bleeding.