Sigmoidoscopy is the endoscopic examination of the distal most part of large bowel and includes the rectum and the sigmoid colon .