During a colonoscopy, a long, flexible tube called a colonoscope is inserted into the rectum and advanced to the other end of the large intestine. The colonoscope has a camera and a source of light at its tip which allows the doctor to view the inside of the entire colon.